Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001666/0.001666, allocations: 110.4 kB / 21.19 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002023/0.002023, allocations: 204.7 kB / 24.49 MB, free: 3.965 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.456/1.456, allocations: 230.6 MB / 258.3 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 51.92 kB / 379 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.2183, allocations: 53.37 MB / 432.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004262/0.2226, allocations: 2.684 MB / 435 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002181/0.2248, allocations: 1.225 MB / 436.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.2249, allocations: 11.94 kB / 436.3 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002897/0.2252, allocations: 83.28 kB / 436.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005153/0.2257, allocations: 222.9 kB / 436.5 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005185/0.2262, allocations: 259.5 kB / 436.8 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007265/0.227, allocations: 0.7133 MB / 437.5 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000189/0.2271, allocations: 94.8 kB / 437.6 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004507/0.2276, allocations: 331.1 kB / 437.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004701/0.2281, allocations: 382.9 kB / 438.3 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.2282, allocations: 59.98 kB / 438.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002746/0.2284, allocations: 155.9 kB / 438.5 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001869/0.2286, allocations: 163.5 kB / 438.7 MB, free: 384 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002444/0.2289, allocations: 239 kB / 438.9 MB, free: 144 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008191/0.2297, allocations: 0.7237 MB / 439.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2297, allocations: 0 / 439.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2297, allocations: 0 / 439.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.2297, allocations: 0 / 439.6 MB, free: 15.42 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001802/0.2315, allocations: 0.7816 MB / 440.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.2315, allocations: 8.031 kB / 440.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004734/0.232, allocations: 76.62 kB / 440.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006568/0.2327, allocations: 316.7 kB / 440.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001921/0.2329, allocations: 156.3 kB / 441 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.233, allocations: 40.33 kB / 441 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.2342, allocations: 0.5818 MB / 441.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.2342, allocations: 0 / 441.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-05/0.2343, allocations: 16 kB / 441.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.2343, allocations: 8 kB / 441.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.2358, allocations: 0.6128 MB / 442.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002593/0.2384, allocations: 1.056 MB / 443.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.2396, allocations: 493.6 kB / 443.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006638/0.2403, allocations: 278.2 kB / 444 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.807e-05/0.2403, allocations: 12.44 kB / 444 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.2404, allocations: 47 kB / 444.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.284e-06/0.2404, allocations: 4 kB / 444.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007306/0.2477, allocations: 2.43 MB / 446.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.307e-05/0.2477, allocations: 93.64 kB / 446.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004436/0.2482, allocations: 325.8 kB / 446.9 MB, free: 7.895 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.422e-05/0.2483, allocations: 45.7 kB / 447 MB, free: 7.844 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.2484, allocations: 169.6 kB / 447.1 MB, free: 7.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002339/0.2486, allocations: 246 kB / 447.4 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003182/0.2489, allocations: 130.3 kB / 447.5 MB, free: 7.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.2491, allocations: 346.8 kB / 447.8 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00067/0.2498, allocations: 269.2 kB / 448.1 MB, free: 6.684 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000744/0.2505, allocations: 360.1 kB / 448.5 MB, free: 6.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.2517, allocations: 491.6 kB / 448.9 MB, free: 5.828 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.2517, allocations: 4.031 kB / 448.9 MB, free: 5.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.002038/0.2537, allocations: 0.8141 MB / 449.8 MB, free: 5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.2538, allocations: 11.94 kB / 449.8 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2538, allocations: 0 / 449.8 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001196/0.255, allocations: 444.5 kB / 450.2 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004196/0.2554, allocations: 87.88 kB / 450.3 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.2569, allocations: 1.023 MB / 451.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004963/0.2574, allocations: 60 kB / 451.4 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.397e-05/0.2574, allocations: 27.98 kB / 451.4 MB, free: 3.332 MB / 350.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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002626/0.2577, allocations: 185.6 kB / 451.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.2578, allocations: 39.77 kB / 451.6 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001672/0.258, allocations: 63.73 kB / 451.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.258, allocations: 3.984 kB / 451.7 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.258, allocations: 0 / 451.7 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002821/0.2583, allocations: 111.6 kB / 451.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.2584, allocations: 24 kB / 451.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004966/0.2589, allocations: 59.88 kB / 451.9 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002077/0.2591, allocations: 84.47 kB / 452 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00288/0.262, allocations: 0.9467 MB / 452.9 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002296/0.2643, allocations: 1.123 MB / 454 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006493/0.2649, allocations: 257.1 kB / 454.3 MB, free: 416 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003205/0.2652, allocations: 233.2 kB / 454.5 MB, free: 184 kB / 350.1 MB Notification: Performance of Backend: time 4.71e-07/0.2652, allocations: 3.938 kB / 454.5 MB, free: 180 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00358/0.2688, allocations: 0.9627 MB / 455.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of SimCode: time 0.001842/0.2707, allocations: 1.492 MB / 457 MB, free: 13.92 MB / 366.1 MB Notification: Performance of Templates: time 0.0184/0.2891, allocations: 10.92 MB / 467.9 MB, free: 3.039 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 9.510577214998193] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'bearingFriction.mode', 'bearingFriction.startBackward', 'bearingFriction.startForward', 'gear.mode'] 0.29702844800340245 0.311944962 0.07875169800000001 Calling exit ...