Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.005334/0.005334, allocations: 101.2 kB / 15.73 MB, free: 6.039 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.001326/0.001326, allocations: 198.5 kB / 16.68 MB, free: 5.973 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.502/1.502, allocations: 205.1 MB / 222.6 MB, free: 4.336 MB / 174.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.001194/0.001194, allocations: 46.69 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1138, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004521/0.1183, allocations: 2.331 MB / 375.5 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002269/0.1206, allocations: 0.9566 MB / 376.5 MB, free: 14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.1208, allocations: 7.938 kB / 376.5 MB, free: 14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002322/0.121, allocations: 47.58 kB / 376.5 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004869/0.1215, allocations: 135.3 kB / 376.6 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003322/0.1219, allocations: 175.6 kB / 376.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004696/0.1223, allocations: 422.8 kB / 377.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/0.1226, allocations: 76.61 kB / 377.3 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.1228, allocations: 187.4 kB / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002782/0.1231, allocations: 211.3 kB / 377.7 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.222e-05/0.1231, allocations: 32 kB / 377.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.1233, allocations: 127.8 kB / 377.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.1235, allocations: 103.7 kB / 377.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.1237, allocations: 159.2 kB / 378.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000509/0.1242, allocations: 446.6 kB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1242, allocations: 0 / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1242, allocations: 0 / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.1242, allocations: 0 / 378.5 MB, free: 11.91 MB / 318.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.001168/0.1254, allocations: 0.6316 MB / 379.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.1254, allocations: 11.97 kB / 379.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003072/0.1258, allocations: 52.53 kB / 379.2 MB, free: 11.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000576/0.1263, allocations: 303.8 kB / 379.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001278/0.1265, allocations: 84.52 kB / 379.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.786e-05/0.1265, allocations: 32.38 kB / 379.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006706/0.1272, allocations: 381.3 kB / 380 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.1273, allocations: 7.906 kB / 380 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.575e-05/0.1273, allocations: 8 kB / 380 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.1273, allocations: 8 kB / 380 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007947/0.1281, allocations: 417.9 kB / 380.4 MB, free: 9.883 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001979/0.1301, allocations: 1.237 MB / 381.7 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006542/0.1308, allocations: 354.5 kB / 382 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003687/0.1312, allocations: 188.8 kB / 382.2 MB, free: 8.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.1312, allocations: 8.719 kB / 382.2 MB, free: 8.027 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.1312, allocations: 38.55 kB / 382.3 MB, free: 7.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 2.074e-06/0.1312, allocations: 4 kB / 382.3 MB, free: 7.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004702/0.136, allocations: 1.917 MB / 384.2 MB, free: 5.945 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.149e-05/0.136, allocations: 88.8 kB / 384.3 MB, free: 5.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002919/0.1363, allocations: 238.1 kB / 384.5 MB, free: 5.598 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.355e-05/0.1364, allocations: 37.7 kB / 384.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.1365, allocations: 136.6 kB / 384.7 MB, free: 5.414 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.1366, allocations: 150 kB / 384.8 MB, free: 5.266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.1368, allocations: 86.03 kB / 384.9 MB, free: 5.176 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1369, allocations: 330.8 kB / 385.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003813/0.1373, allocations: 176.8 kB / 385.4 MB, free: 4.668 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004338/0.1378, allocations: 225.9 kB / 385.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007031/0.1385, allocations: 347.2 kB / 386 MB, free: 4.074 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.1385, allocations: 0 / 386 MB, free: 4.074 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00111/0.1396, allocations: 0.559 MB / 386.5 MB, free: 3.508 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.1396, allocations: 8 kB / 386.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1397, allocations: 3.984 kB / 386.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007434/0.1404, allocations: 252.6 kB / 386.8 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002405/0.1407, allocations: 51.91 kB / 386.8 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0042/0.1449, allocations: 2.882 MB / 389.7 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002722/0.1452, allocations: 23.97 kB / 389.7 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.365e-05/0.1452, allocations: 20.06 kB / 389.7 MB, free: 136 kB / 318.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.0002416/0.1455, allocations: 165.6 kB / 389.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.685e-05/0.1456, allocations: 23.72 kB / 389.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.1457, allocations: 42.98 kB / 390 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.1457, allocations: 4 kB / 390 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1457, allocations: 0 / 390 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1457, allocations: 0 / 390 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00191/0.1476, allocations: 1.094 MB / 391.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.1476, allocations: 0 / 391.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/0.1479, allocations: 47.91 kB / 391.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006626/0.1485, allocations: 240.8 kB / 391.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.963e-05/0.1486, allocations: 15.98 kB / 391.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003921/0.1525, allocations: 2.835 MB / 394.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1525, allocations: 4.062 kB / 394.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/0.1541, allocations: 0.8233 MB / 395 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.1542, allocations: 136.8 kB / 395.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.168e-05/0.1543, allocations: 15.94 kB / 395.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00025/0.1546, allocations: 24.05 kB / 395.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/0.1548, allocations: 63.89 kB / 395.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.941e-05/0.1548, allocations: 15.94 kB / 395.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002257/0.155, allocations: 180.3 kB / 395.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.155, allocations: 0 / 395.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006706/0.1557, allocations: 144 kB / 395.6 MB, free: 10.02 MB / 334.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.0002935/0.156, allocations: 131.2 kB / 395.7 MB, free: 9.887 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001489/0.1575, allocations: 0.6291 MB / 396.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1575, allocations: 4 kB / 396.4 MB, free: 9.242 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008335/0.1584, allocations: 433.6 kB / 396.8 MB, free: 8.809 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004666/0.1588, allocations: 40.03 kB / 396.8 MB, free: 8.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/0.1603, allocations: 0.6983 MB / 397.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004588/0.1608, allocations: 0.78 MB / 398.3 MB, free: 7.238 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001929/0.161, allocations: 62.94 kB / 398.4 MB, free: 7.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.765e-05/0.1611, allocations: 27.42 kB / 398.4 MB, free: 7.152 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1611, allocations: 0 / 398.4 MB, free: 7.152 MB / 334.1 MB Notification: Performance of Templates: time 0.01497/0.1761, allocations: 7.187 MB / 405.6 MB, free: 15.95 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)