Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00129/0.00129, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001281/0.001281, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.506/1.506, allocations: 205.1 MB / 223.3 MB, free: 12.41 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.00117/0.00117, allocations: 51.92 kB / 279.3 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1198, allocations: 46.64 MB / 326 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.005051/0.1249, allocations: 2.38 MB / 328.3 MB, free: 2.477 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002531/0.1275, allocations: 0.9687 MB / 329.3 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003122/0.1278, allocations: 4 kB / 329.3 MB, free: 1.496 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003096/0.1282, allocations: 31.72 kB / 329.3 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006461/0.1288, allocations: 115.5 kB / 329.5 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004643/0.1293, allocations: 147.8 kB / 329.6 MB, free: 1.207 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005714/0.1299, allocations: 394.8 kB / 330 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.1301, allocations: 56.72 kB / 330 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003533/0.1305, allocations: 175.4 kB / 330.2 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003765/0.1308, allocations: 199.3 kB / 330.4 MB, free: 408 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.131, allocations: 20 kB / 330.4 MB, free: 388 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000276/0.1312, allocations: 103.9 kB / 330.5 MB, free: 284 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.1314, allocations: 87.72 kB / 330.6 MB, free: 196 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001865/0.1316, allocations: 147.2 kB / 330.8 MB, free: 48 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005205/0.1321, allocations: 434.9 kB / 331.2 MB, free: 15.62 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.1321, allocations: 0 / 331.2 MB, free: 15.62 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1321, allocations: 0 / 331.2 MB, free: 15.62 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.1322, allocations: 4 kB / 331.2 MB, free: 15.62 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.001268/0.1334, allocations: 0.6278 MB / 331.8 MB, free: 14.94 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1335, allocations: 8.031 kB / 331.8 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003181/0.1338, allocations: 48.55 kB / 331.9 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005089/0.1343, allocations: 311.6 kB / 332.2 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001403/0.1345, allocations: 84.52 kB / 332.3 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.1345, allocations: 28.38 kB / 332.3 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007232/0.1353, allocations: 377.4 kB / 332.7 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.1353, allocations: 3.984 kB / 332.7 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.818e-05/0.1354, allocations: 19.88 kB / 332.7 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.1354, allocations: 12 kB / 332.7 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009235/0.1363, allocations: 413.9 kB / 333.1 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002061/0.1384, allocations: 1.237 MB / 334.3 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006874/0.1391, allocations: 354.5 kB / 334.7 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003758/0.1395, allocations: 188.8 kB / 334.9 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.352e-05/0.1395, allocations: 8 kB / 334.9 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.1395, allocations: 34.56 kB / 334.9 MB, free: 11.69 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.693e-06/0.1395, allocations: 0 / 334.9 MB, free: 11.69 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004666/0.1442, allocations: 1.93 MB / 336.8 MB, free: 9.645 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.1443, allocations: 88.86 kB / 336.9 MB, free: 9.539 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000311/0.1446, allocations: 234.2 kB / 337.1 MB, free: 9.297 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.778e-05/0.1447, allocations: 37.7 kB / 337.2 MB, free: 9.254 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.054e-05/0.1448, allocations: 140.5 kB / 337.3 MB, free: 9.113 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.1449, allocations: 154 kB / 337.5 MB, free: 8.961 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001388/0.145, allocations: 82.12 kB / 337.6 MB, free: 8.875 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.1452, allocations: 330.8 kB / 337.9 MB, free: 8.543 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003599/0.1455, allocations: 172.8 kB / 338 MB, free: 8.375 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000395/0.1459, allocations: 221.9 kB / 338.3 MB, free: 8.137 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006572/0.1466, allocations: 351.1 kB / 338.6 MB, free: 7.781 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1466, allocations: 0 / 338.6 MB, free: 7.781 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001086/0.1477, allocations: 0.5552 MB / 339.2 MB, free: 7.219 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.1477, allocations: 11.94 kB / 339.2 MB, free: 7.207 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.1478, allocations: 0 / 339.2 MB, free: 7.207 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007587/0.1485, allocations: 248.7 kB / 339.4 MB, free: 6.961 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002367/0.1488, allocations: 55.95 kB / 339.5 MB, free: 6.906 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00367/0.1524, allocations: 2.647 MB / 342.1 MB, free: 4.125 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000271/0.1527, allocations: 28.06 kB / 342.1 MB, free: 4.098 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.024e-05/0.1528, allocations: 20 kB / 342.2 MB, free: 4.078 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.0001948/0.153, allocations: 149.8 kB / 342.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.656e-05/0.1531, allocations: 31.64 kB / 342.3 MB, free: 3.891 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.086e-05/0.1532, allocations: 39 kB / 342.4 MB, free: 3.852 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.1532, allocations: 8 kB / 342.4 MB, free: 3.844 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1532, allocations: 0 / 342.4 MB, free: 3.844 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.1532, allocations: 3.984 kB / 342.4 MB, free: 3.84 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.155, allocations: 1.104 MB / 343.5 MB, free: 2.676 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.1551, allocations: 4 kB / 343.5 MB, free: 2.672 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002178/0.1553, allocations: 39.97 kB / 343.5 MB, free: 2.633 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006855/0.156, allocations: 248.8 kB / 343.8 MB, free: 2.387 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.823e-05/0.156, allocations: 15.98 kB / 343.8 MB, free: 2.371 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003699/0.1597, allocations: 2.582 MB / 346.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.1598, allocations: 0 / 346.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.1613, allocations: 0.8255 MB / 347.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001729/0.1615, allocations: 140.8 kB / 347.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.932e-05/0.1616, allocations: 12 kB / 347.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002608/0.1619, allocations: 24.09 kB / 347.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.162, allocations: 55.91 kB / 347.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.248e-05/0.1621, allocations: 15.98 kB / 347.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000211/0.1623, allocations: 180.3 kB / 347.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1623, allocations: 0 / 347.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006581/0.163, allocations: 140 kB / 347.8 MB, free: 14.23 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.0002895/0.1633, allocations: 135.1 kB / 347.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.1647, allocations: 0.629 MB / 348.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1647, allocations: 0 / 348.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007241/0.1654, allocations: 433.6 kB / 348.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004276/0.1658, allocations: 35.92 kB / 349 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.1674, allocations: 0.8181 MB / 349.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004191/0.1678, allocations: 0.7803 MB / 350.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002097/0.168, allocations: 58.95 kB / 350.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.339e-05/0.1681, allocations: 23.42 kB / 350.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1681, allocations: 0 / 350.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of Templates: time 0.01184/0.18, allocations: 6.659 MB / 357.3 MB, free: 4.578 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)