Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001397/0.001397, allocations: 108.4 kB / 18.34 MB, free: 4.699 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.001536/0.001536, allocations: 190.9 kB / 19.28 MB, free: 3.766 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.451/1.451, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001234/0.001234, allocations: 51.94 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08618/0.08742, allocations: 46.63 MB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003967/0.09143, allocations: 2.35 MB / 331.1 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.09309, allocations: 0.9568 MB / 332 MB, free: 424 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.09324, allocations: 4 kB / 332 MB, free: 420 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002405/0.09351, allocations: 43.58 kB / 332.1 MB, free: 376 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005088/0.09403, allocations: 135.2 kB / 332.2 MB, free: 240 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003458/0.09438, allocations: 175.7 kB / 332.4 MB, free: 64 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004517/0.09484, allocations: 418.7 kB / 332.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.09502, allocations: 72.69 kB / 332.8 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.09521, allocations: 179.5 kB / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002648/0.09548, allocations: 219.3 kB / 333.2 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.034e-05/0.09554, allocations: 32 kB / 333.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001892/0.09574, allocations: 119.9 kB / 333.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.09587, allocations: 99.7 kB / 333.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.09603, allocations: 163.2 kB / 333.6 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000432/0.09647, allocations: 446.6 kB / 334.1 MB, free: 14.35 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.09648, allocations: 0 / 334.1 MB, free: 14.35 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.09649, allocations: 4 kB / 334.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.09651, allocations: 3.938 kB / 334.1 MB, free: 14.34 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001081/0.09759, allocations: 0.6277 MB / 334.7 MB, free: 13.66 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.09764, allocations: 16.03 kB / 334.7 MB, free: 13.65 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002957/0.09794, allocations: 48.55 kB / 334.8 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005407/0.09849, allocations: 315.7 kB / 335.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.09862, allocations: 88.45 kB / 335.2 MB, free: 13.15 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.743e-05/0.09869, allocations: 28.38 kB / 335.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006486/0.09934, allocations: 377.4 kB / 335.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.09937, allocations: 0 / 335.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.09941, allocations: 12 kB / 335.6 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.09942, allocations: 8 kB / 335.6 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008035/0.1002, allocations: 421.9 kB / 336 MB, free: 12.31 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001986/0.1022, allocations: 1.226 MB / 337.2 MB, free: 11.01 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006245/0.1029, allocations: 362.5 kB / 337.6 MB, free: 10.65 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003512/0.1032, allocations: 184.8 kB / 337.8 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.1033, allocations: 7.938 kB / 337.8 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.1033, allocations: 43.22 kB / 337.8 MB, free: 10.41 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.583e-06/0.1033, allocations: 3.938 kB / 337.8 MB, free: 10.4 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004461/0.1078, allocations: 1.925 MB / 339.7 MB, free: 8.363 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.296e-05/0.1079, allocations: 84.86 kB / 339.8 MB, free: 8.262 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002866/0.1081, allocations: 242.2 kB / 340.1 MB, free: 8.012 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.1082, allocations: 33.7 kB / 340.1 MB, free: 7.973 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.311e-05/0.1083, allocations: 140.6 kB / 340.2 MB, free: 7.832 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.1084, allocations: 146.1 kB / 340.4 MB, free: 7.688 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.1085, allocations: 82.11 kB / 340.5 MB, free: 7.602 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1087, allocations: 334.8 kB / 340.8 MB, free: 7.266 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000349/0.109, allocations: 168.8 kB / 340.9 MB, free: 7.102 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003807/0.1094, allocations: 229.9 kB / 341.2 MB, free: 6.855 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006358/0.11, allocations: 343.1 kB / 341.5 MB, free: 6.508 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1101, allocations: 4.031 kB / 341.5 MB, free: 6.504 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001083/0.1111, allocations: 0.5551 MB / 342.1 MB, free: 5.941 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.1112, allocations: 4 kB / 342.1 MB, free: 5.938 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.1112, allocations: 4 kB / 342.1 MB, free: 5.934 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007412/0.1119, allocations: 256.8 kB / 342.3 MB, free: 5.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.1122, allocations: 51.89 kB / 342.4 MB, free: 5.629 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003818/0.116, allocations: 2.885 MB / 345.3 MB, free: 2.605 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002424/0.1163, allocations: 27.97 kB / 345.3 MB, free: 2.578 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.899e-05/0.1163, allocations: 12 kB / 345.3 MB, free: 2.566 MB / 286.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.0001687/0.1165, allocations: 161.8 kB / 345.5 MB, free: 2.398 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.836e-05/0.1165, allocations: 27.62 kB / 345.5 MB, free: 2.371 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.344e-05/0.1166, allocations: 43 kB / 345.5 MB, free: 2.328 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1167, allocations: 4 kB / 345.5 MB, free: 2.324 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.1167, allocations: 0 / 345.5 MB, free: 2.324 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.1167, allocations: 3.984 kB / 345.5 MB, free: 2.32 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001744/0.1184, allocations: 1.09 MB / 346.6 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1184, allocations: 4 kB / 346.6 MB, free: 1.168 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002211/0.1187, allocations: 43.97 kB / 346.7 MB, free: 1.125 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006295/0.1193, allocations: 240.8 kB / 346.9 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.742e-05/0.1194, allocations: 15.98 kB / 346.9 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003558/0.1229, allocations: 2.827 MB / 349.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1229, allocations: 0 / 349.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.1243, allocations: 0.8237 MB / 350.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/0.1245, allocations: 132.8 kB / 350.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.407e-05/0.1246, allocations: 19.88 kB / 350.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.1248, allocations: 23.97 kB / 350.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.125, allocations: 55.91 kB / 350.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-05/0.125, allocations: 19.98 kB / 350.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001988/0.1252, allocations: 180.3 kB / 351 MB, free: 12.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1253, allocations: 0 / 351 MB, free: 12.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005711/0.1258, allocations: 147.9 kB / 351.1 MB, free: 12.47 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.0002385/0.1261, allocations: 135.1 kB / 351.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.1273, allocations: 0.6291 MB / 351.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1273, allocations: 0 / 351.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000681/0.128, allocations: 433.3 kB / 352.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003863/0.1284, allocations: 43.84 kB / 352.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.1297, allocations: 0.6907 MB / 353.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003413/0.13, allocations: 0.7839 MB / 353.8 MB, free: 9.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001618/0.1302, allocations: 62.95 kB / 353.9 MB, free: 9.613 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.485e-05/0.1303, allocations: 23.42 kB / 353.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1303, allocations: 0 / 353.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of Templates: time 0.01128/0.1416, allocations: 7.108 MB / 361 MB, free: 2.473 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches