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.001444/0.001444, allocations: 103.1 kB / 18.4 MB, free: 4.676 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.00159/0.00159, allocations: 188.5 kB / 19.34 MB, free: 3.754 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.341/1.341, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001201/0.001201, allocations: 47.94 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07173/0.07295, allocations: 46.62 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00369/0.07666, allocations: 2.723 MB / 378.5 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.07862, allocations: 1.132 MB / 379.7 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002001/0.07884, allocations: 7.938 kB / 379.7 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002413/0.07911, allocations: 71.36 kB / 379.8 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006059/0.07972, allocations: 190.9 kB / 379.9 MB, free: 448 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004673/0.08021, allocations: 247.5 kB / 380.2 MB, free: 200 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1483/0.2285, allocations: 0.6415 MB / 380.8 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.2288, allocations: 124.9 kB / 380.9 MB, free: 9.797 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005146/0.2293, allocations: 293.8 kB / 381.2 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004861/0.2298, allocations: 347.3 kB / 381.6 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.23, allocations: 52.44 kB / 381.6 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003057/0.2303, allocations: 138.1 kB / 381.8 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001707/0.2305, allocations: 156.3 kB / 381.9 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002875/0.2308, allocations: 240.5 kB / 382.1 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008493/0.2316, allocations: 0.6469 MB / 382.8 MB, free: 9.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.2316, allocations: 0.6562 kB / 382.8 MB, free: 9.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2316, allocations: 0.5 kB / 382.8 MB, free: 9.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.197e-05/0.2317, allocations: 3.656 kB / 382.8 MB, free: 9.586 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.00171/0.2334, allocations: 0.7942 MB / 383.6 MB, free: 9.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.2334, allocations: 12.45 kB / 383.6 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003671/0.2338, allocations: 68.03 kB / 383.7 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004996/0.2343, allocations: 361.9 kB / 384 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.2344, allocations: 97.64 kB / 384.1 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.08e-05/0.2345, allocations: 46.95 kB / 384.2 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.2356, allocations: 0.5598 MB / 384.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/0.2356, allocations: 1.891 kB / 384.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.788e-05/0.2357, allocations: 16.19 kB / 384.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.2357, allocations: 11 kB / 384.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001282/0.237, allocations: 0.6378 MB / 385.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002291/0.2393, allocations: 1.284 MB / 386.7 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.2404, allocations: 0.5469 MB / 387.2 MB, free: 7.898 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005989/0.241, allocations: 326.8 kB / 387.5 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.49e-05/0.2411, allocations: 9.969 kB / 387.5 MB, free: 7.777 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.7e-05/0.2411, allocations: 41.25 kB / 387.6 MB, free: 7.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 1.954e-06/0.2411, allocations: 2.625 kB / 387.6 MB, free: 7.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.006543/0.2477, allocations: 2.868 MB / 390.5 MB, free: 6.336 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.924e-05/0.2477, allocations: 85.14 kB / 390.5 MB, free: 6.242 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003442/0.2481, allocations: 338.7 kB / 390.9 MB, free: 6.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.755e-05/0.2481, allocations: 38.61 kB / 390.9 MB, free: 6.031 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.083e-05/0.2482, allocations: 162.8 kB / 391.1 MB, free: 5.887 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.2483, allocations: 230.1 kB / 391.3 MB, free: 5.715 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001891/0.2485, allocations: 121.7 kB / 391.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.911e-05/0.2486, allocations: 347.8 kB / 391.8 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005884/0.2492, allocations: 289 kB / 392 MB, free: 5.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006051/0.2498, allocations: 351.8 kB / 392.4 MB, free: 5.094 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.2508, allocations: 0.5279 MB / 392.9 MB, free: 4.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2508, allocations: 0 / 392.9 MB, free: 4.883 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001655/0.2525, allocations: 0.8871 MB / 393.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.2525, allocations: 5.125 kB / 393.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.2525, allocations: 1.219 kB / 393.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001012/0.2536, allocations: 477 kB / 394.3 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003822/0.254, allocations: 83.58 kB / 394.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00109/0.2551, allocations: 1.079 MB / 395.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004875/0.2556, allocations: 55.67 kB / 395.5 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-05/0.2556, allocations: 22.75 kB / 395.5 MB, free: 3.668 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.0002003/0.2558, allocations: 187.2 kB / 395.7 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.939e-05/0.2559, allocations: 47.34 kB / 395.7 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001471/0.2561, allocations: 68.28 kB / 395.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.056e-06/0.2561, allocations: 3.234 kB / 395.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.2561, allocations: 0.7969 kB / 395.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002102/0.2563, allocations: 181 kB / 396 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.969e-05/0.2564, allocations: 19.33 kB / 396 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004912/0.2569, allocations: 57.08 kB / 396.1 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001879/0.2571, allocations: 90.38 kB / 396.1 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002486/0.2596, allocations: 0.9995 MB / 397.1 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001959/0.2616, allocations: 1.17 MB / 398.3 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005849/0.2622, allocations: 303.4 kB / 398.6 MB, free: 2.246 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002537/0.2624, allocations: 243.2 kB / 398.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of Backend: time 3.3e-07/0.2625, allocations: 0 / 398.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.2639, allocations: 0.5795 MB / 399.4 MB, free: 1.895 MB / 318.1 MB Notification: Performance of SimCode: time 0.001315/0.2652, allocations: 1.421 MB / 400.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of Templates: time 0.01554/0.2808, allocations: 9.954 MB / 410.8 MB, free: 11.41 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)