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.00117/0.001169, allocations: 112.5 kB / 17.68 MB, free: 5.496 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.001193/0.001193, allocations: 190.9 kB / 18.62 MB, free: 4.562 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.382/1.382, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009811/0.0009812, allocations: 56.16 kB / 302 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1028, allocations: 49.45 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003564/0.1064, allocations: 2.416 MB / 353.9 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.1081, allocations: 0.9675 MB / 354.9 MB, free: 292 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.1082, allocations: 7.938 kB / 354.9 MB, free: 284 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.1084, allocations: 47.58 kB / 354.9 MB, free: 236 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004654/0.1089, allocations: 163 kB / 355.1 MB, free: 72 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.1093, allocations: 175.7 kB / 355.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004328/0.1097, allocations: 478.4 kB / 355.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.1099, allocations: 88.91 kB / 355.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002496/0.1102, allocations: 203.4 kB / 356 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002812/0.1105, allocations: 247.1 kB / 356.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.795e-05/0.1105, allocations: 36 kB / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.1108, allocations: 127.9 kB / 356.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.1109, allocations: 115.6 kB / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.1111, allocations: 187.1 kB / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004962/0.1116, allocations: 490.5 kB / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1116, allocations: 0 / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.798e-06/0.1116, allocations: 0 / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.1116, allocations: 3.938 kB / 357.2 MB, free: 13.95 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.001312/0.1129, allocations: 0.6821 MB / 357.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.113, allocations: 8.031 kB / 357.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003026/0.1133, allocations: 52.45 kB / 357.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004995/0.1138, allocations: 327.4 kB / 358.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.114, allocations: 88.61 kB / 358.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.571e-05/0.114, allocations: 28.38 kB / 358.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007299/0.1148, allocations: 413.1 kB / 358.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.1148, allocations: 4 kB / 358.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.594e-05/0.1148, allocations: 12 kB / 358.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.1149, allocations: 12 kB / 358.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009597/0.1158, allocations: 474.2 kB / 359.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001705/0.1175, allocations: 0.9618 MB / 360.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008351/0.1184, allocations: 413.6 kB / 360.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004525/0.1188, allocations: 238.1 kB / 360.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.16e-05/0.1189, allocations: 4.438 kB / 360.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.1189, allocations: 42.98 kB / 360.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 3.828e-06/0.1189, allocations: 0 / 360.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.004928/0.1239, allocations: 2.171 MB / 363.1 MB, free: 7.773 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.124, allocations: 89.61 kB / 363.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002935/0.1243, allocations: 267 kB / 363.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.71e-05/0.1243, allocations: 33.7 kB / 363.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.302e-05/0.1244, allocations: 133.2 kB / 363.6 MB, free: 7.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.1245, allocations: 185.3 kB / 363.8 MB, free: 7.043 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/0.1247, allocations: 90.23 kB / 363.9 MB, free: 6.949 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.1248, allocations: 338.8 kB / 364.2 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004286/0.1253, allocations: 197 kB / 364.4 MB, free: 6.418 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004436/0.1257, allocations: 244.6 kB / 364.6 MB, free: 6.168 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007845/0.1265, allocations: 392.4 kB / 365 MB, free: 5.777 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1265, allocations: 4 kB / 365 MB, free: 5.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001173/0.1277, allocations: 0.6134 MB / 365.6 MB, free: 5.152 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1277, allocations: 7.938 kB / 365.6 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.1278, allocations: 4 kB / 365.6 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007901/0.1286, allocations: 251.3 kB / 365.9 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003029/0.1289, allocations: 63.89 kB / 365.9 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004161/0.133, allocations: 2.943 MB / 368.9 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003013/0.1334, allocations: 31.91 kB / 368.9 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.052e-05/0.1334, allocations: 16 kB / 368.9 MB, free: 1.707 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.0002387/0.1337, allocations: 165.8 kB / 369.1 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.951e-05/0.1337, allocations: 35.56 kB / 369.1 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.1339, allocations: 43.31 kB / 369.2 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.1339, allocations: 11.98 kB / 369.2 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1339, allocations: 0 / 369.2 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.1339, allocations: 0 / 369.2 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002292/0.1362, allocations: 1.266 MB / 370.4 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.1362, allocations: 3.938 kB / 370.5 MB, free: 116 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003098/0.1365, allocations: 63.95 kB / 370.5 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2043/0.3408, allocations: 235.3 kB / 370.7 MB, free: 25.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.341, allocations: 14.58 kB / 370.8 MB, free: 25.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003762/0.3448, allocations: 2.851 MB / 373.6 MB, free: 24.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.3448, allocations: 1.031 kB / 373.6 MB, free: 24.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001904/0.3467, allocations: 0.9601 MB / 374.6 MB, free: 23.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001849/0.3469, allocations: 143 kB / 374.7 MB, free: 23.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.997e-05/0.347, allocations: 14.38 kB / 374.7 MB, free: 23.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002956/0.3473, allocations: 29.5 kB / 374.8 MB, free: 23.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.3475, allocations: 66.94 kB / 374.8 MB, free: 23.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.7e-05/0.3475, allocations: 19.44 kB / 374.8 MB, free: 23.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002208/0.3478, allocations: 200 kB / 375 MB, free: 23.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3478, allocations: 0 / 375 MB, free: 23.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006519/0.3484, allocations: 152.9 kB / 375.2 MB, free: 23.62 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.0002354/0.3487, allocations: 138 kB / 375.3 MB, free: 23.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.3501, allocations: 0.7022 MB / 376 MB, free: 23.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3502, allocations: 1.875 kB / 376 MB, free: 23.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008201/0.351, allocations: 486.2 kB / 376.5 MB, free: 23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004647/0.3515, allocations: 41.44 kB / 376.5 MB, free: 22.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.3529, allocations: 0.8012 MB / 377.3 MB, free: 22.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002863/0.3532, allocations: 0.7943 MB / 378.1 MB, free: 21.87 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002001/0.3535, allocations: 67.44 kB / 378.2 MB, free: 21.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.3536, allocations: 34.56 kB / 378.2 MB, free: 21.85 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3536, allocations: 3.094 kB / 378.2 MB, free: 21.85 MB / 302.1 MB Notification: Performance of Templates: time 0.01447/0.368, allocations: 7.76 MB / 386 MB, free: 19.8 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 -s cvode -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