Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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.001395/0.001395, allocations: 112.4 kB / 21.17 MB, free: 0.6172 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.001577/0.001577, allocations: 205.6 kB / 24.46 MB, free: 4.023 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.47/1.47, allocations: 230.5 MB / 258.1 MB, free: 8.145 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.CompareBrakingTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") [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.002004/0.002004, allocations: 59.91 kB / 378.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.256, allocations: 53.3 MB / 432 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003982/0.26, allocations: 2.308 MB / 434.3 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.2615, allocations: 0.7673 MB / 435.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.2616, allocations: 4 kB / 435.1 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.2618, allocations: 39.59 kB / 435.1 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003189/0.2621, allocations: 95.31 kB / 435.2 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000344/0.2624, allocations: 107.7 kB / 435.3 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000383/0.2628, allocations: 298.7 kB / 435.6 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.263, allocations: 36.39 kB / 435.7 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.2631, allocations: 115.6 kB / 435.8 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001923/0.2633, allocations: 119.4 kB / 435.9 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.884e-05/0.2633, allocations: 20 kB / 435.9 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.687e-05/0.2634, allocations: 24 kB / 435.9 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.605e-05/0.2634, allocations: 55.77 kB / 436 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.2636, allocations: 115.4 kB / 436.1 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003379/0.2639, allocations: 272.8 kB / 436.4 MB, free: 3.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.2639, allocations: 0 / 436.4 MB, free: 3.008 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2639, allocations: 0 / 436.4 MB, free: 3.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.2639, allocations: 0 / 436.4 MB, free: 3.008 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009067/0.2648, allocations: 0.526 MB / 436.9 MB, free: 2.434 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.2649, allocations: 12.03 kB / 436.9 MB, free: 2.422 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.514e-05/0.2649, allocations: 36.69 kB / 437 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003943/0.2653, allocations: 256.4 kB / 437.2 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.2654, allocations: 12.81 kB / 437.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.045e-05/0.2654, allocations: 28.36 kB / 437.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004571/0.2659, allocations: 239 kB / 437.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/0.2659, allocations: 7.953 kB / 437.5 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.203e-05/0.2659, allocations: 8 kB / 437.5 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.2659, allocations: 11.98 kB / 437.5 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003543/0.2663, allocations: 139.8 kB / 437.6 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.2678, allocations: 1.065 MB / 438.7 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004971/0.2683, allocations: 198.4 kB / 438.9 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001474/0.2684, allocations: 67.48 kB / 439 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.299e-05/0.2685, allocations: 3.938 kB / 439 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.2685, allocations: 38.56 kB / 439 MB, free: 132 kB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.2685, allocations: 0 / 439 MB, free: 132 kB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006133/0.2691, allocations: 206 kB / 439.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.433e-05/0.2692, allocations: 132.5 kB / 439.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.2694, allocations: 195.1 kB / 439.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.2694, allocations: 33.64 kB / 439.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.2696, allocations: 160.2 kB / 439.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.473e-05/0.2696, allocations: 79.41 kB / 439.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.838e-05/0.2697, allocations: 53.66 kB / 439.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.2699, allocations: 326.8 kB / 440.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.27, allocations: 51.97 kB / 440.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002396/0.2703, allocations: 169.6 kB / 440.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003973/0.2707, allocations: 237.5 kB / 440.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2707, allocations: 0 / 440.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005027/0.2712, allocations: 261.5 kB / 440.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.2712, allocations: 14.59 kB / 440.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.2712, allocations: 4 kB / 440.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.2712, allocations: 4 kB / 440.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002836/0.2715, allocations: 67.89 kB / 441 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.2715, allocations: 4 kB / 441 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.2717, allocations: 27.84 kB / 441 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.2717, allocations: 12 kB / 441 MB, free: 13.96 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001328/0.2718, allocations: 141.8 kB / 441.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.848e-05/0.2719, allocations: 27.83 kB / 441.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.003e-05/0.272, allocations: 20.94 kB / 441.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.272, allocations: 0 / 441.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.272, allocations: 7.938 kB / 441.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.272, allocations: 3.984 kB / 441.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004783/0.2725, allocations: 265.5 kB / 441.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2725, allocations: 3.938 kB / 441.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002867/0.2728, allocations: 51.97 kB / 441.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.2728, allocations: 7.938 kB / 441.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.2728, allocations: 12 kB / 441.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.2728, allocations: 0 / 441.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.2728, allocations: 3.984 kB / 441.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006536/0.2734, allocations: 0.5128 MB / 442 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.599e-05/0.2735, allocations: 112.9 kB / 442.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.287e-05/0.2736, allocations: 4.25 kB / 442.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.2738, allocations: 7.938 kB / 442.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.653e-05/0.2738, allocations: 15.98 kB / 442.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.2738, allocations: 7.984 kB / 442.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001414/0.274, allocations: 140.2 kB / 442.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.274, allocations: 0 / 442.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004455/0.2744, allocations: 63.84 kB / 442.4 MB, free: 12.47 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001447/0.2746, allocations: 115.2 kB / 442.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003858/0.275, allocations: 147.9 kB / 442.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.275, allocations: 0 / 442.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.2751, allocations: 64.64 kB / 442.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007011/0.2758, allocations: 62.72 kB / 442.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001443/0.2773, allocations: 0.826 MB / 443.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.2777, allocations: 0.744 MB / 444.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.697e-05/0.2778, allocations: 30.28 kB / 444.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.493e-05/0.2778, allocations: 23.44 kB / 444.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2778, allocations: 0 / 444.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of Templates: time 0.006001/0.2838, allocations: 2.352 MB / 446.7 MB, free: 8.059 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.499073813203722] Failed to read output from testmodel.py, exit status != 0: 0.29236388206481934 0.307107658 0.040085492 Calling exit ...