Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006349/0.006349, allocations: 98.27 kB / 15.73 MB, free: 5.98 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.001236/0.001237, allocations: 193.6 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.572/1.572, allocations: 205.1 MB / 222.6 MB, free: 4.355 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.001236/0.001236, allocations: 45.97 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1035, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003818/0.1074, allocations: 2.724 MB / 375.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.1093, allocations: 1.132 MB / 377 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.1095, allocations: 7.938 kB / 377 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002463/0.1097, allocations: 71.31 kB / 377.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005652/0.1103, allocations: 186.9 kB / 377.3 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000407/0.1107, allocations: 255.5 kB / 377.5 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005959/0.1113, allocations: 0.6353 MB / 378.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.1115, allocations: 131.3 kB / 378.3 MB, free: 12.13 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003443/0.1119, allocations: 295.1 kB / 378.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003812/0.1123, allocations: 335 kB / 378.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.504e-05/0.1124, allocations: 52 kB / 379 MB, free: 11.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002352/0.1126, allocations: 143.9 kB / 379.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.1128, allocations: 155.5 kB / 379.2 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002398/0.113, allocations: 250.8 kB / 379.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006778/0.1137, allocations: 0.6422 MB / 380.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.1137, allocations: 7.984 kB / 380.1 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1138, allocations: 0 / 380.1 MB, free: 10.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.1138, allocations: 0 / 380.1 MB, free: 10.27 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00156/0.1153, allocations: 0.8064 MB / 380.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.1154, allocations: 11.89 kB / 381 MB, free: 9.402 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003236/0.1157, allocations: 72.58 kB / 381 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006118/0.1163, allocations: 362.6 kB / 381.4 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001456/0.1165, allocations: 101 kB / 381.5 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-05/0.1166, allocations: 48.33 kB / 381.5 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.1176, allocations: 0.5605 MB / 382.1 MB, free: 8.199 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.1176, allocations: 0 / 382.1 MB, free: 8.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.075e-05/0.1177, allocations: 16 kB / 382.1 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.1177, allocations: 12 kB / 382.1 MB, free: 8.172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00128/0.119, allocations: 0.6402 MB / 382.8 MB, free: 7.531 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002406/0.1214, allocations: 1.279 MB / 384 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.1226, allocations: 0.5481 MB / 384.6 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005986/0.1232, allocations: 326.3 kB / 384.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.885e-05/0.1232, allocations: 12.5 kB / 384.9 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.1233, allocations: 35.12 kB / 384.9 MB, free: 5.258 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 1.673e-06/0.1233, allocations: 0 / 384.9 MB, free: 5.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.006569/0.1298, allocations: 2.88 MB / 387.8 MB, free: 2.258 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.149e-05/0.1299, allocations: 89.61 kB / 387.9 MB, free: 2.148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003922/0.1303, allocations: 331 kB / 388.2 MB, free: 1.816 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.505e-05/0.1304, allocations: 45.69 kB / 388.3 MB, free: 1.766 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.1305, allocations: 165.7 kB / 388.4 MB, free: 1.598 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.1307, allocations: 242 kB / 388.7 MB, free: 1.359 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002037/0.1309, allocations: 122.3 kB / 388.8 MB, free: 1.234 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.131, allocations: 346.8 kB / 389.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005864/0.1316, allocations: 285.2 kB / 389.4 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006417/0.1323, allocations: 362.4 kB / 389.8 MB, free: 248 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/0.1333, allocations: 0.5227 MB / 390.3 MB, free: 15.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1334, allocations: 0 / 390.3 MB, free: 15.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001753/0.1351, allocations: 0.8853 MB / 391.2 MB, free: 14.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.1352, allocations: 12.97 kB / 391.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.1352, allocations: 0 / 391.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/0.1363, allocations: 469.6 kB / 391.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003788/0.1366, allocations: 87.81 kB / 391.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/0.138, allocations: 1.079 MB / 392.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005074/0.1385, allocations: 59.95 kB / 392.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.235e-05/0.1386, allocations: 27.98 kB / 392.9 MB, free: 13.06 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.000278/0.1389, allocations: 177.7 kB / 393.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.139, allocations: 43.72 kB / 393.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001552/0.1391, allocations: 67.77 kB / 393.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.1392, allocations: 8 kB / 393.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.1392, allocations: 3.938 kB / 393.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.1392, allocations: 3.984 kB / 393.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003323/0.1425, allocations: 1.753 MB / 395 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.1425, allocations: 0 / 395 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003595/0.1429, allocations: 75.89 kB / 395 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009294/0.1438, allocations: 456.5 kB / 395.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-05/0.1439, allocations: 24.03 kB / 395.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00128/0.1452, allocations: 1.04 MB / 396.5 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1452, allocations: 0 / 396.5 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002509/0.1477, allocations: 1.306 MB / 397.8 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003051/0.1481, allocations: 180.8 kB / 398 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.159e-05/0.1482, allocations: 20 kB / 398 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004332/0.1486, allocations: 47.94 kB / 398.1 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.1488, allocations: 92.48 kB / 398.2 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.905e-05/0.1489, allocations: 23.97 kB / 398.2 MB, free: 7.617 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002914/0.1492, allocations: 241.9 kB / 398.4 MB, free: 7.383 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1492, allocations: 3.938 kB / 398.4 MB, free: 7.379 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005249/0.1497, allocations: 147.9 kB / 398.6 MB, free: 7.234 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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002965/0.15, allocations: 155 kB / 398.7 MB, free: 7.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001579/0.1516, allocations: 0.7157 MB / 399.5 MB, free: 6.359 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1516, allocations: 0 / 399.5 MB, free: 6.359 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008293/0.1524, allocations: 396 kB / 399.8 MB, free: 5.973 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004784/0.1529, allocations: 48.88 kB / 399.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002526/0.1555, allocations: 1.129 MB / 401 MB, free: 4.762 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003825/0.1559, allocations: 0.8212 MB / 401.8 MB, free: 3.914 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002065/0.1561, allocations: 63.34 kB / 401.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.1562, allocations: 43.41 kB / 401.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1562, allocations: 4 kB / 401.9 MB, free: 3.805 MB / 334.1 MB Notification: Performance of Templates: time 0.01549/0.1717, allocations: 10.04 MB / 412 MB, free: 9.746 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)