Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001598/0.001598, allocations: 112.3 kB / 21.18 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001758/0.001758, allocations: 211 kB / 24.48 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.452/1.452, allocations: 230.4 MB / 258.1 MB, free: 8.148 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 71.81 kB / 378.7 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2102, allocations: 53.32 MB / 432 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004036/0.2142, allocations: 2.478 MB / 434.5 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001859/0.2161, allocations: 1.076 MB / 435.6 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.2162, allocations: 4 kB / 435.6 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002688/0.2165, allocations: 59.5 kB / 435.7 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004336/0.2169, allocations: 152.5 kB / 435.8 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004063/0.2173, allocations: 155.7 kB / 436 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005607/0.2179, allocations: 478.7 kB / 436.4 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.218, allocations: 56.64 kB / 436.5 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002609/0.2183, allocations: 195.5 kB / 436.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003686/0.2187, allocations: 255.2 kB / 436.9 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.146e-05/0.2187, allocations: 40 kB / 437 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002365/0.219, allocations: 116 kB / 437.1 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.2191, allocations: 115.7 kB / 437.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001861/0.2193, allocations: 179.1 kB / 437.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006115/0.2199, allocations: 0.4884 MB / 437.9 MB, free: 1.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2199, allocations: 4 kB / 437.9 MB, free: 1.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2199, allocations: 4 kB / 437.9 MB, free: 1.574 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.2199, allocations: 0 / 437.9 MB, free: 1.574 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.00133/0.2212, allocations: 0.6583 MB / 438.5 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.2213, allocations: 12.03 kB / 438.5 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003313/0.2216, allocations: 52.69 kB / 438.6 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005312/0.2221, allocations: 313.4 kB / 438.9 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.2223, allocations: 84.52 kB / 439 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-05/0.2223, allocations: 32.38 kB / 439 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007921/0.2231, allocations: 389.4 kB / 439.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.2232, allocations: 4 kB / 439.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.275e-05/0.2232, allocations: 12 kB / 439.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.2232, allocations: 8 kB / 439.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009362/0.2241, allocations: 409.9 kB / 439.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002257/0.2264, allocations: 1.269 MB / 441.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007544/0.2272, allocations: 326.4 kB / 441.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004103/0.2276, allocations: 168.8 kB / 441.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.221e-05/0.2276, allocations: 7.984 kB / 441.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/0.2276, allocations: 39.28 kB / 441.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.803e-06/0.2276, allocations: 0 / 441.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005289/0.2329, allocations: 1.891 MB / 443.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.372e-05/0.233, allocations: 88.84 kB / 443.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003365/0.2333, allocations: 250.7 kB / 443.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.827e-05/0.2334, allocations: 41.7 kB / 443.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.856e-05/0.2335, allocations: 132.9 kB / 444 MB, free: 11.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.2336, allocations: 166.6 kB / 444.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.2338, allocations: 90.06 kB / 444.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.2339, allocations: 330.8 kB / 444.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004114/0.2343, allocations: 164.8 kB / 444.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004671/0.2348, allocations: 233.8 kB / 445 MB, free: 10.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007696/0.2356, allocations: 335.2 kB / 445.3 MB, free: 9.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2356, allocations: 4.031 kB / 445.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001273/0.2368, allocations: 0.5357 MB / 445.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.2369, allocations: 11.98 kB / 445.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2369, allocations: 3.938 kB / 445.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008346/0.2377, allocations: 292.8 kB / 446.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000266/0.238, allocations: 55.89 kB / 446.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004262/0.2422, allocations: 2.894 MB / 449.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002864/0.2425, allocations: 23.97 kB / 449.1 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.802e-05/0.2426, allocations: 19.98 kB / 449.1 MB, free: 5.75 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.0001946/0.2428, allocations: 165.8 kB / 449.3 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.133e-05/0.2429, allocations: 27.81 kB / 449.3 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.243, allocations: 42.98 kB / 449.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.243, allocations: 0 / 449.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.243, allocations: 0 / 449.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001821/0.2431, allocations: 144.9 kB / 449.5 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.229e-05/0.2432, allocations: 19.98 kB / 449.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002973/0.2435, allocations: 27.86 kB / 449.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.2436, allocations: 43.92 kB / 449.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001957/0.2456, allocations: 0.6764 MB / 450.3 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001507/0.2471, allocations: 0.7935 MB / 451.1 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004065/0.2475, allocations: 155.9 kB / 451.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000243/0.2477, allocations: 184.2 kB / 451.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of Backend: time 2.8e-07/0.2477, allocations: 0 / 451.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003149/0.2509, allocations: 0.966 MB / 452.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of SimCode: time 0.001482/0.2524, allocations: 1.24 MB / 453.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of Templates: time 0.01423/0.2666, allocations: 7.842 MB / 461.4 MB, free: 9.547 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 4.421523481141776] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'gear.mode'] 0.2744561950676143 0.28882370500000004 0.06581751000000001 Calling exit ...