Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.01086/0.01086, allocations: 102.7 kB / 15.73 MB, free: 5.992 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.002339/0.002339, allocations: 191.2 kB / 16.67 MB, free: 5.91 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.584/1.584, allocations: 205.1 MB / 222.6 MB, free: 4.293 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.001138/0.001138, allocations: 50.8 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09237/0.09352, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003574/0.09713, allocations: 2.42 MB / 375.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001638/0.09879, allocations: 1.011 MB / 376.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.09892, allocations: 11.94 kB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002186/0.09916, allocations: 43.58 kB / 376.6 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005305/0.0997, allocations: 159.1 kB / 376.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003483/0.1001, allocations: 183.6 kB / 377 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004746/0.1005, allocations: 474.5 kB / 377.4 MB, free: 13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.1008, allocations: 96.84 kB / 377.5 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003053/0.1011, allocations: 207.4 kB / 377.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003064/0.1014, allocations: 243.1 kB / 378 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.106e-05/0.1015, allocations: 36 kB / 378 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002147/0.1017, allocations: 123.9 kB / 378.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.1018, allocations: 115.6 kB / 378.2 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.102, allocations: 187.1 kB / 378.4 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005969/0.1026, allocations: 498.1 kB / 378.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1027, allocations: 0 / 378.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1027, allocations: 0 / 378.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.1027, allocations: 7.938 kB / 378.9 MB, free: 11.51 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001371/0.1041, allocations: 0.6817 MB / 379.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.1041, allocations: 12.02 kB / 379.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003118/0.1044, allocations: 60.67 kB / 379.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004999/0.1049, allocations: 323.5 kB / 380 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.1051, allocations: 88.61 kB / 380.1 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.589e-05/0.1051, allocations: 32.38 kB / 380.1 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007433/0.1059, allocations: 417.1 kB / 380.5 MB, free: 9.805 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.93e-05/0.1059, allocations: 4 kB / 380.5 MB, free: 9.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.116e-05/0.106, allocations: 12 kB / 380.5 MB, free: 9.789 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.106, allocations: 8 kB / 380.5 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009929/0.107, allocations: 474.2 kB / 381 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.1088, allocations: 0.9737 MB / 382 MB, free: 8.285 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008568/0.1096, allocations: 416.4 kB / 382.4 MB, free: 7.871 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004993/0.1102, allocations: 226.1 kB / 382.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.787e-05/0.1102, allocations: 12.42 kB / 382.6 MB, free: 7.633 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.077e-05/0.1103, allocations: 39 kB / 382.7 MB, free: 7.586 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.164e-06/0.1103, allocations: 0 / 382.7 MB, free: 7.586 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005162/0.1154, allocations: 2.168 MB / 384.8 MB, free: 5.312 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.817e-05/0.1155, allocations: 85.67 kB / 384.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003231/0.1159, allocations: 263.1 kB / 385.2 MB, free: 4.938 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.784e-05/0.1159, allocations: 37.7 kB / 385.2 MB, free: 4.895 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.116, allocations: 141.2 kB / 385.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.1162, allocations: 186.4 kB / 385.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.1163, allocations: 90.23 kB / 385.6 MB, free: 4.477 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1165, allocations: 338.8 kB / 385.9 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004386/0.1169, allocations: 197 kB / 386.1 MB, free: 3.945 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004648/0.1174, allocations: 244.6 kB / 386.4 MB, free: 3.695 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008141/0.1182, allocations: 400.3 kB / 386.8 MB, free: 3.297 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1182, allocations: 0 / 386.8 MB, free: 3.297 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001207/0.1194, allocations: 0.6097 MB / 387.4 MB, free: 2.68 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.1195, allocations: 15.91 kB / 387.4 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.1195, allocations: 4 kB / 387.4 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007131/0.1202, allocations: 253.9 kB / 387.6 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002855/0.1205, allocations: 59.89 kB / 387.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003745/0.1243, allocations: 2.944 MB / 390.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002798/0.1246, allocations: 32.03 kB / 390.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.1246, allocations: 16 kB / 390.7 MB, free: 15.22 MB / 334.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.0001801/0.1248, allocations: 157.8 kB / 390.8 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.555e-05/0.1249, allocations: 35.75 kB / 390.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.216e-05/0.125, allocations: 47.31 kB / 390.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.125, allocations: 8 kB / 390.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.125, allocations: 4 kB / 390.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.125, allocations: 7.922 kB / 390.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002055/0.1271, allocations: 1.266 MB / 392.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1271, allocations: 0 / 392.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000313/0.1274, allocations: 63.95 kB / 392.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006094/0.128, allocations: 248.5 kB / 392.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.491e-05/0.1281, allocations: 11.98 kB / 392.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003694/0.1318, allocations: 2.846 MB / 395.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.1318, allocations: 4.031 kB / 395.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001887/0.1337, allocations: 0.9546 MB / 396.3 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002229/0.1339, allocations: 152.8 kB / 396.5 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.833e-05/0.134, allocations: 15.94 kB / 396.5 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00029/0.1343, allocations: 27.97 kB / 396.5 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001949/0.1345, allocations: 72.33 kB / 396.6 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.574e-05/0.1346, allocations: 15.98 kB / 396.6 MB, free: 9.043 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002777/0.1348, allocations: 200.7 kB / 396.8 MB, free: 8.848 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.1349, allocations: 0 / 396.8 MB, free: 8.848 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000732/0.1356, allocations: 151.9 kB / 397 MB, free: 8.699 MB / 334.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.0003311/0.1359, allocations: 143 kB / 397.1 MB, free: 8.547 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001732/0.1377, allocations: 0.6995 MB / 397.8 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.1377, allocations: 0 / 397.8 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008832/0.1386, allocations: 483.6 kB / 398.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.1391, allocations: 44.59 kB / 398.3 MB, free: 7.305 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.1407, allocations: 0.8115 MB / 399.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.1411, allocations: 0.7966 MB / 399.9 MB, free: 5.641 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001844/0.1413, allocations: 62.95 kB / 400 MB, free: 5.582 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.794e-05/0.1414, allocations: 39.41 kB / 400 MB, free: 5.543 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1414, allocations: 0 / 400 MB, free: 5.543 MB / 334.1 MB Notification: Performance of Templates: time 0.01374/0.1551, allocations: 7.857 MB / 407.9 MB, free: 13.67 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)