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.009718/0.009718, allocations: 108.9 kB / 15.74 MB, free: 6.449 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.001943/0.001943, allocations: 197 kB / 16.67 MB, free: 6.355 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.582/1.582, allocations: 205.1 MB / 222.5 MB, free: 4.48 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.001313/0.001313, allocations: 53.81 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.112, allocations: 46.62 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.0051/0.1172, allocations: 2.346 MB / 375.5 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00217/0.1194, allocations: 0.9566 MB / 376.5 MB, free: 14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002527/0.1197, allocations: 4 kB / 376.5 MB, free: 14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002388/0.12, allocations: 43.58 kB / 376.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005442/0.1206, allocations: 131.3 kB / 376.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004261/0.121, allocations: 183.6 kB / 376.8 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004593/0.1215, allocations: 418.8 kB / 377.2 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.1217, allocations: 72.62 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/0.1219, allocations: 191.4 kB / 377.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002841/0.1222, allocations: 211.3 kB / 377.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.542e-05/0.1222, allocations: 32 kB / 377.7 MB, free: 12.74 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002187/0.1225, allocations: 127.9 kB / 377.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.1226, allocations: 99.7 kB / 377.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001608/0.1228, allocations: 163.2 kB / 378.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005155/0.1233, allocations: 450.6 kB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1233, allocations: 0 / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1233, allocations: 0 / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.849e-06/0.1233, 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.001188/0.1245, allocations: 0.6238 MB / 379.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.1246, allocations: 12.03 kB / 379.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003174/0.1249, allocations: 52.53 kB / 379.2 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005379/0.1254, allocations: 303.8 kB / 379.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/0.1256, allocations: 92.45 kB / 379.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.836e-05/0.1257, allocations: 32.36 kB / 379.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007129/0.1264, allocations: 377.4 kB / 380 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/0.1264, allocations: 7.891 kB / 380 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.553e-05/0.1265, allocations: 12 kB / 380 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.1265, allocations: 8 kB / 380 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008447/0.1273, allocations: 421.9 kB / 380.4 MB, free: 9.883 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00214/0.1295, allocations: 1.234 MB / 381.7 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007113/0.1302, allocations: 354.5 kB / 382 MB, free: 8.227 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003856/0.1306, allocations: 184.8 kB / 382.2 MB, free: 8.043 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.1306, allocations: 4.719 kB / 382.2 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.1307, allocations: 42.5 kB / 382.3 MB, free: 7.988 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 2.896e-06/0.1307, allocations: 0 / 382.3 MB, free: 7.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004773/0.1355, allocations: 1.921 MB / 384.2 MB, free: 5.953 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.542e-05/0.1356, allocations: 84.86 kB / 384.3 MB, free: 5.852 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002954/0.1359, allocations: 242.1 kB / 384.5 MB, free: 5.605 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.43e-05/0.1359, allocations: 29.7 kB / 384.5 MB, free: 5.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.136, allocations: 144.6 kB / 384.7 MB, free: 5.422 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.1362, allocations: 146 kB / 384.8 MB, free: 5.277 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.1363, allocations: 82.03 kB / 384.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1364, allocations: 342.8 kB / 385.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003612/0.1368, allocations: 168.8 kB / 385.4 MB, free: 4.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000413/0.1372, allocations: 225.9 kB / 385.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006828/0.1379, allocations: 347.1 kB / 385.9 MB, free: 4.086 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1379, allocations: 4 kB / 386 MB, free: 4.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001109/0.1391, allocations: 0.559 MB / 386.5 MB, free: 3.516 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.1391, allocations: 4 kB / 386.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.1391, allocations: 4 kB / 386.5 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007575/0.1399, allocations: 260.6 kB / 386.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002365/0.1401, allocations: 47.91 kB / 386.8 MB, free: 3.203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004059/0.1442, allocations: 2.886 MB / 389.7 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002862/0.1445, allocations: 32.03 kB / 389.7 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.803e-05/0.1446, allocations: 16 kB / 389.8 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.0002259/0.1448, allocations: 157.6 kB / 389.9 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.078e-05/0.1449, allocations: 23.72 kB / 389.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.145, allocations: 43 kB / 390 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.145, allocations: 4 kB / 390 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.145, allocations: 3.984 kB / 390 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.145, allocations: 4 kB / 390 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001959/0.147, allocations: 1.09 MB / 391.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.147, allocations: 0 / 391.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/0.1472, allocations: 43.97 kB / 391.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006918/0.1479, allocations: 240.8 kB / 391.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.849e-05/0.148, allocations: 19.98 kB / 391.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003856/0.1519, allocations: 2.831 MB / 394.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1519, allocations: 0 / 394.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001516/0.1534, allocations: 0.8272 MB / 395 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001747/0.1536, allocations: 136.8 kB / 395.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.588e-05/0.1537, allocations: 11.94 kB / 395.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002531/0.1539, allocations: 36.05 kB / 395.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/0.1541, allocations: 59.91 kB / 395.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.442e-05/0.1541, allocations: 11.98 kB / 395.3 MB, free: 10.35 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002146/0.1544, allocations: 180.3 kB / 395.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1544, allocations: 0 / 395.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006528/0.155, allocations: 144 kB / 395.6 MB, free: 10.03 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.0002725/0.1553, allocations: 131.2 kB / 395.7 MB, free: 9.895 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.1567, allocations: 0.6252 MB / 396.3 MB, free: 9.258 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.1567, allocations: 0 / 396.3 MB, free: 9.258 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007711/0.1575, allocations: 437.6 kB / 396.8 MB, free: 8.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004406/0.1579, allocations: 43.98 kB / 396.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.1594, allocations: 0.6983 MB / 397.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004411/0.1598, allocations: 0.7761 MB / 398.3 MB, free: 7.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001805/0.16, allocations: 54.95 kB / 398.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.502e-05/0.1601, allocations: 27.42 kB / 398.4 MB, free: 7.172 MB / 334.1 MB Notification: Performance of SimCode: time 8.22e-07/0.1601, allocations: 0 / 398.4 MB, free: 7.172 MB / 334.1 MB Notification: Performance of Templates: time 0.01481/0.1749, allocations: 7.468 MB / 405.8 MB, free: 15.69 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)