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.0009885/0.0009885, allocations: 97.31 kB / 16.95 MB, free: 6.891 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.001201/0.001201, allocations: 184.9 kB / 17.84 MB, free: 6.137 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.585/1.585, 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.0005182/0.0005182, allocations: 12 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1206, allocations: 47.58 MB / 328.4 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002948/0.1236, allocations: 1.96 MB / 330.3 MB, free: 2.109 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.1255, allocations: 0.9107 MB / 331.2 MB, free: 1.191 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.1256, allocations: 3.938 kB / 331.2 MB, free: 1.188 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002161/0.1259, allocations: 35.77 kB / 331.3 MB, free: 1.152 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004386/0.1263, allocations: 103.5 kB / 331.4 MB, free: 1.051 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003223/0.1266, allocations: 139.8 kB / 331.5 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004146/0.1271, allocations: 370.7 kB / 331.9 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.1272, allocations: 56.7 kB / 331.9 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001985/0.1274, allocations: 155.5 kB / 332.1 MB, free: 352 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002677/0.1277, allocations: 199.3 kB / 332.3 MB, free: 152 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.416e-05/0.1278, allocations: 16 kB / 332.3 MB, free: 136 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001947/0.128, allocations: 83.94 kB / 332.4 MB, free: 52 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.1281, allocations: 83.78 kB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.301e-05/0.1282, allocations: 73.58 kB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003999/0.1286, allocations: 319.4 kB / 332.8 MB, free: 15.58 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1286, allocations: 0 / 332.8 MB, free: 15.58 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1286, allocations: 4 kB / 332.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.1286, allocations: 0 / 332.8 MB, free: 15.57 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.001072/0.1297, allocations: 0.5847 MB / 333.4 MB, free: 14.94 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.1298, allocations: 8.031 kB / 333.4 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003005/0.1301, allocations: 47.61 kB / 333.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004097/0.1305, allocations: 294.6 kB / 333.8 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.1306, allocations: 83.95 kB / 333.8 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.59e-05/0.1307, allocations: 31.94 kB / 333.9 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000694/0.1314, allocations: 377.3 kB / 334.2 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.1314, allocations: 3.906 kB / 334.2 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.647e-05/0.1315, allocations: 16 kB / 334.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.1315, allocations: 8 kB / 334.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008753/0.1324, allocations: 421.9 kB / 334.7 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002083/0.1345, allocations: 1.261 MB / 335.9 MB, free: 12.27 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006539/0.1351, allocations: 351.1 kB / 336.3 MB, free: 11.92 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003627/0.1355, allocations: 188.8 kB / 336.5 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-05/0.1356, allocations: 8 kB / 336.5 MB, free: 11.72 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.615e-05/0.1356, allocations: 46.48 kB / 336.5 MB, free: 11.67 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 2.134e-06/0.1356, allocations: 3.938 kB / 336.5 MB, free: 11.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004556/0.1402, allocations: 1.953 MB / 338.5 MB, free: 9.598 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.702e-05/0.1402, allocations: 84.86 kB / 338.6 MB, free: 9.496 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003013/0.1406, allocations: 234.3 kB / 338.8 MB, free: 9.254 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.803e-05/0.1406, allocations: 37.69 kB / 338.8 MB, free: 9.211 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.779e-05/0.1407, allocations: 132.6 kB / 339 MB, free: 9.078 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.1408, allocations: 153.9 kB / 339.1 MB, free: 8.926 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.393e-05/0.1409, allocations: 8 kB / 339.1 MB, free: 8.918 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.141, allocations: 338.8 kB / 339.4 MB, free: 8.578 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003426/0.1414, allocations: 164.8 kB / 339.6 MB, free: 8.418 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003973/0.1418, allocations: 237.9 kB / 339.8 MB, free: 8.164 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003293/0.1421, allocations: 164.8 kB / 340 MB, free: 8.008 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.1421, allocations: 4 kB / 340 MB, free: 8.004 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001043/0.1432, allocations: 0.559 MB / 340.6 MB, free: 7.434 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1432, allocations: 7.938 kB / 340.6 MB, free: 7.426 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.1432, allocations: 0 / 340.6 MB, free: 7.426 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007201/0.1439, allocations: 252.7 kB / 340.8 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.1442, allocations: 51.97 kB / 340.9 MB, free: 7.125 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003671/0.1479, allocations: 2.663 MB / 343.5 MB, free: 4.328 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002472/0.1481, allocations: 27.98 kB / 343.6 MB, free: 4.301 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.948e-05/0.1482, allocations: 24.05 kB / 343.6 MB, free: 4.277 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.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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002064/0.1484, allocations: 149.8 kB / 343.7 MB, free: 4.121 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.438e-05/0.1485, allocations: 27.62 kB / 343.8 MB, free: 4.094 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.807e-05/0.1486, allocations: 46.98 kB / 343.8 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1486, allocations: 4 kB / 343.8 MB, free: 4.043 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1486, allocations: 0 / 343.8 MB, free: 4.043 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.1486, allocations: 7.938 kB / 343.8 MB, free: 4.035 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001726/0.1504, allocations: 1.1 MB / 344.9 MB, free: 2.875 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1504, allocations: 0 / 344.9 MB, free: 2.875 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.1506, allocations: 39.97 kB / 344.9 MB, free: 2.836 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006012/0.1512, allocations: 240.9 kB / 345.2 MB, free: 2.598 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.225e-05/0.1512, allocations: 11.94 kB / 345.2 MB, free: 2.586 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003241/0.1545, allocations: 2.604 MB / 347.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.1545, allocations: 4.031 kB / 347.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001424/0.1559, allocations: 0.8294 MB / 348.6 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001824/0.1561, allocations: 140.8 kB / 348.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.478e-05/0.1562, allocations: 19.98 kB / 348.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002572/0.1565, allocations: 28.05 kB / 348.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.1566, allocations: 71.86 kB / 348.9 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-05/0.1567, allocations: 12 kB / 348.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002141/0.1569, allocations: 184.2 kB / 349.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1569, allocations: 0 / 349.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006374/0.1575, allocations: 139.9 kB / 349.2 MB, free: 14.39 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 (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.0002305/0.1578, allocations: 131.2 kB / 349.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.159, allocations: 0.6211 MB / 350 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.159, allocations: 4.25 kB / 350 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006848/0.1597, allocations: 437.3 kB / 350.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003795/0.1601, allocations: 27.95 kB / 350.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.1616, allocations: 0.8347 MB / 351.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.162, allocations: 0.7764 MB / 352 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001965/0.1622, allocations: 62.94 kB / 352.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.337e-05/0.1623, allocations: 31.41 kB / 352.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1623, allocations: 0 / 352.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of Templates: time 0.0116/0.1739, allocations: 6.366 MB / 358.5 MB, free: 5.023 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches