Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 80.72 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 146 kB / 25.59 MB, free: 8.918 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8774/0.8774, allocations: 173.4 MB / 202.2 MB, free: 8.277 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 269.2 MB, free: 9.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.422e-05/1.556e-05, allocations: 6.438 kB / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002822/0.002837, allocations: 2.999 MB / 272.2 MB, free: 6.785 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.004053, allocations: 0.9157 MB / 273.1 MB, free: 5.871 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.004202, allocations: 9.969 kB / 273.1 MB, free: 5.863 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001906/0.004393, allocations: 71.31 kB / 273.2 MB, free: 5.793 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001804/0.004573, allocations: 140 kB / 273.3 MB, free: 5.656 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004215/0.004995, allocations: 232.7 kB / 273.5 MB, free: 5.43 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004297/0.005424, allocations: 0.6563 MB / 274.2 MB, free: 4.773 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.005563, allocations: 84.7 kB / 274.3 MB, free: 4.688 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003339/0.005897, allocations: 383.2 kB / 274.7 MB, free: 4.312 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000247/0.006144, allocations: 247.4 kB / 274.9 MB, free: 4.07 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.264e-05/0.006196, allocations: 52.72 kB / 275 MB, free: 4.02 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.006327, allocations: 103.9 kB / 275.1 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.845e-05/0.006415, allocations: 128 kB / 275.2 MB, free: 3.793 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.006533, allocations: 179.6 kB / 275.4 MB, free: 3.617 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003699/0.006903, allocations: 482.4 kB / 275.8 MB, free: 3.145 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.533e-06/0.006904, allocations: 0 / 275.8 MB, free: 3.145 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.006905, allocations: 0 / 275.8 MB, free: 3.145 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.00691, allocations: 0 / 275.8 MB, free: 3.145 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0007393/0.007649, allocations: 0.792 MB / 276.6 MB, free: 2.316 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.751e-05/0.007676, allocations: 12.03 kB / 276.6 MB, free: 2.305 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.429e-05/0.007771, allocations: 80.61 kB / 276.7 MB, free: 2.227 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002465/0.008017, allocations: 279.2 kB / 277 MB, free: 1.93 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.652e-05/0.008044, allocations: 33.38 kB / 277 MB, free: 1.895 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.988e-05/0.008104, allocations: 40.33 kB / 277.1 MB, free: 1.855 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003581/0.008462, allocations: 347.6 kB / 277.4 MB, free: 1.508 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.008472, allocations: 4.188 kB / 277.4 MB, free: 1.504 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.008498, allocations: 16.38 kB / 277.4 MB, free: 1.488 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.008504, allocations: 11.94 kB / 277.4 MB, free: 1.477 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002728/0.008777, allocations: 238.7 kB / 277.7 MB, free: 1.246 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001005/0.009782, allocations: 0.8613 MB / 278.5 MB, free: 356 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003518/0.01013, allocations: 269 kB / 278.8 MB, free: 72 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/0.01031, allocations: 144 kB / 278.9 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.01034, allocations: 8.5 kB / 278.9 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.01036, allocations: 37.89 kB / 279 MB, free: 15.88 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.533e-06/0.01036, allocations: 4 kB / 279 MB, free: 15.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002011/0.01237, allocations: 1.427 MB / 280.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.56e-05/0.0124, allocations: 63.91 kB / 280.5 MB, free: 14.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.01255, allocations: 296.2 kB / 280.7 MB, free: 14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.635e-05/0.01259, allocations: 45.69 kB / 280.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.244e-05/0.01268, allocations: 240.2 kB / 281 MB, free: 13.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.01279, allocations: 206.3 kB / 281.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.01291, allocations: 111.9 kB / 281.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.01304, allocations: 0.5195 MB / 281.9 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.01319, allocations: 117.2 kB / 282 MB, free: 12.74 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.01335, allocations: 170.4 kB / 282.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/0.01359, allocations: 247.7 kB / 282.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.01359, allocations: 0 / 282.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0006748/0.01427, allocations: 0.5392 MB / 282.9 MB, free: 11.77 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.01428, allocations: 4 kB / 282.9 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.01429, allocations: 4 kB / 282.9 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004641/0.01475, allocations: 418.9 kB / 283.3 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001756/0.01493, allocations: 87.89 kB / 283.4 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007663/0.01569, allocations: 1.771 MB / 285.2 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001842/0.01588, allocations: 60 kB / 285.3 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.47e-05/0.0159, allocations: 12 kB / 285.3 MB, free: 9.348 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001358/0.01604, allocations: 193.4 kB / 285.5 MB, free: 9.148 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.242e-05/0.01611, allocations: 55.77 kB / 285.5 MB, free: 9.094 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.138e-05/0.01617, allocations: 59.56 kB / 285.6 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.01618, allocations: 11.98 kB / 285.6 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.01618, allocations: 4 kB / 285.6 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.01618, allocations: 0 / 285.6 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001227/0.01741, allocations: 1.059 MB / 286.6 MB, free: 7.902 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.01741, allocations: 0 / 286.6 MB, free: 7.902 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001886/0.0176, allocations: 83.89 kB / 286.7 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000434/0.01804, allocations: 411.2 kB / 287.1 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.936e-05/0.01806, allocations: 19.98 kB / 287.1 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007367/0.0188, allocations: 1.772 MB / 288.9 MB, free: 5.555 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.0188, allocations: 3.984 kB / 288.9 MB, free: 5.551 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008371/0.01964, allocations: 0.8182 MB / 289.7 MB, free: 4.688 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.01975, allocations: 87.75 kB / 289.8 MB, free: 4.602 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.868e-05/0.0198, allocations: 19.98 kB / 289.8 MB, free: 4.582 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.01997, allocations: 43.95 kB / 289.9 MB, free: 4.539 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.0201, allocations: 100.2 kB / 290 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.432e-05/0.02012, allocations: 19.92 kB / 290 MB, free: 4.418 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.001e-05/0.02021, allocations: 201.1 kB / 290.2 MB, free: 4.223 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02021, allocations: 0 / 290.2 MB, free: 4.223 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002918/0.02051, allocations: 131.9 kB / 290.3 MB, free: 4.094 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001672/0.02067, allocations: 150 kB / 290.5 MB, free: 3.941 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004975/0.02117, allocations: 378.2 kB / 290.8 MB, free: 3.57 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.02117, allocations: 0 / 290.8 MB, free: 3.57 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002465/0.02142, allocations: 237.3 kB / 291.1 MB, free: 3.332 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.02177, allocations: 96.95 kB / 291.2 MB, free: 3.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001761/0.02353, allocations: 1.197 MB / 292.4 MB, free: 1.984 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.955e-05/0.0236, allocations: 118.4 kB / 292.5 MB, free: 1.852 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.974e-05/0.0237, allocations: 35.27 kB / 292.5 MB, free: 1.812 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.02387, allocations: 146.2 kB / 292.7 MB, free: 1.668 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.02387, allocations: 0 / 292.7 MB, free: 1.668 MB / 266.7 MB Notification: Performance of Templates: time 0.0104/0.03427, allocations: 9.529 MB / 302.2 MB, free: 8.246 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8774730740115047]