Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001442/0.001442, allocations: 84.25 kB / 22.21 MB, free: 2.277 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001588/0.001588, allocations: 162.1 kB / 25.61 MB, free: 8.574 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8932/0.8932, allocations: 177 MB / 205.9 MB, free: 4.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 274.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.299e-05/2.426e-05, allocations: 2.312 kB / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003568/0.003592, allocations: 3.152 MB / 277.3 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.005258, allocations: 1.094 MB / 278.3 MB, free: 20 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002319/0.00549, allocations: 11.94 kB / 278.4 MB, free: 8 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003208/0.005811, allocations: 91.2 kB / 278.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003717/0.006182, allocations: 198.4 kB / 278.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004647/0.006647, allocations: 207.6 kB / 278.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004916/0.007139, allocations: 0.6859 MB / 279.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.007307, allocations: 88.69 kB / 279.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004377/0.007745, allocations: 415.2 kB / 280 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002833/0.008028, allocations: 263.4 kB / 280.3 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.493e-05/0.008093, allocations: 48 kB / 280.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001664/0.008259, allocations: 119.8 kB / 280.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.008382, allocations: 139.5 kB / 280.6 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.008512, allocations: 191.5 kB / 280.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004551/0.008967, allocations: 0.4983 MB / 281.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.008971, allocations: 3.938 kB / 281.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.008972, allocations: 0 / 281.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.008977, allocations: 0 / 281.3 MB, free: 13.09 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001098/0.01007, allocations: 0.8385 MB / 282.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.01011, allocations: 12.03 kB / 282.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001973/0.01031, allocations: 100.5 kB / 282.2 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.01063, allocations: 305 kB / 282.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.898e-05/0.01066, allocations: 33.38 kB / 282.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.505e-05/0.01071, allocations: 48.33 kB / 282.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003933/0.01111, allocations: 334.9 kB / 282.9 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.01112, allocations: 192 / 282.9 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.01115, allocations: 16.38 kB / 282.9 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.01116, allocations: 15.94 kB / 283 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003086/0.01147, allocations: 226.7 kB / 283.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.01253, allocations: 0.8768 MB / 284 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003736/0.0129, allocations: 281 kB / 284.3 MB, free: 9.906 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/0.01308, allocations: 149.1 kB / 284.5 MB, free: 9.758 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.308e-05/0.01311, allocations: 12.5 kB / 284.5 MB, free: 9.746 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.01313, allocations: 41.89 kB / 284.5 MB, free: 9.695 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 1.333e-06/0.01313, allocations: 0 / 284.5 MB, free: 9.695 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002046/0.01518, allocations: 1.412 MB / 285.9 MB, free: 8.223 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.431e-05/0.0152, allocations: 59.91 kB / 286 MB, free: 8.152 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001675/0.01537, allocations: 322.1 kB / 286.3 MB, free: 7.816 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/0.01541, allocations: 41.7 kB / 286.3 MB, free: 7.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.739e-05/0.0155, allocations: 236.3 kB / 286.6 MB, free: 7.531 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.01562, allocations: 222.2 kB / 286.8 MB, free: 7.312 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.01573, allocations: 115.8 kB / 286.9 MB, free: 7.191 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.01586, allocations: 0.5273 MB / 287.4 MB, free: 6.652 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.016, allocations: 113.2 kB / 287.5 MB, free: 6.543 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001577/0.01616, allocations: 162.5 kB / 287.7 MB, free: 6.379 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002345/0.01639, allocations: 231.7 kB / 287.9 MB, free: 6.148 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.0164, allocations: 0 / 287.9 MB, free: 6.148 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0006211/0.01702, allocations: 0.508 MB / 288.4 MB, free: 5.625 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.01703, allocations: 7.938 kB / 288.4 MB, free: 5.617 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.01704, allocations: 3.984 kB / 288.5 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004115/0.01745, allocations: 296.7 kB / 288.7 MB, free: 5.316 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.01761, allocations: 79.89 kB / 288.8 MB, free: 5.238 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007408/0.01836, allocations: 1.743 MB / 290.6 MB, free: 3.434 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001893/0.01854, allocations: 63.94 kB / 290.6 MB, free: 3.371 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/0.01857, allocations: 19.98 kB / 290.6 MB, free: 3.352 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 (55): * Single equations (assignments): 53 * 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,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001249/0.0187, allocations: 188.5 kB / 290.8 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.908e-05/0.01877, allocations: 59.72 kB / 290.9 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.389e-05/0.01884, allocations: 63.69 kB / 290.9 MB, free: 3.035 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.01884, allocations: 4 kB / 291 MB, free: 3.031 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.01884, allocations: 3.938 kB / 291 MB, free: 3.027 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.01885, allocations: 7.984 kB / 291 MB, free: 3.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/0.02004, allocations: 1.028 MB / 292 MB, free: 1.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.02004, allocations: 8.156 kB / 292 MB, free: 1.922 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.02023, allocations: 83.83 kB / 292.1 MB, free: 1.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003572/0.02059, allocations: 279.1 kB / 292.4 MB, free: 1.559 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.02061, allocations: 19.92 kB / 292.4 MB, free: 1.539 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007169/0.02133, allocations: 1.756 MB / 294.1 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.02133, allocations: 3.938 kB / 294.1 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007665/0.0221, allocations: 0.776 MB / 294.9 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/0.02222, allocations: 99.55 kB / 295 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.338e-05/0.02228, allocations: 20 kB / 295 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.02245, allocations: 43.98 kB / 295.1 MB, free: 14.72 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.02258, allocations: 108.2 kB / 295.2 MB, free: 14.62 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.694e-05/0.02261, allocations: 19.98 kB / 295.2 MB, free: 14.6 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.116e-05/0.0227, allocations: 207 kB / 295.4 MB, free: 14.4 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.0227, allocations: 0 / 295.4 MB, free: 14.4 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002835/0.02298, allocations: 131.9 kB / 295.5 MB, free: 14.27 MB / 282.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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006936/0.02368, allocations: 366.7 kB / 295.9 MB, free: 14.01 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004683/0.02414, allocations: 366.3 kB / 296.2 MB, free: 13.65 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.02415, allocations: 0 / 296.2 MB, free: 13.65 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002566/0.0244, allocations: 237.3 kB / 296.5 MB, free: 13.41 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003706/0.02477, allocations: 115.2 kB / 296.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.02659, allocations: 1.244 MB / 297.8 MB, free: 12.01 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.682e-05/0.02666, allocations: 118.8 kB / 297.9 MB, free: 11.88 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.396e-05/0.02675, allocations: 39.3 kB / 298 MB, free: 11.84 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.02693, allocations: 154.1 kB / 298.1 MB, free: 11.68 MB / 282.7 MB Notification: Performance of SimCode: time 5.11e-07/0.02693, allocations: 0 / 298.1 MB, free: 11.68 MB / 282.7 MB Notification: Performance of Templates: time 0.01018/0.03711, allocations: 9.65 MB / 307.8 MB, free: 2.137 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.0401983237825334]