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.001425/0.001425, allocations: 98.91 kB / 16.62 MB, free: 6.812 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.001603/0.001602, allocations: 193.9 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.62/1.62, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.001447/0.001447, allocations: 47.94 kB / 279.5 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1125, allocations: 46.62 MB / 326.1 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.006233/0.1188, allocations: 2.384 MB / 328.5 MB, free: 2.402 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002786/0.1216, allocations: 0.9608 MB / 329.5 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003576/0.122, allocations: 0 / 329.5 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003579/0.1224, allocations: 35.77 kB / 329.5 MB, free: 1.398 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008705/0.1233, allocations: 123.4 kB / 329.6 MB, free: 1.277 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005717/0.1239, allocations: 151.8 kB / 329.8 MB, free: 1.129 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008061/0.1247, allocations: 418.7 kB / 330.2 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002602/0.125, allocations: 72.64 kB / 330.3 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004298/0.1254, allocations: 187.4 kB / 330.4 MB, free: 476 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005855/0.126, allocations: 215.3 kB / 330.7 MB, free: 260 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.1262, allocations: 32 kB / 330.7 MB, free: 228 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003431/0.1265, allocations: 111.9 kB / 330.8 MB, free: 116 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002024/0.1267, allocations: 99.7 kB / 330.9 MB, free: 16 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003289/0.1271, allocations: 163.2 kB / 331 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007994/0.1279, allocations: 450.9 kB / 331.5 MB, free: 15.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.1279, allocations: 0 / 331.5 MB, free: 15.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.851e-06/0.1279, allocations: 4 kB / 331.5 MB, free: 15.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.582e-05/0.1279, allocations: 0 / 331.5 MB, free: 15.41 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.001861/0.1298, allocations: 0.6315 MB / 332.1 MB, free: 14.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.1299, allocations: 8.031 kB / 332.1 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004917/0.1304, allocations: 52.53 kB / 332.2 MB, free: 14.67 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006354/0.131, allocations: 303.7 kB / 332.5 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001635/0.1312, allocations: 88.52 kB / 332.6 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.964e-05/0.1313, allocations: 24.38 kB / 332.6 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.1324, allocations: 381.4 kB / 333 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.722e-05/0.1325, allocations: 4 kB / 333 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.587e-05/0.1325, allocations: 12 kB / 333 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.1325, allocations: 8 kB / 333 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.1338, allocations: 417.9 kB / 333.4 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002953/0.1367, allocations: 1.234 MB / 334.6 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009023/0.1377, allocations: 366.4 kB / 335 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004824/0.1382, allocations: 180.8 kB / 335.2 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.711e-05/0.1382, allocations: 8 kB / 335.2 MB, free: 11.53 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/0.1383, allocations: 35.28 kB / 335.2 MB, free: 11.48 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 4.438e-06/0.1383, allocations: 4 kB / 335.2 MB, free: 11.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.006579/0.1449, allocations: 1.929 MB / 337.1 MB, free: 9.438 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.497e-05/0.145, allocations: 92.8 kB / 337.2 MB, free: 9.328 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005161/0.1455, allocations: 238.2 kB / 337.5 MB, free: 9.082 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.987e-05/0.1456, allocations: 33.7 kB / 337.5 MB, free: 9.043 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.1457, allocations: 140.6 kB / 337.6 MB, free: 8.902 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.1459, allocations: 146.1 kB / 337.8 MB, free: 8.758 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.1461, allocations: 82.11 kB / 337.9 MB, free: 8.672 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.1463, allocations: 338.8 kB / 338.2 MB, free: 8.332 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004943/0.1468, allocations: 164.8 kB / 338.3 MB, free: 8.172 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005569/0.1473, allocations: 225.9 kB / 338.6 MB, free: 7.93 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009217/0.1483, allocations: 351.2 kB / 338.9 MB, free: 7.574 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1483, allocations: 0 / 338.9 MB, free: 7.574 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00155/0.1499, allocations: 0.559 MB / 339.5 MB, free: 7.008 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/0.1499, allocations: 4 kB / 339.5 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.1499, allocations: 3.938 kB / 339.5 MB, free: 7 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001177/0.1511, allocations: 248.7 kB / 339.7 MB, free: 6.754 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003066/0.1514, allocations: 55.91 kB / 339.8 MB, free: 6.699 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005629/0.1571, allocations: 2.901 MB / 342.7 MB, free: 3.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003511/0.1574, allocations: 24.02 kB / 342.7 MB, free: 3.637 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.782e-05/0.1575, allocations: 20.05 kB / 342.7 MB, free: 3.617 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.0003913/0.1579, allocations: 153.8 kB / 342.9 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.158, allocations: 27.62 kB / 342.9 MB, free: 3.43 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001164/0.1582, allocations: 42.98 kB / 342.9 MB, free: 3.387 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.1582, allocations: 7.938 kB / 342.9 MB, free: 3.379 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1582, allocations: 0 / 342.9 MB, free: 3.379 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.1582, allocations: 7.984 kB / 343 MB, free: 3.371 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002586/0.1608, allocations: 1.093 MB / 344 MB, free: 2.219 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-06/0.1608, allocations: 0 / 344 MB, free: 2.219 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002979/0.1611, allocations: 47.84 kB / 344.1 MB, free: 2.172 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001049/0.1622, allocations: 244.8 kB / 344.3 MB, free: 1.93 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.662e-05/0.1623, allocations: 11.98 kB / 344.3 MB, free: 1.918 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00556/0.1679, allocations: 2.835 MB / 347.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1679, allocations: 0 / 347.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00208/0.17, allocations: 0.8103 MB / 348 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002453/0.1702, allocations: 140.8 kB / 348.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.045e-05/0.1703, allocations: 11.94 kB / 348.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003456/0.1707, allocations: 23.97 kB / 348.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002284/0.1709, allocations: 63.97 kB / 348.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.183e-05/0.171, allocations: 11.98 kB / 348.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003084/0.1713, allocations: 184.3 kB / 348.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1713, allocations: 3.938 kB / 348.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000956/0.1723, allocations: 140 kB / 348.6 MB, free: 13.52 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.0003928/0.1727, allocations: 131.2 kB / 348.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001862/0.1746, allocations: 0.6524 MB / 349.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1746, allocations: 0 / 349.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009708/0.1756, allocations: 437.6 kB / 349.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006104/0.1762, allocations: 35.92 kB / 349.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.1779, allocations: 0.823 MB / 350.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004029/0.1783, allocations: 0.7878 MB / 351.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002113/0.1786, allocations: 50.95 kB / 351.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.347e-05/0.1787, allocations: 27.42 kB / 351.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1787, allocations: 0 / 351.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of Templates: time 0.01458/0.1933, allocations: 7.057 MB / 358.5 MB, free: 3.438 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)