Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001948/0.001948, allocations: 110.8 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.002328/0.002328, allocations: 209.3 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.469/1.469, 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 51.92 kB / 379 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.2085, allocations: 53.37 MB / 432.3 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004093/0.2126, allocations: 2.334 MB / 434.7 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001848/0.2144, allocations: 1.01 MB / 435.7 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.2145, allocations: 11.88 kB / 435.7 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002508/0.2148, allocations: 55.52 kB / 435.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004166/0.2152, allocations: 159.5 kB / 435.9 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003715/0.2156, allocations: 163.7 kB / 436.1 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000503/0.2161, allocations: 466.7 kB / 436.5 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.2162, allocations: 51.84 kB / 436.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002399/0.2165, allocations: 211.4 kB / 436.8 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003238/0.2168, allocations: 255.2 kB / 437 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.874e-05/0.2169, allocations: 36 kB / 437.1 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002364/0.2171, allocations: 131.9 kB / 437.2 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001307/0.2172, allocations: 103.7 kB / 437.3 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001559/0.2174, allocations: 147.4 kB / 437.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005942/0.218, allocations: 0.4979 MB / 437.9 MB, free: 1.148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.218, allocations: 3.938 kB / 437.9 MB, free: 1.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.218, allocations: 0 / 437.9 MB, free: 1.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.218, allocations: 0 / 437.9 MB, free: 1.145 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001276/0.2193, allocations: 0.5946 MB / 438.5 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.2193, allocations: 12.03 kB / 438.5 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003353/0.2197, allocations: 44.73 kB / 438.6 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005266/0.2202, allocations: 255.5 kB / 438.8 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/0.2204, allocations: 148 kB / 439 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.752e-05/0.2204, allocations: 24.42 kB / 439 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008097/0.2212, allocations: 412.5 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.2213, allocations: 3.953 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.528e-05/0.2213, allocations: 16 kB / 439.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.2213, allocations: 8 kB / 439.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009408/0.2223, allocations: 410.2 kB / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/0.2244, allocations: 1.08 MB / 440.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007534/0.2252, allocations: 320.8 kB / 441.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004116/0.2256, allocations: 172.7 kB / 441.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.2256, allocations: 8.719 kB / 441.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.2257, allocations: 34.56 kB / 441.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.974e-06/0.2257, allocations: 4 kB / 441.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005126/0.2308, allocations: 1.667 MB / 443.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.733e-05/0.2308, allocations: 84.86 kB / 443.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003397/0.2312, allocations: 255.4 kB / 443.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.641e-05/0.2312, allocations: 33.7 kB / 443.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.2313, allocations: 144.9 kB / 443.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.2315, allocations: 150.7 kB / 443.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001633/0.2316, allocations: 90.06 kB / 443.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.2318, allocations: 334.8 kB / 444.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000417/0.2322, allocations: 164.8 kB / 444.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000479/0.2327, allocations: 259.6 kB / 444.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007645/0.2335, allocations: 335.2 kB / 444.9 MB, free: 9.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2335, allocations: 0 / 444.9 MB, free: 9.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001253/0.2347, allocations: 0.5435 MB / 445.5 MB, free: 9.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.2347, allocations: 8 kB / 445.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2347, allocations: 0 / 445.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000863/0.2356, allocations: 296.6 kB / 445.8 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000277/0.2359, allocations: 51.95 kB / 445.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004159/0.24, allocations: 2.72 MB / 448.5 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002846/0.2403, allocations: 27.97 kB / 448.6 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.005e-05/0.2404, allocations: 15.98 kB / 448.6 MB, free: 6.066 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001902/0.2406, allocations: 157.7 kB / 448.7 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.126e-05/0.2406, allocations: 27.81 kB / 448.8 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001083/0.2408, allocations: 46.92 kB / 448.8 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.2408, allocations: 3.984 kB / 448.8 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2408, allocations: 64 / 448.8 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001694/0.2409, allocations: 71.78 kB / 448.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.266e-05/0.241, allocations: 15.98 kB / 448.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.2413, allocations: 19.98 kB / 448.9 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.2414, allocations: 51.84 kB / 449 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001946/0.2434, allocations: 0.6689 MB / 449.6 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001511/0.2449, allocations: 0.7894 MB / 450.4 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004021/0.2453, allocations: 160.4 kB / 450.6 MB, free: 4.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002326/0.2455, allocations: 180.5 kB / 450.7 MB, free: 3.848 MB / 350.1 MB Notification: Performance of Backend: time 4.41e-07/0.2455, allocations: 3.938 kB / 450.8 MB, free: 3.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003423/0.2489, allocations: 1.009 MB / 451.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of SimCode: time 0.001443/0.2504, allocations: 1.236 MB / 453 MB, free: 1.777 MB / 350.1 MB Notification: Performance of Templates: time 0.01379/0.2642, allocations: 7.85 MB / 460.8 MB, free: 9.973 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 4.449176454996632] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'gear.mode'] 0.2721567410044372 0.28656289299999993 0.065527099 Calling exit ...