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.00114/0.00114, allocations: 89.3 kB / 16.65 MB, free: 6.535 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.001396/0.001396, allocations: 172.6 kB / 17.56 MB, free: 6.184 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.459/1.459, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004474/0.0004476, allocations: 12 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1016, allocations: 47.59 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002768/0.1044, allocations: 2.103 MB / 330.4 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001984/0.1064, allocations: 0.9998 MB / 331.4 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002679/0.1067, allocations: 4 kB / 331.4 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000259/0.107, allocations: 43.7 kB / 331.5 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006112/0.1076, allocations: 123.3 kB / 331.6 MB, free: 472 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004134/0.108, allocations: 163.8 kB / 331.7 MB, free: 308 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005926/0.1087, allocations: 442.6 kB / 332.2 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002154/0.1089, allocations: 81.12 kB / 332.3 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003655/0.1093, allocations: 191.2 kB / 332.4 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003871/0.1097, allocations: 223.2 kB / 332.7 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.205e-05/0.1097, allocations: 20 kB / 332.7 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002161/0.1099, allocations: 95.88 kB / 332.8 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001725/0.1101, allocations: 87.7 kB / 332.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001923/0.1103, allocations: 200.8 kB / 333.1 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004899/0.1108, allocations: 462.7 kB / 333.5 MB, free: 14.52 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1108, allocations: 0 / 333.5 MB, free: 14.52 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1108, allocations: 0 / 333.5 MB, free: 14.52 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.1109, allocations: 4 kB / 333.5 MB, free: 14.52 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.001195/0.1121, allocations: 0.616 MB / 334.1 MB, free: 13.86 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.1121, allocations: 8.031 kB / 334.1 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003128/0.1124, allocations: 60.45 kB / 334.2 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004225/0.1129, allocations: 311.5 kB / 334.5 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001399/0.113, allocations: 88.61 kB / 334.6 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.681e-05/0.1131, allocations: 36.31 kB / 334.6 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008557/0.114, allocations: 429 kB / 335 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.114, allocations: 3.906 kB / 335 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.266e-05/0.114, allocations: 12 kB / 335.1 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1141, allocations: 8 kB / 335.1 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.1151, allocations: 486.3 kB / 335.5 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001766/0.1169, allocations: 0.993 MB / 336.5 MB, free: 11.33 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008411/0.1177, allocations: 416.5 kB / 336.9 MB, free: 10.92 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004823/0.1182, allocations: 242.1 kB / 337.2 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.1183, allocations: 4.438 kB / 337.2 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.89e-05/0.1183, allocations: 43 kB / 337.2 MB, free: 10.62 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 1.893e-06/0.1183, allocations: 0 / 337.2 MB, free: 10.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.00538/0.1237, allocations: 2.23 MB / 339.5 MB, free: 8.281 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.986e-05/0.1238, allocations: 81.67 kB / 339.5 MB, free: 8.184 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003287/0.1241, allocations: 267.1 kB / 339.8 MB, free: 7.914 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.533e-05/0.1242, allocations: 37.7 kB / 339.8 MB, free: 7.871 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.1243, allocations: 137.1 kB / 340 MB, free: 7.73 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/0.1245, allocations: 181.4 kB / 340.1 MB, free: 7.551 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.959e-05/0.1246, allocations: 41.7 kB / 340.2 MB, free: 7.504 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002023/0.1248, allocations: 342.8 kB / 340.5 MB, free: 7.16 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005261/0.1253, allocations: 213 kB / 340.7 MB, free: 6.953 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000499/0.1258, allocations: 248.6 kB / 341 MB, free: 6.699 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008402/0.1267, allocations: 412.4 kB / 341.4 MB, free: 6.293 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1267, allocations: 0 / 341.4 MB, free: 6.293 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001308/0.128, allocations: 0.6251 MB / 342 MB, free: 5.656 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.128, allocations: 11.94 kB / 342 MB, free: 5.645 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.128, allocations: 0 / 342 MB, free: 5.645 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008031/0.1288, allocations: 261.9 kB / 342.3 MB, free: 5.387 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00032/0.1292, allocations: 67.89 kB / 342.3 MB, free: 5.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003891/0.1331, allocations: 2.702 MB / 345 MB, free: 2.488 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003657/0.1335, allocations: 35.97 kB / 345.1 MB, free: 2.453 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.73e-05/0.1335, allocations: 23.98 kB / 345.1 MB, free: 2.43 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.0002669/0.1338, allocations: 153.8 kB / 345.2 MB, free: 2.27 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.653e-05/0.1339, allocations: 31.62 kB / 345.3 MB, free: 2.238 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001198/0.134, allocations: 51.3 kB / 345.3 MB, free: 2.188 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.134, allocations: 7.938 kB / 345.3 MB, free: 2.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.134, allocations: 4 kB / 345.3 MB, free: 2.176 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.1341, allocations: 3.984 kB / 345.3 MB, free: 2.172 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002324/0.1364, allocations: 1.288 MB / 346.6 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.1364, allocations: 4 kB / 346.6 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003226/0.1367, allocations: 67.89 kB / 346.7 MB, free: 0.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006777/0.1374, allocations: 240.6 kB / 346.9 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.371e-05/0.1375, allocations: 19.98 kB / 346.9 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003548/0.141, allocations: 2.608 MB / 349.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1411, allocations: 4 kB / 349.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001907/0.143, allocations: 0.969 MB / 350.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001737/0.1432, allocations: 156.6 kB / 350.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.603e-05/0.1432, allocations: 12 kB / 350.7 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002994/0.1435, allocations: 43.97 kB / 350.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/0.1437, allocations: 72.27 kB / 350.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.305e-05/0.1438, allocations: 19.98 kB / 350.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002271/0.144, allocations: 192.6 kB / 351 MB, free: 12.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.144, allocations: 0 / 351 MB, free: 12.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006022/0.1446, allocations: 152 kB / 351.2 MB, free: 12.09 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.0002351/0.1448, allocations: 147.1 kB / 351.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.1463, allocations: 0.7112 MB / 352 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1463, allocations: 0 / 352 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008298/0.1472, allocations: 491.7 kB / 352.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004534/0.1476, allocations: 40.53 kB / 352.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.1493, allocations: 0.9762 MB / 353.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004412/0.1497, allocations: 0.797 MB / 354.3 MB, free: 8.863 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002195/0.1499, allocations: 62.94 kB / 354.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.858e-05/0.1501, allocations: 31.42 kB / 354.4 MB, free: 8.766 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1501, allocations: 0 / 354.4 MB, free: 8.766 MB / 302.1 MB Notification: Performance of Templates: time 0.01289/0.163, allocations: 7.157 MB / 361.6 MB, free: 1.609 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)