Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 101.6 kB / 17.59 MB, free: 5.426 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.001073/0.001073, allocations: 191.3 kB / 18.52 MB, free: 4.508 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.381/1.381, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009982/0.0009983, allocations: 51.2 kB / 301.3 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09237/0.09339, allocations: 49.45 MB / 350.7 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003491/0.09691, allocations: 2.33 MB / 353.1 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.09849, allocations: 0.9209 MB / 354 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.09863, allocations: 7.938 kB / 354 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.09885, allocations: 43.58 kB / 354 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004463/0.09931, allocations: 145.8 kB / 354.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003317/0.09965, allocations: 171.6 kB / 354.3 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000387/0.1, allocations: 414.8 kB / 354.7 MB, free: 380 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.1002, allocations: 68.7 kB / 354.8 MB, free: 308 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001989/0.1004, allocations: 183.4 kB / 355 MB, free: 124 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002745/0.1007, allocations: 215.3 kB / 355.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.075e-05/0.1008, allocations: 32 kB / 355.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.101, allocations: 107.9 kB / 355.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.1011, allocations: 103.7 kB / 355.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001604/0.1013, allocations: 159.2 kB / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004656/0.1018, allocations: 450.9 kB / 356 MB, free: 15.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1018, allocations: 0 / 356 MB, free: 15.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1018, allocations: 0 / 356 MB, free: 15.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1018, allocations: 0 / 356 MB, free: 15.07 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001094/0.1029, allocations: 0.6355 MB / 356.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.1029, allocations: 8.031 kB / 356.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002984/0.1032, allocations: 52.53 kB / 356.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003905/0.1036, allocations: 308.2 kB / 357 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.1038, allocations: 88.52 kB / 357.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.704e-05/0.1038, allocations: 28.31 kB / 357.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006509/0.1045, allocations: 381.4 kB / 357.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.1045, allocations: 4 kB / 357.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.586e-05/0.1046, allocations: 12 kB / 357.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.1046, allocations: 8 kB / 357.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008583/0.1054, allocations: 421.9 kB / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/0.1074, allocations: 1.237 MB / 359.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006586/0.1081, allocations: 350.7 kB / 359.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000369/0.1085, allocations: 188.8 kB / 359.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.519e-05/0.1085, allocations: 11.98 kB / 359.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.1085, allocations: 34.56 kB / 359.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.512e-06/0.1085, allocations: 3.938 kB / 359.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004634/0.1132, allocations: 1.926 MB / 361.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.1132, allocations: 84.86 kB / 361.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002847/0.1135, allocations: 242.1 kB / 362 MB, free: 8.746 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.002e-05/0.1136, allocations: 33.7 kB / 362 MB, free: 8.707 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.471e-05/0.1137, allocations: 136.6 kB / 362.2 MB, free: 8.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.1138, allocations: 149.9 kB / 362.3 MB, free: 8.422 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.114, allocations: 86.02 kB / 362.4 MB, free: 8.332 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1141, allocations: 334.8 kB / 362.7 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003591/0.1145, allocations: 168.8 kB / 362.9 MB, free: 7.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000399/0.1149, allocations: 225.9 kB / 363.1 MB, free: 7.594 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006774/0.1156, allocations: 351.2 kB / 363.5 MB, free: 7.234 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1156, allocations: 0 / 363.5 MB, free: 7.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00108/0.1167, allocations: 0.5551 MB / 364 MB, free: 6.668 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.1167, allocations: 8 kB / 364 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.1167, allocations: 0 / 364 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007189/0.1174, allocations: 252.7 kB / 364.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.1177, allocations: 51.91 kB / 364.3 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00377/0.1215, allocations: 2.886 MB / 367.2 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002705/0.1218, allocations: 27.98 kB / 367.2 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.671e-05/0.1218, allocations: 15.98 kB / 367.3 MB, free: 3.293 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001857/0.122, allocations: 161.8 kB / 367.4 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.739e-05/0.1221, allocations: 27.66 kB / 367.4 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.935e-05/0.1222, allocations: 42.98 kB / 367.5 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1222, allocations: 4 kB / 367.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.1222, allocations: 0 / 367.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1222, allocations: 3.984 kB / 367.5 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001745/0.124, allocations: 1.097 MB / 368.6 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.124, allocations: 0 / 368.6 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002123/0.1242, allocations: 39.97 kB / 368.6 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006345/0.1248, allocations: 236.7 kB / 368.9 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.039e-05/0.1249, allocations: 19.92 kB / 368.9 MB, free: 1.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1471/0.2719, allocations: 2.833 MB / 371.7 MB, free: 24.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.272, allocations: 4.438 kB / 371.7 MB, free: 24.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001562/0.2735, allocations: 0.8161 MB / 372.5 MB, free: 24.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.2737, allocations: 141.7 kB / 372.7 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.64e-05/0.2738, allocations: 11.23 kB / 372.7 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002659/0.2741, allocations: 25.28 kB / 372.7 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.2742, allocations: 60.92 kB / 372.8 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.298e-05/0.2743, allocations: 16.53 kB / 372.8 MB, free: 24.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002058/0.2745, allocations: 180.6 kB / 373 MB, free: 23.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.62e-07/0.2745, allocations: 0 / 373 MB, free: 23.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006025/0.2751, allocations: 142.1 kB / 373.1 MB, free: 23.98 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0002214/0.2753, allocations: 139.5 kB / 373.2 MB, free: 23.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.2767, allocations: 0.6508 MB / 373.9 MB, free: 23.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2767, allocations: 0 / 373.9 MB, free: 23.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000689/0.2774, allocations: 430.1 kB / 374.3 MB, free: 23.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.2778, allocations: 31.83 kB / 374.3 MB, free: 23.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.2791, allocations: 0.7337 MB / 375.1 MB, free: 23.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002213/0.2793, allocations: 0.7776 MB / 375.8 MB, free: 22.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.2795, allocations: 33.44 kB / 375.9 MB, free: 22.47 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2795, allocations: 0 / 375.9 MB, free: 22.47 MB / 302.1 MB Notification: Performance of Templates: time 0.008405/0.2879, allocations: 5.223 MB / 381.1 MB, free: 21.81 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches