Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008462/0.0008462, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008342/0.0008342, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8552/0.8552, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.339e-05/1.503e-05, allocations: 5.094 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002097/0.002112, allocations: 2.149 MB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000971/0.003083, allocations: 0.7283 MB / 327.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.003188, allocations: 7.938 kB / 327.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.003307, allocations: 39.59 kB / 327.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002187/0.003525, allocations: 91.27 kB / 327.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002384/0.003764, allocations: 115.6 kB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002355/0.003999, allocations: 310.4 kB / 328 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.004119, allocations: 41.16 kB / 328 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.004245, allocations: 167.6 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.004345, allocations: 79.78 kB / 328.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.379e-05/0.004369, allocations: 20 kB / 328.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.178e-05/0.004391, allocations: 24 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.417e-05/0.004425, allocations: 55.75 kB / 328.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.785e-05/0.004483, allocations: 87.77 kB / 328.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002012/0.004684, allocations: 267.1 kB / 328.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.004687, allocations: 0 / 328.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.004689, allocations: 3.938 kB / 328.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.004694, allocations: 0 / 328.7 MB, free: 11.77 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.0005405/0.005234, allocations: 461.6 kB / 329.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.005271, allocations: 12.02 kB / 329.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.412e-05/0.005315, allocations: 58.73 kB / 329.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.767e-05/0.005353, allocations: 28.75 kB / 329.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002243/0.005577, allocations: 189.3 kB / 329.5 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.005593, allocations: 12.88 kB / 329.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.088e-05/0.005624, allocations: 24.38 kB / 329.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002782/0.005902, allocations: 236 kB / 329.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.005917, allocations: 4.141 kB / 329.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.005935, allocations: 16.12 kB / 329.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.005941, allocations: 8 kB / 329.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002032/0.006145, allocations: 147.8 kB / 329.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/0.007233, allocations: 0.9467 MB / 330.8 MB, free: 9.488 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002904/0.007523, allocations: 198.4 kB / 331 MB, free: 9.258 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.934e-05/0.007613, allocations: 75.42 kB / 331.1 MB, free: 9.172 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.007633, allocations: 0 / 331.1 MB, free: 9.172 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.00766, allocations: 38.56 kB / 331.1 MB, free: 9.125 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.402e-06/0.007662, allocations: 3.938 kB / 331.1 MB, free: 9.121 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004046/0.008066, allocations: 209.6 kB / 331.4 MB, free: 8.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.008126, allocations: 128.5 kB / 331.5 MB, free: 8.754 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.00827, allocations: 198.9 kB / 331.7 MB, free: 8.547 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.008287, allocations: 33.7 kB / 331.7 MB, free: 8.508 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.968e-05/0.008377, allocations: 164.2 kB / 331.9 MB, free: 8.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.405e-05/0.008421, allocations: 75.41 kB / 331.9 MB, free: 8.266 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.301e-05/0.008474, allocations: 45.7 kB / 332 MB, free: 8.215 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.00858, allocations: 330.8 kB / 332.3 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.33e-05/0.008674, allocations: 55.97 kB / 332.4 MB, free: 7.828 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.008815, allocations: 165.6 kB / 332.5 MB, free: 7.617 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00024/0.009055, allocations: 233.5 kB / 332.7 MB, free: 7.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.009059, allocations: 3.938 kB / 332.8 MB, free: 7.336 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003099/0.009369, allocations: 261.2 kB / 333 MB, free: 7.074 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.009386, allocations: 8 kB / 333 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.009396, allocations: 4 kB / 333 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.009413, allocations: 7.938 kB / 333 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.009588, allocations: 67.91 kB / 333.1 MB, free: 6.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.009601, allocations: 11.97 kB / 333.1 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.773e-05/0.009679, allocations: 27.83 kB / 333.1 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.009694, allocations: 8.281 kB / 333.1 MB, free: 6.941 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.827e-05/0.009782, allocations: 145.7 kB / 333.3 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.026e-05/0.009832, allocations: 23.86 kB / 333.3 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.333e-05/0.009865, allocations: 21.02 kB / 333.3 MB, free: 6.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.00987, allocations: 7.938 kB / 333.3 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.009875, allocations: 0 / 333.3 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.009878, allocations: 256 / 333.3 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002721/0.01015, allocations: 228.6 kB / 333.6 MB, free: 6.477 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.01015, allocations: 8 kB / 333.6 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001418/0.01029, allocations: 47.97 kB / 333.6 MB, free: 6.422 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.0103, allocations: 0 / 333.6 MB, free: 6.422 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.01031, allocations: 12 kB / 333.6 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.01031, allocations: 3.938 kB / 333.6 MB, free: 6.406 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.01031, allocations: 4 kB / 333.6 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003574/0.01067, allocations: 0.519 MB / 334.2 MB, free: 5.867 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.099e-05/0.01069, allocations: 19.86 kB / 334.2 MB, free: 5.848 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.01071, allocations: 11.94 kB / 334.2 MB, free: 5.836 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.01084, allocations: 11.98 kB / 334.2 MB, free: 5.824 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.742e-05/0.01087, allocations: 7.984 kB / 334.2 MB, free: 5.816 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.134e-06/0.01088, allocations: 7.984 kB / 334.2 MB, free: 5.809 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.861e-05/0.01096, allocations: 148.2 kB / 334.4 MB, free: 5.664 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01096, allocations: 0 / 334.4 MB, free: 5.664 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002792/0.01124, allocations: 63.83 kB / 334.4 MB, free: 5.602 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.0006059/0.01184, allocations: 1.076 MB / 335.5 MB, free: 4.496 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00025/0.01209, allocations: 144.7 kB / 335.6 MB, free: 4.355 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.0121, allocations: 4 kB / 335.6 MB, free: 4.352 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.48e-05/0.01218, allocations: 60.19 kB / 335.7 MB, free: 4.293 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000479/0.01266, allocations: 63.44 kB / 335.8 MB, free: 4.234 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00262/0.01528, allocations: 2.896 MB / 338.7 MB, free: 1.141 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001059/0.01538, allocations: 142.1 kB / 338.8 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.81e-05/0.01545, allocations: 26.28 kB / 338.8 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.742e-05/0.01554, allocations: 72.47 kB / 338.9 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01554, allocations: 0 / 338.9 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01745/0.03299, allocations: 5.559 MB / 344.4 MB, free: 11.49 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.881/6.914, allocations: 3.094 kB / 344.5 MB, free: 11.49 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 8.750920366495848] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia1.w', 'inertia2.w', 'inertia3.w', 'inertia4.w'] 6.995083024725318 7.010598767 7.003184539 Calling exit ...