Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001292/0.001298, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001522/0.001522, allocations: 186.9 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.364/1.364, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 51.92 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08068/0.0819, allocations: 46.63 MB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003646/0.08557, allocations: 2.42 MB / 331.1 MB, free: 1.309 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.08733, allocations: 1.011 MB / 332.1 MB, free: 296 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000187/0.08754, allocations: 7.938 kB / 332.2 MB, free: 288 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002091/0.08778, allocations: 43.58 kB / 332.2 MB, free: 244 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005322/0.08832, allocations: 159.1 kB / 332.4 MB, free: 84 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004006/0.08873, allocations: 183.6 kB / 332.5 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005005/0.08924, allocations: 482.5 kB / 333 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.08944, allocations: 76.95 kB / 333.1 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003116/0.08976, allocations: 203.4 kB / 333.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003272/0.09009, allocations: 251.1 kB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.406e-05/0.09017, allocations: 40 kB / 333.6 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002139/0.09039, allocations: 127.9 kB / 333.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001474/0.09054, allocations: 107.6 kB / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.09072, allocations: 183.2 kB / 334 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004604/0.09119, allocations: 494.5 kB / 334.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.0912, allocations: 4 kB / 334.5 MB, free: 13.97 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.09121, allocations: 0 / 334.5 MB, free: 13.97 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.09122, allocations: 0 / 334.5 MB, free: 13.97 MB / 286.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.001111/0.09234, allocations: 0.6782 MB / 335.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.821e-05/0.09237, allocations: 8.031 kB / 335.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002858/0.09266, allocations: 56.53 kB / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004501/0.09312, allocations: 323.5 kB / 335.5 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.09324, allocations: 92.55 kB / 335.6 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.367e-05/0.09331, allocations: 32.28 kB / 335.6 MB, free: 12.69 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007166/0.09404, allocations: 417.1 kB / 336 MB, free: 12.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.09406, allocations: 4 kB / 336 MB, free: 12.27 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.425e-05/0.09411, allocations: 12 kB / 336.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.09412, allocations: 8 kB / 336.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009315/0.09506, allocations: 470.3 kB / 336.5 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001551/0.09662, allocations: 0.9735 MB / 337.5 MB, free: 10.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000763/0.0974, allocations: 404.4 kB / 337.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004407/0.09785, allocations: 238 kB / 338.1 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.297e-05/0.09791, allocations: 8.438 kB / 338.1 MB, free: 10.11 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.09793, allocations: 39 kB / 338.2 MB, free: 10.06 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 1.643e-06/0.09794, allocations: 0 / 338.2 MB, free: 10.06 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.004839/0.1028, allocations: 2.164 MB / 340.3 MB, free: 7.789 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.1028, allocations: 81.67 kB / 340.4 MB, free: 7.691 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002743/0.1031, allocations: 263.1 kB / 340.7 MB, free: 7.426 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.079e-05/0.1032, allocations: 37.7 kB / 340.7 MB, free: 7.383 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.033e-05/0.1033, allocations: 141 kB / 340.8 MB, free: 7.238 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.1034, allocations: 177.5 kB / 341 MB, free: 7.062 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/0.1035, allocations: 98.14 kB / 341.1 MB, free: 6.961 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1037, allocations: 334.8 kB / 341.4 MB, free: 6.625 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004184/0.1041, allocations: 205 kB / 341.6 MB, free: 6.422 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004492/0.1045, allocations: 244.6 kB / 341.9 MB, free: 6.176 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007632/0.1053, allocations: 392.4 kB / 342.3 MB, free: 5.789 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1053, allocations: 3.938 kB / 342.3 MB, free: 5.785 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001174/0.1065, allocations: 0.6057 MB / 342.9 MB, free: 5.168 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.1065, allocations: 7.938 kB / 342.9 MB, free: 5.16 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.1065, allocations: 0 / 342.9 MB, free: 5.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006871/0.1072, allocations: 265.9 kB / 343.1 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000289/0.1075, allocations: 67.89 kB / 343.2 MB, free: 4.832 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003649/0.1112, allocations: 2.92 MB / 346.1 MB, free: 1.777 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002761/0.1115, allocations: 32 kB / 346.2 MB, free: 1.746 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.672e-05/0.1115, allocations: 19.98 kB / 346.2 MB, free: 1.727 MB / 286.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.0001738/0.1117, allocations: 161.8 kB / 346.3 MB, free: 1.559 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.168e-05/0.1118, allocations: 35.56 kB / 346.4 MB, free: 1.523 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001083/0.1119, allocations: 47.3 kB / 346.4 MB, free: 1.477 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1119, allocations: 4 kB / 346.4 MB, free: 1.473 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.1119, allocations: 0 / 346.4 MB, free: 1.473 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.112, allocations: 7.984 kB / 346.4 MB, free: 1.465 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002098/0.1141, allocations: 1.266 MB / 347.7 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.1141, allocations: 4 kB / 347.7 MB, free: 136 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003037/0.1144, allocations: 63.95 kB / 347.8 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006426/0.115, allocations: 244.7 kB / 348 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.764e-05/0.1151, allocations: 15.98 kB / 348 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003444/0.1185, allocations: 2.838 MB / 350.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1186, allocations: 3.984 kB / 350.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001651/0.1202, allocations: 0.9582 MB / 351.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001699/0.1204, allocations: 148.8 kB / 352 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.856e-05/0.1205, allocations: 19.94 kB / 352 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002915/0.1208, allocations: 27.97 kB / 352 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.1209, allocations: 68.33 kB / 352.1 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.124e-05/0.121, allocations: 27.91 kB / 352.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002039/0.1212, allocations: 192.6 kB / 352.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1212, allocations: 4 kB / 352.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005678/0.1218, allocations: 152 kB / 352.4 MB, free: 11.2 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.0002162/0.122, allocations: 151 kB / 352.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001279/0.1233, allocations: 0.6917 MB / 353.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.1233, allocations: 8 kB / 353.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007523/0.1241, allocations: 475.6 kB / 353.8 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003959/0.1245, allocations: 40.42 kB / 353.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/0.1258, allocations: 0.793 MB / 354.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.1262, allocations: 0.7968 MB / 355.4 MB, free: 8.168 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001789/0.1264, allocations: 66.94 kB / 355.5 MB, free: 8.102 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.1265, allocations: 35.42 kB / 355.5 MB, free: 8.066 MB / 302.1 MB Notification: Performance of SimCode: time 6.392e-06/0.1265, allocations: 0 / 355.5 MB, free: 8.066 MB / 302.1 MB Notification: Performance of Templates: time 0.01243/0.1389, allocations: 7.77 MB / 363.3 MB, free: 300 kB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches