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.0009506/0.0009506, allocations: 98.06 kB / 16.94 MB, free: 5.984 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.001014/0.001014, allocations: 176.4 kB / 17.82 MB, free: 5.652 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.461/1.461, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004415/0.0004417, allocations: 11.28 kB / 280.7 MB, free: 3.773 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1141, allocations: 47.59 MB / 328.3 MB, free: 4.113 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002821/0.117, allocations: 1.946 MB / 330.3 MB, free: 2.152 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001793/0.1188, allocations: 0.9692 MB / 331.2 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.119, allocations: 4 kB / 331.2 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.1191, allocations: 39.75 kB / 331.3 MB, free: 1.133 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004717/0.1196, allocations: 143.5 kB / 331.4 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002875/0.1199, allocations: 151.7 kB / 331.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003499/0.1202, allocations: 287.5 kB / 331.8 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001742/0.1204, allocations: 72.91 kB / 331.9 MB, free: 500 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002766/0.1207, allocations: 183.4 kB / 332.1 MB, free: 316 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002996/0.121, allocations: 215.3 kB / 332.3 MB, free: 100 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.264e-05/0.1211, allocations: 20 kB / 332.3 MB, free: 80 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001917/0.1213, allocations: 83.94 kB / 332.4 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.1214, allocations: 83.72 kB / 332.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.917e-05/0.1215, allocations: 81.52 kB / 332.6 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004206/0.1219, allocations: 355.3 kB / 332.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.1219, allocations: 0 / 332.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.1219, allocations: 0 / 332.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.1219, allocations: 4 kB / 332.9 MB, free: 15.48 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.001203/0.1232, allocations: 0.6236 MB / 333.5 MB, free: 14.8 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.1232, allocations: 15.97 kB / 333.6 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003143/0.1235, allocations: 51.59 kB / 333.6 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004632/0.124, allocations: 306.3 kB / 333.9 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.1242, allocations: 95.98 kB / 334 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.932e-05/0.1242, allocations: 28 kB / 334 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00082/0.1251, allocations: 412.9 kB / 334.4 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.1251, allocations: 0 / 334.4 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.602e-05/0.1251, allocations: 16 kB / 334.5 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.1252, allocations: 8 kB / 334.5 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.1262, allocations: 486.2 kB / 334.9 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.128, allocations: 0.9852 MB / 335.9 MB, free: 12.31 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008414/0.1288, allocations: 412.5 kB / 336.3 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.421e-05/0.1289, allocations: 12.38 kB / 336.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.771e-05/0.1289, allocations: 39 kB / 336.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 1.502e-06/0.1289, allocations: 0 / 336.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.0052/0.1341, allocations: 2.207 MB / 338.6 MB, free: 9.52 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.787e-05/0.1342, allocations: 85.67 kB / 338.7 MB, free: 9.418 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003056/0.1345, allocations: 255.1 kB / 338.9 MB, free: 9.16 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.554e-05/0.1346, allocations: 37.7 kB / 338.9 MB, free: 9.117 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.1347, allocations: 137.1 kB / 339.1 MB, free: 8.977 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/0.1349, allocations: 185.4 kB / 339.3 MB, free: 8.793 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.571e-05/0.1349, allocations: 15.88 kB / 339.3 MB, free: 8.777 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1351, allocations: 342.8 kB / 339.6 MB, free: 8.434 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004613/0.1355, allocations: 201 kB / 339.8 MB, free: 8.238 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004763/0.136, allocations: 248.6 kB / 340.1 MB, free: 7.984 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004319/0.1365, allocations: 198.1 kB / 340.2 MB, free: 7.793 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1365, allocations: 0 / 340.2 MB, free: 7.793 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001232/0.1377, allocations: 0.6212 MB / 340.9 MB, free: 7.164 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.1378, allocations: 7.953 kB / 340.9 MB, free: 7.156 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1378, allocations: 0 / 340.9 MB, free: 7.156 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007624/0.1385, allocations: 262.1 kB / 341.1 MB, free: 6.898 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003058/0.1389, allocations: 71.89 kB / 341.2 MB, free: 6.828 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003745/0.1426, allocations: 2.746 MB / 343.9 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002964/0.1429, allocations: 39.92 kB / 344 MB, free: 3.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.67e-05/0.143, allocations: 24.05 kB / 344 MB, free: 3.887 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002192/0.1432, allocations: 153.8 kB / 344.2 MB, free: 3.727 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.195e-05/0.1433, allocations: 31.62 kB / 344.2 MB, free: 3.695 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.1434, allocations: 51.3 kB / 344.2 MB, free: 3.645 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.1434, allocations: 8 kB / 344.2 MB, free: 3.637 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.1434, allocations: 0 / 344.2 MB, free: 3.637 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.1434, allocations: 3.984 kB / 344.3 MB, free: 3.633 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/0.1456, allocations: 1.288 MB / 345.5 MB, free: 2.281 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1456, allocations: 0 / 345.5 MB, free: 2.281 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003103/0.1459, allocations: 67.84 kB / 345.6 MB, free: 2.215 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006154/0.1466, allocations: 240.7 kB / 345.8 MB, free: 1.977 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.324e-05/0.1466, allocations: 19.98 kB / 345.9 MB, free: 1.957 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003603/0.1502, allocations: 2.655 MB / 348.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.185e-06/0.1502, allocations: 0 / 348.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001754/0.152, allocations: 0.9862 MB / 349.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001827/0.1522, allocations: 152.7 kB / 349.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.079e-05/0.1523, allocations: 16.06 kB / 349.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003179/0.1526, allocations: 35.97 kB / 349.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.1528, allocations: 80.19 kB / 349.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.099e-05/0.1528, allocations: 16 kB / 349.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002205/0.153, allocations: 196.6 kB / 350 MB, free: 13.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.153, allocations: 0 / 350 MB, free: 13.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005948/0.1536, allocations: 160 kB / 350.1 MB, free: 13.49 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002239/0.1539, allocations: 135.1 kB / 350.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001341/0.1552, allocations: 0.7073 MB / 351 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.1552, allocations: 3.938 kB / 351 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008033/0.1561, allocations: 491.6 kB / 351.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.1564, allocations: 32.55 kB / 351.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.1579, allocations: 0.9451 MB / 352.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.1583, allocations: 0.8009 MB / 353.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000215/0.1586, allocations: 58.94 kB / 353.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.715e-05/0.1587, allocations: 35.42 kB / 353.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1587, allocations: 0 / 353.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of Templates: time 0.01259/0.1713, allocations: 6.923 MB / 360.3 MB, free: 3.285 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile Environment - environmentSimulation: (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 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches