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.001283/0.001283, allocations: 102.6 kB / 17.59 MB, free: 5.418 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.001268/0.001268, allocations: 191.3 kB / 18.52 MB, free: 4.496 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.369/1.369, allocations: 222.9 MB / 242.2 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 50.8 kB / 301.3 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09707/0.09809, allocations: 49.44 MB / 350.7 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003636/0.1018, allocations: 2.417 MB / 353.1 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001749/0.1035, allocations: 0.9675 MB / 354.1 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.1037, allocations: 4 kB / 354.1 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002115/0.104, allocations: 51.52 kB / 354.2 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005229/0.1045, allocations: 167 kB / 354.3 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004072/0.1049, allocations: 171.7 kB / 354.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004321/0.1054, allocations: 474.5 kB / 355 MB, free: 188 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000199/0.1056, allocations: 92.92 kB / 355 MB, free: 88 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003029/0.1059, allocations: 203.3 kB / 355.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003209/0.1062, allocations: 243.2 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.228e-05/0.1063, allocations: 36 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002392/0.1066, allocations: 127.9 kB / 355.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001484/0.1067, allocations: 103.7 kB / 355.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001957/0.1069, allocations: 191 kB / 355.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005648/0.1075, allocations: 486.8 kB / 356.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1075, allocations: 0 / 356.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1075, allocations: 4 kB / 356.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.1075, allocations: 0 / 356.4 MB, free: 14.72 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.00135/0.1089, allocations: 0.6807 MB / 357.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.1089, allocations: 8.031 kB / 357.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003247/0.1093, allocations: 60.44 kB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004285/0.1097, allocations: 311.4 kB / 357.5 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.1099, allocations: 92.55 kB / 357.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.781e-05/0.1099, allocations: 36.38 kB / 357.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007813/0.1107, allocations: 421 kB / 358 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.1108, allocations: 4 kB / 358 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.129e-05/0.1108, allocations: 8 kB / 358 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.1108, allocations: 8 kB / 358 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.1119, allocations: 474.3 kB / 358.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001732/0.1136, allocations: 0.9813 MB / 359.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008418/0.1145, allocations: 401.8 kB / 359.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004876/0.115, allocations: 238.1 kB / 360.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.666e-05/0.115, allocations: 4.438 kB / 360.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.1151, allocations: 39 kB / 360.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.904e-06/0.1151, allocations: 0 / 360.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005472/0.1206, allocations: 2.163 MB / 362.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.322e-05/0.1207, allocations: 85.61 kB / 362.4 MB, free: 8.441 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/0.121, allocations: 267 kB / 362.6 MB, free: 8.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.215e-05/0.1211, allocations: 37.7 kB / 362.7 MB, free: 8.129 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.1212, allocations: 133.2 kB / 362.8 MB, free: 7.996 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.1213, allocations: 189.3 kB / 363 MB, free: 7.809 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.1215, allocations: 90.23 kB / 363.1 MB, free: 7.715 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1216, allocations: 334.8 kB / 363.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004574/0.1221, allocations: 205 kB / 363.6 MB, free: 7.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004812/0.1226, allocations: 244.6 kB / 363.8 MB, free: 6.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008566/0.1235, allocations: 392.3 kB / 364.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1235, allocations: 0 / 364.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001273/0.1248, allocations: 0.6056 MB / 364.8 MB, free: 5.926 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.1248, allocations: 15.97 kB / 364.8 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.1248, allocations: 0 / 364.8 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007841/0.1256, allocations: 263.3 kB / 365.1 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000316/0.1259, allocations: 63.89 kB / 365.2 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004062/0.13, allocations: 2.932 MB / 368.1 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003492/0.1304, allocations: 32 kB / 368.1 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.548e-05/0.1304, allocations: 19.98 kB / 368.1 MB, free: 2.469 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.0002245/0.1307, allocations: 156.9 kB / 368.3 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.255e-05/0.1308, allocations: 35.56 kB / 368.3 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.1309, allocations: 51.3 kB / 368.4 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.1309, allocations: 4 kB / 368.4 MB, free: 2.219 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.1309, allocations: 3.938 kB / 368.4 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.1309, allocations: 3.984 kB / 368.4 MB, free: 2.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002267/0.1332, allocations: 1.268 MB / 369.7 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1332, allocations: 0 / 369.7 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000348/0.1336, allocations: 71.83 kB / 369.7 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006873/0.1343, allocations: 248.6 kB / 370 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.2e-05/0.1343, allocations: 11.98 kB / 370 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1574/0.2917, allocations: 2.835 MB / 372.8 MB, free: 24.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.2918, allocations: 1.891 kB / 372.8 MB, free: 24.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.2936, allocations: 0.9585 MB / 373.8 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001628/0.2938, allocations: 145.2 kB / 373.9 MB, free: 23.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.021e-05/0.2938, allocations: 17.44 kB / 373.9 MB, free: 23.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003024/0.2942, allocations: 29.11 kB / 374 MB, free: 23.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001869/0.2944, allocations: 66.19 kB / 374 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.082e-05/0.2944, allocations: 20.75 kB / 374.1 MB, free: 23.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002569/0.2947, allocations: 196.3 kB / 374.2 MB, free: 23.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2947, allocations: 0 / 374.2 MB, free: 23.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006881/0.2954, allocations: 153.3 kB / 374.4 MB, free: 23.75 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.0002419/0.2956, allocations: 149.3 kB / 374.5 MB, free: 23.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001468/0.2971, allocations: 0.7232 MB / 375.3 MB, free: 23.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2971, allocations: 3.594 kB / 375.3 MB, free: 23.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007552/0.2979, allocations: 479.7 kB / 375.7 MB, free: 23.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000424/0.2983, allocations: 44.14 kB / 375.8 MB, free: 23.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001445/0.2998, allocations: 0.8383 MB / 376.6 MB, free: 22.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.3, allocations: 0.7949 MB / 377.4 MB, free: 21.97 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.3002, allocations: 38.73 kB / 377.5 MB, free: 21.96 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3002, allocations: 4 kB / 377.5 MB, free: 21.95 MB / 302.1 MB Notification: Performance of Templates: time 0.009684/0.3099, allocations: 5.984 MB / 383.4 MB, free: 20.77 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/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