Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001671/0.001671, allocations: 103.4 kB / 16.51 MB, free: 6.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001763/0.001763, allocations: 194.5 kB / 17.43 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 47.2 kB / 299.9 MB, free: 6.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1041, allocations: 49.45 MB / 349.4 MB, free: 4.824 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003321/0.1075, allocations: 2.465 MB / 351.9 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001555/0.109, allocations: 0.9677 MB / 352.8 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.1092, allocations: 4 kB / 352.8 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.1094, allocations: 39.7 kB / 352.9 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003792/0.1098, allocations: 128.3 kB / 353 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003009/0.1101, allocations: 163.8 kB / 353.2 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003713/0.1104, allocations: 450.4 kB / 353.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.1106, allocations: 77.38 kB / 353.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.1109, allocations: 195.3 kB / 353.9 MB, free: 328 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002437/0.1111, allocations: 227.2 kB / 354.1 MB, free: 100 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.475e-05/0.1112, allocations: 27.94 kB / 354.1 MB, free: 72 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002014/0.1114, allocations: 95.95 kB / 354.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.1115, allocations: 99.56 kB / 354.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.1117, allocations: 171.1 kB / 354.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000456/0.1122, allocations: 486.7 kB / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1122, allocations: 0 / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1122, allocations: 0 / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.1122, allocations: 0 / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001254/0.1135, allocations: 0.6705 MB / 355.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.1135, allocations: 8.031 kB / 355.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003116/0.1138, allocations: 60.45 kB / 355.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003963/0.1142, allocations: 315.4 kB / 356 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/0.1143, allocations: 88.61 kB / 356.1 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.948e-05/0.1144, allocations: 32.38 kB / 356.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007816/0.1152, allocations: 417 kB / 356.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.1152, allocations: 0 / 356.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.929e-05/0.1153, allocations: 12 kB / 356.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.1153, allocations: 12 kB / 356.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.1163, allocations: 474.3 kB / 357 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.118, allocations: 0.9813 MB / 358 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008172/0.1188, allocations: 404.7 kB / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000466/0.1193, allocations: 238 kB / 358.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.634e-05/0.1193, allocations: 4.438 kB / 358.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.1194, allocations: 39 kB / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.603e-06/0.1194, allocations: 0 / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005205/0.1246, allocations: 2.171 MB / 360.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.196e-05/0.1247, allocations: 81.67 kB / 360.9 MB, free: 8.961 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003077/0.125, allocations: 271 kB / 361.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.08e-05/0.125, allocations: 37.7 kB / 361.2 MB, free: 8.645 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.834e-05/0.1251, allocations: 129.2 kB / 361.3 MB, free: 8.516 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.1253, allocations: 189.3 kB / 361.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.1254, allocations: 86.23 kB / 361.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.1256, allocations: 342.8 kB / 361.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000446/0.126, allocations: 193 kB / 362.1 MB, free: 7.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004734/0.1265, allocations: 252.6 kB / 362.4 MB, free: 7.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008276/0.1274, allocations: 392.3 kB / 362.8 MB, free: 7.059 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1274, allocations: 0 / 362.8 MB, free: 7.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001246/0.1286, allocations: 0.6173 MB / 363.4 MB, free: 6.434 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.09e-05/0.1287, allocations: 14.59 kB / 363.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.1287, allocations: 0 / 363.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007593/0.1294, allocations: 258.6 kB / 363.6 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003103/0.1298, allocations: 63.83 kB / 363.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003649/0.1334, allocations: 2.679 MB / 366.4 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003271/0.1338, allocations: 28.06 kB / 366.4 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.733e-05/0.1338, allocations: 27.98 kB / 366.4 MB, free: 3.238 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002081/0.134, allocations: 149.8 kB / 366.6 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.173e-05/0.1341, allocations: 31.62 kB / 366.6 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001089/0.1343, allocations: 55.3 kB / 366.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.1343, allocations: 7.938 kB / 366.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1343, allocations: 0 / 366.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.1343, allocations: 3.984 kB / 366.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/0.1365, allocations: 1.272 MB / 367.9 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1365, allocations: 8.031 kB / 368 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003415/0.1369, allocations: 59.89 kB / 368 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006709/0.1376, allocations: 240.6 kB / 368.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.073e-05/0.1376, allocations: 15.98 kB / 368.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1409/0.2785, allocations: 2.596 MB / 370.9 MB, free: 24.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.2786, allocations: 1.375 kB / 370.9 MB, free: 24.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/0.2804, allocations: 0.9517 MB / 371.8 MB, free: 24.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001643/0.2806, allocations: 149.4 kB / 372 MB, free: 24.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.799e-05/0.2807, allocations: 12.08 kB / 372 MB, free: 24.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003217/0.281, allocations: 31.73 kB / 372 MB, free: 24.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001938/0.2812, allocations: 69.39 kB / 372.1 MB, free: 24.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.142e-05/0.2813, allocations: 21.73 kB / 372.1 MB, free: 24.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002305/0.2815, allocations: 197.3 kB / 372.3 MB, free: 24.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2815, allocations: 1.094 kB / 372.3 MB, free: 24.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006226/0.2821, allocations: 151.5 kB / 372.4 MB, free: 24.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000224/0.2824, allocations: 145 kB / 372.6 MB, free: 24.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.2838, allocations: 0.6948 MB / 373.3 MB, free: 23.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2838, allocations: 2.734 kB / 373.3 MB, free: 23.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007802/0.2846, allocations: 482.8 kB / 373.7 MB, free: 23.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004548/0.2851, allocations: 41.45 kB / 373.8 MB, free: 23.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.2865, allocations: 0.925 MB / 374.7 MB, free: 23.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/0.2867, allocations: 0.7976 MB / 375.5 MB, free: 22.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002277/0.287, allocations: 69.59 kB / 375.6 MB, free: 22.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.2871, allocations: 29.31 kB / 375.6 MB, free: 22.45 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2871, allocations: 0 / 375.6 MB, free: 22.45 MB / 302.1 MB Notification: Performance of Templates: time 0.01411/0.3012, allocations: 7.275 MB / 382.9 MB, free: 20.84 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches