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.001107/0.001106, allocations: 98.84 kB / 16.5 MB, free: 6.641 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.00124/0.00124, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.395/1.395, allocations: 205.1 MB / 223.3 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.001136/0.001136, allocations: 47.94 kB / 279.3 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08727/0.08842, allocations: 46.63 MB / 326 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003575/0.09203, allocations: 2.465 MB / 328.4 MB, free: 2.395 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001607/0.09366, allocations: 1.011 MB / 329.4 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.09379, allocations: 4 kB / 329.4 MB, free: 1.371 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001853/0.094, allocations: 39.7 kB / 329.5 MB, free: 1.332 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003805/0.09439, allocations: 127.3 kB / 329.6 MB, free: 1.207 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002819/0.09468, allocations: 159.8 kB / 329.8 MB, free: 1.051 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003709/0.09506, allocations: 446.5 kB / 330.2 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.09524, allocations: 85.12 kB / 330.3 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002411/0.09549, allocations: 195.3 kB / 330.5 MB, free: 344 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002477/0.09574, allocations: 231.2 kB / 330.7 MB, free: 112 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.633e-05/0.09581, allocations: 27.94 kB / 330.7 MB, free: 84 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002132/0.09603, allocations: 99.92 kB / 330.8 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.09617, allocations: 91.66 kB / 330.9 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.09634, allocations: 175.1 kB / 331.1 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004306/0.09677, allocations: 478.7 kB / 331.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.09679, allocations: 0 / 331.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.09679, allocations: 0 / 331.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.565e-06/0.09681, allocations: 0 / 331.5 MB, free: 15.25 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.001189/0.098, allocations: 0.6705 MB / 332.2 MB, free: 14.54 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.09804, allocations: 16.02 kB / 332.2 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002911/0.09834, allocations: 52.55 kB / 332.3 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003968/0.09874, allocations: 319.5 kB / 332.6 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.09887, allocations: 84.62 kB / 332.7 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.084e-05/0.09895, allocations: 36.27 kB / 332.7 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007507/0.09971, allocations: 421 kB / 333.1 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.09973, allocations: 0 / 333.1 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.031e-05/0.09978, allocations: 16 kB / 333.1 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.0998, allocations: 8 kB / 333.1 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009802/0.1008, allocations: 466.3 kB / 333.6 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/0.1024, allocations: 0.9812 MB / 334.6 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007768/0.1032, allocations: 404.6 kB / 335 MB, free: 11.64 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004431/0.1037, allocations: 234.1 kB / 335.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.99e-05/0.1037, allocations: 12.42 kB / 335.2 MB, free: 11.4 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.1037, allocations: 39 kB / 335.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 1.543e-06/0.1038, allocations: 0 / 335.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.004905/0.1087, allocations: 2.164 MB / 337.4 MB, free: 9.078 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.1087, allocations: 85.67 kB / 337.5 MB, free: 8.977 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002859/0.109, allocations: 255.1 kB / 337.8 MB, free: 8.719 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.191e-05/0.1091, allocations: 37.7 kB / 337.8 MB, free: 8.676 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.79e-05/0.1092, allocations: 145 kB / 337.9 MB, free: 8.527 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.1093, allocations: 173.5 kB / 338.1 MB, free: 8.355 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.1095, allocations: 98.14 kB / 338.2 MB, free: 8.254 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.1096, allocations: 338.8 kB / 338.5 MB, free: 7.914 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004242/0.11, allocations: 201 kB / 338.7 MB, free: 7.715 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004541/0.1105, allocations: 240.6 kB / 339 MB, free: 7.473 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007794/0.1113, allocations: 392.4 kB / 339.3 MB, free: 7.086 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1113, allocations: 0 / 339.3 MB, free: 7.086 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001183/0.1125, allocations: 0.6096 MB / 340 MB, free: 6.465 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.1125, allocations: 7.938 kB / 340 MB, free: 6.457 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.1125, allocations: 0 / 340 MB, free: 6.457 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007303/0.1133, allocations: 265.9 kB / 340.2 MB, free: 6.195 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003101/0.1136, allocations: 75.77 kB / 340.3 MB, free: 6.121 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003566/0.1172, allocations: 2.698 MB / 343 MB, free: 3.293 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003095/0.1175, allocations: 31.91 kB / 343 MB, free: 3.262 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.164e-05/0.1175, allocations: 15.98 kB / 343 MB, free: 3.246 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.0001915/0.1177, allocations: 153.8 kB / 343.2 MB, free: 3.086 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.768e-05/0.1178, allocations: 31.62 kB / 343.2 MB, free: 3.055 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.922e-05/0.1179, allocations: 51.36 kB / 343.3 MB, free: 3.004 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.1179, allocations: 11.94 kB / 343.3 MB, free: 2.992 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1179, allocations: 4 kB / 343.3 MB, free: 2.988 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.118, allocations: 7.922 kB / 343.3 MB, free: 2.98 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002029/0.12, allocations: 1.264 MB / 344.6 MB, free: 1.652 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.12, allocations: 0 / 344.6 MB, free: 1.652 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.1203, allocations: 67.89 kB / 344.6 MB, free: 1.586 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000659/0.121, allocations: 240.7 kB / 344.9 MB, free: 1.348 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.684e-05/0.121, allocations: 19.98 kB / 344.9 MB, free: 1.328 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003262/0.1243, allocations: 2.592 MB / 347.5 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1243, allocations: 4.062 kB / 347.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.1262, allocations: 0.9493 MB / 348.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001919/0.1264, allocations: 148.7 kB / 348.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.376e-05/0.1265, allocations: 20 kB / 348.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002953/0.1268, allocations: 27.97 kB / 348.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001938/0.127, allocations: 72.27 kB / 348.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.763e-05/0.127, allocations: 19.98 kB / 348.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002546/0.1273, allocations: 192.6 kB / 348.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1273, allocations: 0 / 348.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000669/0.128, allocations: 152 kB / 349 MB, free: 12.98 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.000256/0.1282, allocations: 147.1 kB / 349.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001378/0.1296, allocations: 0.6955 MB / 349.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1296, allocations: 0 / 349.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007685/0.1304, allocations: 475.7 kB / 350.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.1309, allocations: 44.36 kB / 350.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.1323, allocations: 0.9325 MB / 351.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.1326, allocations: 0.797 MB / 352.1 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002177/0.1329, allocations: 62.94 kB / 352.2 MB, free: 9.758 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.836e-05/0.133, allocations: 31.41 kB / 352.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.133, allocations: 0 / 352.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of Templates: time 0.01352/0.1465, allocations: 7.261 MB / 359.5 MB, free: 2.465 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)