Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.0008331/0.0008331, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008421/0.0008421, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8677/0.8677, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.098e-05/1.212e-05, allocations: 2.281 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002093/0.002105, allocations: 2.154 MB / 326.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009201/0.003025, allocations: 0.7245 MB / 327.4 MB, free: 13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.003135, allocations: 7.938 kB / 327.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001166/0.003251, allocations: 43.53 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002241/0.003475, allocations: 94.39 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002436/0.003719, allocations: 111.7 kB / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002369/0.003956, allocations: 310.4 kB / 327.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.004075, allocations: 44.55 kB / 328 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.004204, allocations: 159.6 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002473/0.004452, allocations: 95.69 kB / 328.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.004479, allocations: 20 kB / 328.2 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.432e-05/0.004504, allocations: 20 kB / 328.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.971e-05/0.004533, allocations: 47.83 kB / 328.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.802e-05/0.004591, allocations: 91.75 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001981/0.00479, allocations: 267.1 kB / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.004791, allocations: 0 / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.004792, allocations: 0 / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.004796, allocations: 0 / 328.7 MB, free: 11.71 MB / 298.7 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.0005223/0.005319, allocations: 461.5 kB / 329.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.005353, allocations: 11.98 kB / 329.1 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.654e-05/0.0054, allocations: 58.72 kB / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.246e-05/0.005442, allocations: 32.75 kB / 329.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002159/0.005658, allocations: 189.4 kB / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.005674, allocations: 12.88 kB / 329.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.894e-05/0.005703, allocations: 24.38 kB / 329.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00026/0.005963, allocations: 236 kB / 329.7 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.005977, allocations: 4.141 kB / 329.7 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.005994, allocations: 16.12 kB / 329.7 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.006, allocations: 4 kB / 329.7 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001952/0.006196, allocations: 147.8 kB / 329.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007951/0.006991, allocations: 0.9506 MB / 330.8 MB, free: 9.434 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002558/0.007247, allocations: 202.4 kB / 331 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.702e-05/0.007324, allocations: 71.48 kB / 331.1 MB, free: 9.117 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.445e-05/0.007338, allocations: 7.938 kB / 331.1 MB, free: 9.109 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.007358, allocations: 38.44 kB / 331.1 MB, free: 9.062 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.382e-06/0.00736, allocations: 4 kB / 331.1 MB, free: 9.059 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003245/0.007684, allocations: 205.3 kB / 331.3 MB, free: 8.852 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.007727, allocations: 128.5 kB / 331.4 MB, free: 8.695 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.007843, allocations: 198.9 kB / 331.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.007856, allocations: 29.7 kB / 331.7 MB, free: 8.453 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.815e-05/0.007924, allocations: 168.2 kB / 331.8 MB, free: 8.281 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.007958, allocations: 67.44 kB / 331.9 MB, free: 8.215 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.602e-05/0.008004, allocations: 45.7 kB / 331.9 MB, free: 8.164 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.719e-05/0.008081, allocations: 334.8 kB / 332.3 MB, free: 7.828 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.267e-05/0.008164, allocations: 55.97 kB / 332.3 MB, free: 7.773 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.008289, allocations: 169.6 kB / 332.5 MB, free: 7.559 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002097/0.008499, allocations: 225.5 kB / 332.7 MB, free: 7.289 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.008501, allocations: 0 / 332.7 MB, free: 7.289 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002671/0.008768, allocations: 265.5 kB / 333 MB, free: 7.023 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.00878, allocations: 8 kB / 333 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.008786, allocations: 4 kB / 333 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.0088, allocations: 7.938 kB / 333 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.008944, allocations: 71.84 kB / 333 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.008952, allocations: 8 kB / 333.1 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.432e-05/0.009027, allocations: 27.81 kB / 333.1 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.312e-05/0.00904, allocations: 12 kB / 333.1 MB, free: 6.887 MB / 298.7 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.097e-05/0.009121, allocations: 138 kB / 333.2 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.236e-05/0.009173, allocations: 23.86 kB / 333.2 MB, free: 6.719 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.188e-05/0.009205, allocations: 21.02 kB / 333.3 MB, free: 6.703 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.00921, allocations: 8.688 kB / 333.3 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.009214, allocations: 0 / 333.3 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.009217, allocations: 0 / 333.3 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002809/0.009498, allocations: 228.6 kB / 333.5 MB, free: 6.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.009501, allocations: 3.984 kB / 333.5 MB, free: 6.426 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.009647, allocations: 51.91 kB / 333.6 MB, free: 6.375 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.009649, allocations: 0 / 333.6 MB, free: 6.375 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.009661, allocations: 8 kB / 333.6 MB, free: 6.367 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.009665, allocations: 11.94 kB / 333.6 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.009666, allocations: 0 / 333.6 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003651/0.01003, allocations: 0.5312 MB / 334.1 MB, free: 5.809 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.123e-05/0.01005, allocations: 15.86 kB / 334.1 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.01007, allocations: 11.94 kB / 334.1 MB, free: 5.781 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.0102, allocations: 11.98 kB / 334.1 MB, free: 5.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.605e-05/0.01023, allocations: 7.984 kB / 334.2 MB, free: 5.762 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.01024, allocations: 4 kB / 334.2 MB, free: 5.758 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.69e-05/0.01031, allocations: 148.2 kB / 334.3 MB, free: 5.613 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01032, allocations: 8 kB / 334.3 MB, free: 5.605 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002915/0.01061, allocations: 55.89 kB / 334.4 MB, free: 5.551 MB / 298.7 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.0004972/0.0111, allocations: 1.066 MB / 335.4 MB, free: 4.453 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002211/0.01132, allocations: 152.9 kB / 335.6 MB, free: 4.305 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.01133, allocations: 4 kB / 335.6 MB, free: 4.301 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.989e-05/0.01141, allocations: 63.84 kB / 335.6 MB, free: 4.238 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.01183, allocations: 63.95 kB / 335.7 MB, free: 4.176 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.01408, allocations: 2.896 MB / 338.6 MB, free: 1.078 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.753e-05/0.01418, allocations: 142.1 kB / 338.7 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.882e-05/0.01425, allocations: 26.28 kB / 338.8 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.724e-05/0.01432, allocations: 72.47 kB / 338.8 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01432, allocations: 0 / 338.8 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01702/0.03134, allocations: 5.558 MB / 344.4 MB, free: 11.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.858/6.89, allocations: 7.844 kB / 344.4 MB, free: 11.4 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 8.662915851920843] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia1.w', 'inertia2.w', 'inertia3.w', 'inertia4.w'] 6.9694465957582 6.977137251 6.970779599 Calling exit ...