Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Mechanics.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|friction.v_rel|innerContactA.s_rel|innerContactB.s_rel|outerContactA.v_rel|outerContactB.s_rel|outerContactB.v_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad") translateModel(Modelica.Mechanics.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|friction.v_rel|innerContactA.s_rel|innerContactB.s_rel|outerContactA.v_rel|outerContactB.s_rel|outerContactB.v_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 221.5 MB / 230.3 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009206/0.0009205, allocations: 89.98 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.787e-05/1.79e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09359/0.09363, allocations: 50.42 MB / 387.5 MB, free: 7.562 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3213/0.4149, allocations: 78.36 MB / 465.8 MB, free: 500 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.4152, allocations: 67.97 kB / 465.9 MB, free: 432 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02595/0.4412, allocations: 9.477 MB / 475.4 MB, free: 6.926 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.4412, allocations: 3.938 kB / 475.4 MB, free: 6.922 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.095e-05/0.4412, allocations: 8 kB / 475.4 MB, free: 6.914 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001225/0.4425, allocations: 0.7173 MB / 476.1 MB, free: 6.152 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.263e-05/0.4425, allocations: 11.98 kB / 476.1 MB, free: 6.141 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.4426, allocations: 55.34 kB / 476.2 MB, free: 6.086 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.443, allocations: 314.1 kB / 476.5 MB, free: 5.738 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.105e-05/0.4431, allocations: 20 kB / 476.5 MB, free: 5.719 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.487e-05/0.4431, allocations: 24 kB / 476.5 MB, free: 5.695 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005932/0.4437, allocations: 350.5 kB / 476.9 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005956/0.4443, allocations: 339.9 kB / 477.2 MB, free: 5.012 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.378e-05/0.4444, allocations: 7.984 kB / 477.2 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.477e-05/0.4444, allocations: 0 / 477.2 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.4444, allocations: 12 kB / 477.2 MB, free: 4.992 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002207/0.4466, allocations: 1.308 MB / 478.5 MB, free: 3.637 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006386/0.4473, allocations: 468.5 kB / 479 MB, free: 3.168 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005311/0.4478, allocations: 307.6 kB / 479.3 MB, free: 2.863 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.975e-05/0.4479, allocations: 12.55 kB / 479.3 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.4479, allocations: 39.12 kB / 479.3 MB, free: 2.805 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 2.264e-06/0.4479, allocations: 4 kB / 479.3 MB, free: 2.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=103): time 0.003626/0.4516, allocations: 2.211 MB / 481.5 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/0.4516, allocations: 60.72 kB / 481.6 MB, free: 444 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/0.4518, allocations: 194.4 kB / 481.8 MB, free: 244 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.994e-05/0.4519, allocations: 25.7 kB / 481.8 MB, free: 212 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.452, allocations: 201.2 kB / 482 MB, free: 4 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000236/0.4523, allocations: 335.1 kB / 482.3 MB, free: 15.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.887e-05/0.4523, allocations: 0.75 kB / 482.3 MB, free: 15.67 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.4524, allocations: 366.8 kB / 482.7 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003203/0.4528, allocations: 206.6 kB / 482.9 MB, free: 15.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000371/0.4531, allocations: 274.3 kB / 483.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000373/0.4535, allocations: 242.1 kB / 483.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.4535, allocations: 4 kB / 483.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.000925/0.4545, allocations: 0.6293 MB / 484 MB, free: 13.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.4545, allocations: 8 kB / 484 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.4545, allocations: 3.938 kB / 484 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.4546, allocations: 7.938 kB / 484 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008527/0.4554, allocations: 219.8 kB / 484.3 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.4554, allocations: 4 kB / 484.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003717/0.4558, allocations: 39.95 kB / 484.3 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.631e-05/0.4559, allocations: 28 kB / 484.3 MB, free: 13.65 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.456, allocations: 124.8 kB / 484.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.621e-05/0.4561, allocations: 51.42 kB / 484.5 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001767/0.4563, allocations: 57.38 kB / 484.6 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.327e-06/0.4563, allocations: 8 kB / 484.6 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.4563, allocations: 4 kB / 484.6 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.4564, allocations: 7.969 kB / 484.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002435/0.4588, allocations: 1.741 MB / 486.3 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.457e-06/0.4588, allocations: 8.594 kB / 486.3 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008466/0.4597, allocations: 223.6 kB / 486.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-05/0.4597, allocations: 8 kB / 486.6 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-05/0.4598, allocations: 8 kB / 486.6 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.01e-05/0.4598, allocations: 11.98 kB / 486.6 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.645e-06/0.4598, allocations: 7.938 kB / 486.6 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001552/0.4613, allocations: 1.395 MB / 488 MB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.4615, allocations: 132.5 kB / 488.1 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.401e-05/0.4615, allocations: 8 kB / 488.1 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004026/0.462, allocations: 39.97 kB / 488.2 MB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.4621, allocations: 80.58 kB / 488.2 MB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.722e-05/0.4621, allocations: 31.98 kB / 488.3 MB, free: 9.398 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001282/0.4623, allocations: 154 kB / 488.4 MB, free: 9.246 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4623, allocations: 0 / 488.4 MB, free: 9.246 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005514/0.4628, allocations: 124 kB / 488.5 MB, free: 9.125 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000176/0.463, allocations: 122.7 kB / 488.7 MB, free: 9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008502/0.4639, allocations: 0.5848 MB / 489.2 MB, free: 8.406 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.4639, allocations: 0 / 489.2 MB, free: 8.406 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005011/0.4644, allocations: 379.8 kB / 489.6 MB, free: 8.039 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006092/0.465, allocations: 84.55 kB / 489.7 MB, free: 7.957 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.467, allocations: 1.204 MB / 490.9 MB, free: 6.668 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/0.4674, allocations: 0.8806 MB / 491.8 MB, free: 5.762 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003264/0.4677, allocations: 72.91 kB / 491.9 MB, free: 5.691 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001555/0.4679, allocations: 55.41 kB / 491.9 MB, free: 5.637 MB / 362.7 MB Notification: Performance of SimCode: time 7.31e-07/0.4679, allocations: 0 / 491.9 MB, free: 5.637 MB / 362.7 MB Notification: Performance of Templates: time 0.009866/0.4778, allocations: 5.519 MB / 497.4 MB, free: 180 kB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches