Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_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.001522/0.001522, allocations: 106.3 kB / 18.4 MB, free: 4.66 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.001857/0.001857, allocations: 184.3 kB / 19.33 MB, free: 3.738 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.303/1.303, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001499/0.001499, allocations: 55.92 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07668/0.07818, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003768/0.08198, allocations: 2.715 MB / 378.5 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002111/0.08412, allocations: 1.132 MB / 379.7 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002448/0.08438, allocations: 4 kB / 379.7 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002742/0.08468, allocations: 75.36 kB / 379.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006264/0.08532, allocations: 186.8 kB / 379.9 MB, free: 456 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004955/0.08583, allocations: 247.6 kB / 380.2 MB, free: 208 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1543/0.2401, allocations: 0.6421 MB / 380.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002795/0.2404, allocations: 121.7 kB / 380.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005736/0.241, allocations: 292.7 kB / 381.2 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005621/0.2416, allocations: 342.1 kB / 381.6 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001592/0.2418, allocations: 52.38 kB / 381.6 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003759/0.2422, allocations: 138.5 kB / 381.7 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001952/0.2424, allocations: 154.7 kB / 381.9 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003484/0.2427, allocations: 245.1 kB / 382.1 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009326/0.2437, allocations: 0.6459 MB / 382.8 MB, free: 10.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2437, allocations: 1.422 kB / 382.8 MB, free: 10.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2437, allocations: 0.5312 kB / 382.8 MB, free: 10.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.2437, allocations: 0 / 382.8 MB, free: 10.21 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.00186/0.2456, allocations: 0.7951 MB / 383.6 MB, free: 9.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2456, allocations: 14.55 kB / 383.6 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003846/0.246, allocations: 64.98 kB / 383.6 MB, free: 9.688 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005619/0.2466, allocations: 374.3 kB / 384 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.2467, allocations: 96.16 kB / 384.1 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-05/0.2468, allocations: 42.81 kB / 384.2 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.2479, allocations: 0.5665 MB / 384.7 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.2479, allocations: 2.125 kB / 384.7 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.321e-05/0.248, allocations: 15.97 kB / 384.7 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.248, allocations: 10.22 kB / 384.7 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.2493, allocations: 0.6349 MB / 385.4 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002356/0.2516, allocations: 1.285 MB / 386.7 MB, free: 8.402 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.2527, allocations: 0.5445 MB / 387.2 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005738/0.2533, allocations: 325.8 kB / 387.5 MB, free: 8.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.466e-05/0.2534, allocations: 8.375 kB / 387.5 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/0.2534, allocations: 43.19 kB / 387.6 MB, free: 8.039 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.264e-06/0.2534, allocations: 0 / 387.6 MB, free: 8.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.006477/0.2599, allocations: 2.868 MB / 390.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.657e-05/0.2599, allocations: 85.27 kB / 390.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003689/0.2603, allocations: 331.6 kB / 390.9 MB, free: 6.383 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.921e-05/0.2603, allocations: 46.05 kB / 390.9 MB, free: 6.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.335e-05/0.2604, allocations: 171.3 kB / 391.1 MB, free: 6.191 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000127/0.2606, allocations: 219.2 kB / 391.3 MB, free: 6.027 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002047/0.2608, allocations: 123.9 kB / 391.4 MB, free: 5.965 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.354e-05/0.2608, allocations: 347.7 kB / 391.7 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005884/0.2614, allocations: 287.3 kB / 392 MB, free: 5.543 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006178/0.2621, allocations: 357.1 kB / 392.4 MB, free: 5.402 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009989/0.2631, allocations: 0.5229 MB / 392.9 MB, free: 5.195 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2631, allocations: 1.906 kB / 392.9 MB, free: 5.195 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001667/0.2648, allocations: 0.8822 MB / 393.8 MB, free: 4.863 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.2648, allocations: 5.75 kB / 393.8 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.2648, allocations: 0 / 393.8 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.2659, allocations: 476.5 kB / 394.2 MB, free: 4.738 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003813/0.2663, allocations: 89.05 kB / 394.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001108/0.2674, allocations: 1.074 MB / 395.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004735/0.2679, allocations: 58.47 kB / 395.5 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-05/0.2679, allocations: 23.86 kB / 395.5 MB, free: 3.98 MB / 318.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.0002045/0.2681, allocations: 192.5 kB / 395.7 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.978e-05/0.2682, allocations: 44.72 kB / 395.7 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.2684, allocations: 62.27 kB / 395.8 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.2684, allocations: 11.2 kB / 395.8 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2684, allocations: 2.547 kB / 395.8 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001933/0.2686, allocations: 177.6 kB / 396 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.615e-05/0.2687, allocations: 18.3 kB / 396 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004738/0.2692, allocations: 59.16 kB / 396 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/0.2694, allocations: 85.45 kB / 396.1 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002512/0.2719, allocations: 0.9984 MB / 397.1 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001942/0.2739, allocations: 1.18 MB / 398.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005987/0.2745, allocations: 299 kB / 398.6 MB, free: 2.551 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002583/0.2748, allocations: 242.5 kB / 398.8 MB, free: 2.434 MB / 318.1 MB Notification: Performance of Backend: time 6.51e-07/0.2748, allocations: 0 / 398.8 MB, free: 2.434 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001427/0.2762, allocations: 0.5794 MB / 399.4 MB, free: 2.199 MB / 318.1 MB Notification: Performance of SimCode: time 0.001413/0.2776, allocations: 1.422 MB / 400.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of Templates: time 0.01699/0.2946, allocations: 10.35 MB / 411.2 MB, free: 11.21 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)