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.001248/0.001248, allocations: 109.8 kB / 19.17 MB, free: 3.871 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.001383/0.001383, allocations: 208.9 kB / 22.13 MB, free: 0.918 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.477/1.477, allocations: 230.4 MB / 255.4 MB, free: 15.01 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.002069/0.002069, allocations: 67.83 kB / 374.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1165, allocations: 53.32 MB / 428.1 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.004062/0.1205, allocations: 2.283 MB / 430.3 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001628/0.1222, allocations: 0.7596 MB / 431.1 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002372/0.1224, allocations: 8 kB / 431.1 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.1226, allocations: 31.59 kB / 431.1 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003972/0.123, allocations: 87.33 kB / 431.2 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004804/0.1235, allocations: 123.6 kB / 431.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004272/0.1239, allocations: 294.6 kB / 431.6 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001688/0.1241, allocations: 44.38 kB / 431.7 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.1242, allocations: 111.6 kB / 431.8 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.1244, allocations: 123.4 kB / 431.9 MB, free: 496 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.63e-05/0.1244, allocations: 20 kB / 431.9 MB, free: 476 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.251e-05/0.1245, allocations: 20 kB / 431.9 MB, free: 456 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.102e-05/0.1245, allocations: 43.84 kB / 432 MB, free: 412 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.1247, allocations: 135.3 kB / 432.1 MB, free: 276 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000322/0.125, allocations: 266.8 kB / 432.4 MB, free: 8 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.125, allocations: 0 / 432.4 MB, free: 8 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.125, allocations: 3.938 kB / 432.4 MB, free: 4 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.852e-06/0.125, allocations: 0 / 432.4 MB, free: 4 kB / 350.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.2034/0.3284, allocations: 0.5162 MB / 432.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3284, allocations: 9.812 kB / 432.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.318e-05/0.3285, allocations: 29.31 kB / 432.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.3288, allocations: 263.8 kB / 433.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.3288, allocations: 13.47 kB / 433.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.588e-05/0.3288, allocations: 28.92 kB / 433.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004156/0.3292, allocations: 238.4 kB / 433.5 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.3293, allocations: 9.797 kB / 433.5 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.189e-05/0.3293, allocations: 9.938 kB / 433.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.3293, allocations: 6.062 kB / 433.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003255/0.3296, allocations: 142.5 kB / 433.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.3307, allocations: 1.049 MB / 434.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004096/0.3311, allocations: 205.4 kB / 434.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.3313, allocations: 66.14 kB / 434.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.3313, allocations: 5.688 kB / 435 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.494e-05/0.3313, allocations: 35.73 kB / 435 MB, free: 10.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.873e-06/0.3313, allocations: 0.7969 kB / 435 MB, free: 10.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.000502/0.3318, allocations: 202.7 kB / 435.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/0.3318, allocations: 136 kB / 435.3 MB, free: 9.918 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.332, allocations: 189.9 kB / 435.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.332, allocations: 28.95 kB / 435.5 MB, free: 9.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.415e-05/0.332, allocations: 165.6 kB / 435.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.529e-05/0.3321, allocations: 68.83 kB / 435.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.873e-05/0.3321, allocations: 50.81 kB / 435.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.179e-05/0.3322, allocations: 329.9 kB / 436.1 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.3323, allocations: 63.86 kB / 436.2 MB, free: 9.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001602/0.3325, allocations: 164 kB / 436.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002953/0.3328, allocations: 238.3 kB / 436.6 MB, free: 9.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.3328, allocations: 1.125 kB / 436.6 MB, free: 9.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004205/0.3332, allocations: 256.7 kB / 436.8 MB, free: 8.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3332, allocations: 6.656 kB / 436.8 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.3332, allocations: 4.062 kB / 436.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.3332, allocations: 9.75 kB / 436.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002564/0.3335, allocations: 74.61 kB / 436.9 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.3335, allocations: 6.297 kB / 436.9 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.3337, allocations: 29.86 kB / 437 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.885e-05/0.3337, allocations: 9.844 kB / 437 MB, free: 8.961 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 8.617e-05/0.3338, allocations: 139.8 kB / 437.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.666e-05/0.3338, allocations: 22.31 kB / 437.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.384e-05/0.3339, allocations: 21.31 kB / 437.2 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3339, allocations: 3.75 kB / 437.2 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.3339, allocations: 11.39 kB / 437.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.3339, allocations: 2.906 kB / 437.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003971/0.3343, allocations: 271.6 kB / 437.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.3343, allocations: 1.031 kB / 437.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002653/0.3346, allocations: 57.69 kB / 437.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3346, allocations: 2.219 kB / 437.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.3346, allocations: 10.19 kB / 437.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.3346, allocations: 1.531 kB / 437.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3346, allocations: 2.062 kB / 437.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004673/0.3351, allocations: 0.5204 MB / 438 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.842e-05/0.3351, allocations: 98.42 kB / 438.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/0.3351, allocations: 6.094 kB / 438.1 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.3353, allocations: 9.531 kB / 438.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.138e-05/0.3354, allocations: 15.83 kB / 438.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.3354, allocations: 3.125 kB / 438.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.075e-05/0.3355, allocations: 145.8 kB / 438.3 MB, free: 7.973 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3355, allocations: 0 / 438.3 MB, free: 7.973 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004279/0.3359, allocations: 63.53 kB / 438.4 MB, free: 7.957 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.0001003/0.336, allocations: 111.4 kB / 438.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003521/0.3364, allocations: 155.7 kB / 438.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3364, allocations: 1.562 kB / 438.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001376/0.3365, allocations: 63.19 kB / 438.7 MB, free: 7.789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006451/0.3372, allocations: 66.86 kB / 438.8 MB, free: 7.773 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/0.3383, allocations: 0.8491 MB / 439.6 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001695/0.3385, allocations: 0.7461 MB / 440.4 MB, free: 6.441 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.888e-05/0.3385, allocations: 27.33 kB / 440.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3385, allocations: 0 / 440.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of Templates: time 0.005256/0.3438, allocations: 2.842 MB / 443.2 MB, free: 6.129 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 -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: 6.986852824920788] Failed to read output from testmodel.py, exit status != 0: 0.35174390696920455 0.36115297500000004 0.233570984 Calling exit ...