Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.001299/0.001299, allocations: 116 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.001389/0.001389, allocations: 213.7 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.428/1.428, allocations: 230.4 MB / 258.1 MB, free: 8.172 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.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-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [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.002042/0.002042, allocations: 67.84 kB / 378.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.2168, allocations: 53.33 MB / 432 MB, free: 7.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004274/0.221, allocations: 2.891 MB / 434.9 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002124/0.2232, allocations: 1.287 MB / 436.2 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.2233, allocations: 7.938 kB / 436.2 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002856/0.2236, allocations: 87.28 kB / 436.3 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005082/0.2241, allocations: 216.1 kB / 436.5 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005312/0.2246, allocations: 259.4 kB / 436.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000761/0.2254, allocations: 0.7172 MB / 437.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002075/0.2256, allocations: 87.44 kB / 437.6 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004534/0.226, allocations: 327 kB / 437.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005034/0.2265, allocations: 378.8 kB / 438.3 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.761e-05/0.2266, allocations: 60 kB / 438.3 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002717/0.2269, allocations: 155.9 kB / 438.5 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001884/0.2271, allocations: 163.5 kB / 438.6 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002709/0.2274, allocations: 270.7 kB / 438.9 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008269/0.2282, allocations: 0.7181 MB / 439.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.2282, allocations: 8 kB / 439.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.083e-06/0.2282, allocations: 0 / 439.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.2282, allocations: 3.938 kB / 439.6 MB, free: 15.85 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.001805/0.23, allocations: 0.853 MB / 440.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.2301, allocations: 12.03 kB / 440.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004487/0.2305, allocations: 72.62 kB / 440.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006233/0.2311, allocations: 370.6 kB / 440.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001451/0.2313, allocations: 105 kB / 441 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.371e-05/0.2314, allocations: 44.33 kB / 441.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.2325, allocations: 0.5605 MB / 441.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.2325, allocations: 3.984 kB / 441.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.41e-05/0.2326, allocations: 16 kB / 441.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.2326, allocations: 8 kB / 441.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.2341, allocations: 0.6089 MB / 442.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002651/0.2367, allocations: 1.303 MB / 443.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.238, allocations: 0.4935 MB / 444.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006613/0.2386, allocations: 286.4 kB / 444.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.587e-05/0.2387, allocations: 12.48 kB / 444.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.2387, allocations: 39.31 kB / 444.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 1.954e-06/0.2387, allocations: 0 / 444.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007475/0.2462, allocations: 2.731 MB / 447.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.2462, allocations: 89.66 kB / 447.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004874/0.2467, allocations: 351.3 kB / 447.6 MB, free: 7.582 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.22e-05/0.2468, allocations: 49.64 kB / 447.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.2469, allocations: 165.7 kB / 447.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000216/0.2471, allocations: 246 kB / 448 MB, free: 7.117 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002273/0.2474, allocations: 130.2 kB / 448.1 MB, free: 6.984 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.2475, allocations: 350.8 kB / 448.5 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006512/0.2482, allocations: 265.2 kB / 448.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007055/0.2489, allocations: 334.4 kB / 449.1 MB, free: 6.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/0.2501, allocations: 499.2 kB / 449.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2501, allocations: 0 / 449.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001913/0.252, allocations: 0.8219 MB / 450.4 MB, free: 4.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.252, allocations: 6.812 kB / 450.4 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.252, allocations: 0 / 450.4 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001138/0.2531, allocations: 441.9 kB / 450.8 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004096/0.2536, allocations: 87.88 kB / 450.9 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001374/0.2549, allocations: 1.026 MB / 451.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005026/0.2554, allocations: 59.92 kB / 452 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.609e-05/0.2555, allocations: 24.05 kB / 452 MB, free: 3.051 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.0002588/0.2558, allocations: 189.8 kB / 452.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.2559, allocations: 47.72 kB / 452.2 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001644/0.256, allocations: 67.86 kB / 452.3 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.2561, allocations: 3.984 kB / 452.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2561, allocations: 0 / 452.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002747/0.2563, allocations: 188.7 kB / 452.5 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.2564, allocations: 23.94 kB / 452.5 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005179/0.257, allocations: 59.92 kB / 452.6 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.2572, allocations: 84.42 kB / 452.7 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002812/0.26, allocations: 0.9599 MB / 453.6 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002269/0.2622, allocations: 1.113 MB / 454.7 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006284/0.2629, allocations: 260.3 kB / 455 MB, free: 12 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000344/0.2632, allocations: 253.9 kB / 455.2 MB, free: 15.76 MB / 366.1 MB Notification: Performance of Backend: time 6.41e-07/0.2632, allocations: 0 / 455.2 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00332/0.2665, allocations: 0.9273 MB / 456.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of SimCode: time 0.00181/0.2683, allocations: 1.507 MB / 457.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of Templates: time 0.01876/0.2871, allocations: 11.19 MB / 468.9 MB, free: 2.332 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 9.607001626864076] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'bearingFriction.mode', 'bearingFriction.startBackward', 'bearingFriction.startForward', 'gear.mode'] 0.29490698780864477 0.30938934700000004 0.078007778 Calling exit ...