Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.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.001089/0.001089, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001157/0.001157, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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.9167/0.9167, allocations: 177 MB / 204.8 MB, free: 5.598 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.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.422e-05/1.559e-05, allocations: 2.312 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002947/0.002962, allocations: 3.114 MB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.004745, allocations: 1.309 MB / 277.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.004884, allocations: 7.938 kB / 277.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004018/0.005286, allocations: 107.1 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001781/0.005464, allocations: 134.8 kB / 277.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006323/0.006096, allocations: 423 kB / 278 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005669/0.006663, allocations: 0.8385 MB / 278.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.006801, allocations: 73.67 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004808/0.007282, allocations: 0.503 MB / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009993/0.008281, allocations: 1.416 MB / 280.8 MB, free: 9.527 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.016e-05/0.008371, allocations: 68 kB / 280.9 MB, free: 9.461 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001771/0.008548, allocations: 131.9 kB / 281 MB, free: 9.332 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.008711, allocations: 235.8 kB / 281.2 MB, free: 9.102 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001648/0.008876, allocations: 247.3 kB / 281.5 MB, free: 8.859 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005911/0.009467, allocations: 0.7281 MB / 282.2 MB, free: 8.129 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.009469, allocations: 7.938 kB / 282.2 MB, free: 8.121 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.00947, allocations: 0 / 282.2 MB, free: 8.121 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.009477, allocations: 0 / 282.2 MB, free: 8.121 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001632/0.01111, allocations: 1.417 MB / 283.6 MB, free: 6.648 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.01114, allocations: 11.98 kB / 283.6 MB, free: 6.637 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003132/0.01146, allocations: 132.4 kB / 283.8 MB, free: 6.508 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006502/0.01211, allocations: 384.3 kB / 284.1 MB, free: 6.105 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.92e-05/0.01215, allocations: 29.38 kB / 284.2 MB, free: 6.078 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.794e-05/0.01222, allocations: 48.36 kB / 284.2 MB, free: 6.031 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007682/0.01299, allocations: 0.5197 MB / 284.7 MB, free: 5.488 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.01301, allocations: 4.141 kB / 284.7 MB, free: 5.484 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.512e-05/0.01305, allocations: 20.12 kB / 284.8 MB, free: 5.465 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.01307, allocations: 8 kB / 284.8 MB, free: 5.457 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006016/0.01367, allocations: 387.2 kB / 285.1 MB, free: 5.082 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00197/0.01564, allocations: 1.42 MB / 286.6 MB, free: 3.594 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005248/0.01616, allocations: 321.9 kB / 286.9 MB, free: 3.254 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.01639, allocations: 143.3 kB / 287 MB, free: 3.105 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.727e-05/0.01643, allocations: 11.94 kB / 287 MB, free: 3.094 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004229/0.01686, allocations: 354.8 kB / 287.4 MB, free: 2.727 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.433e-06/0.01686, allocations: 0 / 287.4 MB, free: 2.727 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.003178/0.02004, allocations: 1.704 MB / 289.1 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/0.02007, allocations: 85.11 kB / 289.2 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004563/0.02053, allocations: 0.7026 MB / 289.9 MB, free: 132 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.755e-05/0.02058, allocations: 49.69 kB / 289.9 MB, free: 76 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.09821/0.1188, allocations: 356 kB / 290.3 MB, free: 25.42 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002554/0.1191, allocations: 168 kB / 290.4 MB, free: 25.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002018/0.1193, allocations: 132.1 kB / 290.6 MB, free: 25.38 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1194, allocations: 0.5698 MB / 291.1 MB, free: 24.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005135/0.1199, allocations: 184.3 kB / 291.3 MB, free: 24.89 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003742/0.1203, allocations: 294.6 kB / 291.6 MB, free: 24.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004407/0.1207, allocations: 314.1 kB / 291.9 MB, free: 24.65 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1207, allocations: 3.75 kB / 291.9 MB, free: 24.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001254/0.122, allocations: 0.6993 MB / 292.6 MB, free: 24.53 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.122, allocations: 6.188 kB / 292.6 MB, free: 24.53 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.122, allocations: 3.484 kB / 292.6 MB, free: 24.53 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007058/0.1227, allocations: 444.2 kB / 293 MB, free: 24.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002705/0.123, allocations: 102.2 kB / 293.1 MB, free: 24.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00284/0.1258, allocations: 5.308 MB / 298.5 MB, free: 19.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000464/0.1263, allocations: 140.2 kB / 298.6 MB, free: 19.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.504e-05/0.1263, allocations: 28.23 kB / 298.6 MB, free: 19.77 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001877/0.1265, allocations: 203.4 kB / 298.8 MB, free: 19.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.1266, allocations: 93.3 kB / 298.9 MB, free: 19.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.403e-05/0.1267, allocations: 90.09 kB / 299 MB, free: 19.55 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1267, allocations: 8.719 kB / 299 MB, free: 19.55 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.1267, allocations: 1.375 kB / 299 MB, free: 19.55 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.1267, allocations: 3.844 kB / 299 MB, free: 19.55 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001444/0.1282, allocations: 1.103 MB / 300.1 MB, free: 19.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1282, allocations: 1.094 kB / 300.1 MB, free: 19.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.1284, allocations: 78.78 kB / 300.2 MB, free: 19.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005338/0.1289, allocations: 433.8 kB / 300.6 MB, free: 19.09 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.845e-05/0.129, allocations: 25.58 kB / 300.6 MB, free: 19.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002332/0.1313, allocations: 4.852 MB / 305.5 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1313, allocations: 1.062 kB / 305.5 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.1326, allocations: 0.8809 MB / 306.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/0.1328, allocations: 137.8 kB / 306.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.778e-05/0.1329, allocations: 21.7 kB / 306.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005147/0.1334, allocations: 171.6 kB / 306.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008067/0.1342, allocations: 0.5197 MB / 307.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.044e-05/0.1342, allocations: 29.83 kB / 307.2 MB, free: 13.92 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003147/0.1345, allocations: 462.7 kB / 307.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1345, allocations: 0.9688 kB / 307.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004905/0.135, allocations: 187.6 kB / 307.9 MB, free: 13.71 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,5), (1,5), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007594/0.1358, allocations: 379.2 kB / 308.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008691/0.1367, allocations: 0.7895 MB / 309 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1367, allocations: 4.219 kB / 309 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000437/0.1371, allocations: 0.5818 MB / 309.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004029/0.1375, allocations: 124 kB / 309.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002109/0.1396, allocations: 1.49 MB / 311.2 MB, free: 11.9 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.884e-05/0.1397, allocations: 161.8 kB / 311.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000126/0.1398, allocations: 50.84 kB / 311.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.1399, allocations: 52.2 kB / 311.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.1399, allocations: 0 / 311.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of Templates: time 0.01496/0.1549, allocations: 15.31 MB / 326.8 MB, free: 14.3 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/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.1701956260949373]