Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001247/0.001247, allocations: 106.3 kB / 16.62 MB, free: 6.809 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.001264/0.001264, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.499/1.499, allocations: 205.1 MB / 223.4 MB, free: 12.38 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.001201/0.001201, allocations: 52.34 kB / 279.5 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.11, allocations: 46.63 MB / 326.1 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004729/0.1148, allocations: 2.465 MB / 328.6 MB, free: 2.312 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.1166, allocations: 1.004 MB / 329.6 MB, free: 1.301 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.1167, allocations: 7.938 kB / 329.6 MB, free: 1.293 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002747/0.117, allocations: 35.77 kB / 329.6 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004969/0.1175, allocations: 135.3 kB / 329.8 MB, free: 1.125 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003554/0.1179, allocations: 159.8 kB / 329.9 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000432/0.1183, allocations: 466.5 kB / 330.4 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002177/0.1186, allocations: 100.7 kB / 330.5 MB, free: 424 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003097/0.1189, allocations: 203.4 kB / 330.7 MB, free: 220 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003342/0.1192, allocations: 247.1 kB / 330.9 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.562e-05/0.1193, allocations: 36 kB / 331 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002389/0.1195, allocations: 123.9 kB / 331.1 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001968/0.1198, allocations: 115.6 kB / 331.2 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000209/0.12, allocations: 183.2 kB / 331.4 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006092/0.1206, allocations: 494.7 kB / 331.9 MB, free: 15.04 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1206, allocations: 3.938 kB / 331.9 MB, free: 15.04 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1206, allocations: 0 / 331.9 MB, free: 15.04 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.1206, allocations: 0 / 331.9 MB, free: 15.04 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.001374/0.122, allocations: 0.6782 MB / 332.5 MB, free: 14.31 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.421e-05/0.1221, allocations: 8.031 kB / 332.5 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003819/0.1225, allocations: 52.53 kB / 332.6 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005824/0.1231, allocations: 307.6 kB / 332.9 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001768/0.1233, allocations: 92.55 kB / 333 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.413e-05/0.1233, allocations: 36.28 kB / 333 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008154/0.1242, allocations: 417.1 kB / 333.4 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/0.1242, allocations: 3.938 kB / 333.4 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.683e-05/0.1242, allocations: 16 kB / 333.5 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.1243, allocations: 8 kB / 333.5 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.1254, allocations: 470.2 kB / 333.9 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.1272, allocations: 0.9774 MB / 334.9 MB, free: 11.83 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007918/0.128, allocations: 412.5 kB / 335.3 MB, free: 11.42 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004252/0.1284, allocations: 230.1 kB / 335.5 MB, free: 11.19 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.677e-05/0.1285, allocations: 12.44 kB / 335.5 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.1285, allocations: 35 kB / 335.6 MB, free: 11.14 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 1.733e-06/0.1285, allocations: 0 / 335.6 MB, free: 11.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.005277/0.1338, allocations: 2.164 MB / 337.7 MB, free: 8.859 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/0.1339, allocations: 89.67 kB / 337.8 MB, free: 8.754 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003166/0.1343, allocations: 263.1 kB / 338.1 MB, free: 8.488 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.588e-05/0.1343, allocations: 37.69 kB / 338.1 MB, free: 8.445 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.1344, allocations: 137 kB / 338.2 MB, free: 8.305 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001488/0.1346, allocations: 185.4 kB / 338.4 MB, free: 8.121 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.1348, allocations: 90.16 kB / 338.5 MB, free: 8.027 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1349, allocations: 342.8 kB / 338.9 MB, free: 7.684 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003994/0.1353, allocations: 189 kB / 339 MB, free: 7.496 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004626/0.1358, allocations: 248.6 kB / 339.3 MB, free: 7.246 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007522/0.1366, allocations: 388.4 kB / 339.7 MB, free: 6.863 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1366, allocations: 7.938 kB / 339.7 MB, free: 6.855 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001284/0.1379, allocations: 0.6096 MB / 340.3 MB, free: 6.234 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.955e-05/0.1379, allocations: 7.938 kB / 340.3 MB, free: 6.227 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.1379, allocations: 8 kB / 340.3 MB, free: 6.219 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007893/0.1387, allocations: 249.9 kB / 340.5 MB, free: 5.973 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003279/0.1391, allocations: 71.88 kB / 340.6 MB, free: 5.902 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004083/0.1432, allocations: 2.944 MB / 343.6 MB, free: 2.824 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003467/0.1435, allocations: 27.97 kB / 343.6 MB, free: 2.797 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.057e-05/0.1436, allocations: 16 kB / 343.6 MB, free: 2.781 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.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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002599/0.1439, allocations: 161.8 kB / 343.8 MB, free: 2.613 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.965e-05/0.144, allocations: 39.5 kB / 343.8 MB, free: 2.574 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001169/0.1441, allocations: 47.3 kB / 343.8 MB, free: 2.527 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.1441, allocations: 8 kB / 343.8 MB, free: 2.52 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1441, allocations: 0 / 343.8 MB, free: 2.52 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.1441, allocations: 0 / 343.8 MB, free: 2.52 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/0.1463, allocations: 1.26 MB / 345.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1463, allocations: 0 / 345.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003181/0.1466, allocations: 71.88 kB / 345.2 MB, free: 1.125 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006674/0.1473, allocations: 248.7 kB / 345.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.766e-05/0.1474, allocations: 12 kB / 345.4 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00353/0.1509, allocations: 2.85 MB / 348.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1509, allocations: 0 / 348.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001743/0.1527, allocations: 0.9572 MB / 349.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001873/0.1529, allocations: 152.7 kB / 349.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.438e-05/0.1529, allocations: 15.94 kB / 349.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002913/0.1532, allocations: 27.97 kB / 349.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001835/0.1534, allocations: 64.34 kB / 349.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.514e-05/0.1535, allocations: 15.98 kB / 349.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002487/0.1537, allocations: 196.6 kB / 349.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1537, allocations: 0 / 349.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006544/0.1544, allocations: 156.1 kB / 349.9 MB, free: 12.26 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 (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.0002837/0.1547, allocations: 151.1 kB / 350 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001579/0.1563, allocations: 0.7267 MB / 350.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.1563, allocations: 0 / 350.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000824/0.1571, allocations: 479.6 kB / 351.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005091/0.1576, allocations: 40.42 kB / 351.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.1593, allocations: 0.9336 MB / 352.2 MB, free: 9.891 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004005/0.1597, allocations: 0.7968 MB / 353 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002187/0.1599, allocations: 62.94 kB / 353 MB, free: 8.996 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.16, allocations: 35.42 kB / 353.1 MB, free: 8.961 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.16, allocations: 0 / 353.1 MB, free: 8.961 MB / 302.1 MB Notification: Performance of Templates: time 0.01287/0.1729, allocations: 7.689 MB / 360.7 MB, free: 1.27 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)