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.001577/0.001577, allocations: 119.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.001715/0.001715, allocations: 206.8 kB / 24.46 MB, free: 3.902 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.434/1.434, allocations: 230.5 MB / 258.1 MB, free: 8.141 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.002899/0.002899, allocations: 71.83 kB / 378.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.3028, allocations: 53.33 MB / 432 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003847/0.3066, allocations: 2.303 MB / 434.3 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.3081, allocations: 0.7634 MB / 435.1 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.3082, allocations: 4 kB / 435.1 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001619/0.3083, allocations: 39.59 kB / 435.2 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002904/0.3086, allocations: 91.31 kB / 435.2 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003421/0.309, allocations: 111.7 kB / 435.4 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003628/0.3093, allocations: 294.7 kB / 435.6 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001615/0.3095, allocations: 40.39 kB / 435.7 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.3096, allocations: 111.6 kB / 435.8 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.3098, allocations: 127.4 kB / 435.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.325e-05/0.3098, allocations: 20 kB / 435.9 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.102e-05/0.3099, allocations: 20 kB / 436 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.044e-05/0.3099, allocations: 47.84 kB / 436 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.3101, allocations: 127.3 kB / 436.1 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003258/0.3104, allocations: 268.4 kB / 436.4 MB, free: 3.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3104, allocations: 0 / 436.4 MB, free: 3.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.614e-06/0.3104, allocations: 0 / 436.4 MB, free: 3.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.3104, allocations: 0 / 436.4 MB, free: 3.023 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.000859/0.3113, allocations: 0.526 MB / 436.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.3113, allocations: 15.97 kB / 436.9 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.908e-05/0.3114, allocations: 32.73 kB / 437 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.3118, allocations: 260.4 kB / 437.2 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.3118, allocations: 16.81 kB / 437.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.487e-05/0.3119, allocations: 24.38 kB / 437.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004251/0.3123, allocations: 235 kB / 437.5 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.525e-05/0.3123, allocations: 11.95 kB / 437.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.248e-05/0.3123, allocations: 11.94 kB / 437.5 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.3123, allocations: 4 kB / 437.5 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003325/0.3127, allocations: 139.9 kB / 437.6 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001453/0.3141, allocations: 1.053 MB / 438.7 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004616/0.3146, allocations: 206.4 kB / 438.9 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.3147, allocations: 67.44 kB / 439 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.3148, allocations: 4 kB / 439 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/0.3148, allocations: 46.55 kB / 439 MB, free: 144 kB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.252e-06/0.3148, allocations: 0 / 439 MB, free: 144 kB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005861/0.3154, allocations: 197.3 kB / 439.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.421e-05/0.3155, allocations: 128.5 kB / 439.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.3157, allocations: 199.1 kB / 439.5 MB, free: 15.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.3157, allocations: 29.7 kB / 439.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.3158, allocations: 164.2 kB / 439.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.343e-05/0.3159, allocations: 71.41 kB / 439.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.003e-05/0.316, allocations: 53.66 kB / 439.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.3161, allocations: 330.8 kB / 440.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001459/0.3163, allocations: 51.97 kB / 440.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002255/0.3165, allocations: 173.6 kB / 440.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003778/0.3169, allocations: 229.5 kB / 440.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3169, allocations: 0 / 440.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004894/0.3174, allocations: 265.3 kB / 440.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.3174, allocations: 11.94 kB / 440.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.3174, allocations: 4 kB / 440.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.3174, allocations: 7.984 kB / 440.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002702/0.3177, allocations: 67.91 kB / 441 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.3177, allocations: 4 kB / 441 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.3178, allocations: 27.84 kB / 441 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.3179, allocations: 12.27 kB / 441 MB, free: 13.98 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.0001348/0.318, allocations: 149.7 kB / 441.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.58e-05/0.3181, allocations: 23.84 kB / 441.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.202e-05/0.3181, allocations: 16.94 kB / 441.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.3181, allocations: 3.984 kB / 441.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3181, allocations: 4 kB / 441.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3182, allocations: 0 / 441.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004576/0.3186, allocations: 273.4 kB / 441.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.3186, allocations: 4 kB / 441.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002718/0.3189, allocations: 51.97 kB / 441.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.573e-06/0.3189, allocations: 3.938 kB / 441.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.3189, allocations: 11.98 kB / 441.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3189, allocations: 0 / 441.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.3189, allocations: 7.938 kB / 441.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006312/0.3196, allocations: 0.5175 MB / 442.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.089e-05/0.3196, allocations: 100.9 kB / 442.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.111e-05/0.3197, allocations: 4 kB / 442.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.3199, allocations: 8 kB / 442.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.681e-05/0.3199, allocations: 15.97 kB / 442.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.3199, allocations: 4 kB / 442.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000137/0.3201, allocations: 148.2 kB / 442.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3201, allocations: 0 / 442.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000427/0.3205, allocations: 67.84 kB / 442.4 MB, free: 12.48 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.0001286/0.3206, allocations: 103.2 kB / 442.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003935/0.321, allocations: 152.4 kB / 442.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.321, allocations: 0.75 kB / 442.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001568/0.3212, allocations: 67.84 kB / 442.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006612/0.3218, allocations: 64.11 kB / 442.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/0.3233, allocations: 0.8502 MB / 443.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/0.3237, allocations: 0.748 MB / 444.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.376e-05/0.3237, allocations: 23.42 kB / 444.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3237, allocations: 0 / 444.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of Templates: time 0.005039/0.3288, allocations: 2.841 MB / 447.2 MB, free: 7.566 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.948323714081198] Failed to read output from testmodel.py, exit status != 0: 0.33918751263991 0.35057221600000005 0.037373807 Calling exit ...