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.001842/0.001842, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.002225/0.002225, allocations: 213.7 kB / 24.54 MB, free: 4.016 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.422/1.422, allocations: 230.6 MB / 258.3 MB, free: 8.062 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) [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.001954/0.001954, allocations: 60.77 kB / 378.5 MB, free: 3.207 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2507, allocations: 53.37 MB / 431.9 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003767/0.2544, allocations: 2.3 MB / 434.2 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.256, allocations: 0.7751 MB / 435 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.2561, allocations: 11.88 kB / 435 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001863/0.2563, allocations: 35.66 kB / 435 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002899/0.2566, allocations: 95.31 kB / 435.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003413/0.2569, allocations: 107.7 kB / 435.2 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003567/0.2573, allocations: 294.6 kB / 435.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.2574, allocations: 48.56 kB / 435.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.2576, allocations: 107.6 kB / 435.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001809/0.2578, allocations: 127.5 kB / 435.8 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.335e-05/0.2578, allocations: 20 kB / 435.8 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.946e-05/0.2578, allocations: 20 kB / 435.8 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.82e-05/0.2579, allocations: 47.77 kB / 435.9 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.258, allocations: 131.3 kB / 436 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003172/0.2583, allocations: 259.7 kB / 436.3 MB, free: 2.566 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.2584, allocations: 3.984 kB / 436.3 MB, free: 2.562 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2584, allocations: 0 / 436.3 MB, free: 2.562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.2584, allocations: 0 / 436.3 MB, free: 2.562 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.0007978/0.2592, allocations: 465.5 kB / 436.7 MB, free: 2.078 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.2592, allocations: 8.031 kB / 436.7 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.888e-05/0.2593, allocations: 54.73 kB / 436.8 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.38e-05/0.2593, allocations: 32.75 kB / 436.8 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003722/0.2597, allocations: 198.1 kB / 437 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.779e-05/0.2597, allocations: 20.75 kB / 437 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.99e-05/0.2598, allocations: 28.36 kB / 437.1 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004326/0.2602, allocations: 230.8 kB / 437.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.2602, allocations: 11.95 kB / 437.3 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.2602, allocations: 8 kB / 437.3 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.2603, allocations: 8 kB / 437.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003384/0.2606, allocations: 139.8 kB / 437.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001449/0.262, allocations: 0.9931 MB / 438.4 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004631/0.2625, allocations: 202.4 kB / 438.6 MB, free: 0 / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.2627, allocations: 59.58 kB / 438.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.2627, allocations: 7.984 kB / 438.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.2627, allocations: 42.44 kB / 438.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 3.346e-06/0.2627, allocations: 8 kB / 438.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005884/0.2633, allocations: 190.1 kB / 438.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.935e-05/0.2634, allocations: 128.5 kB / 439.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/0.2636, allocations: 199.1 kB / 439.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.2636, allocations: 29.7 kB / 439.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.2638, allocations: 168.2 kB / 439.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.872e-05/0.2638, allocations: 63.44 kB / 439.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-05/0.2639, allocations: 53.66 kB / 439.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.2641, allocations: 342.7 kB / 439.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/0.2642, allocations: 55.95 kB / 440 MB, free: 14.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.2645, allocations: 161.6 kB / 440.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003838/0.2648, allocations: 233.5 kB / 440.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.2648, allocations: 0 / 440.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004911/0.2653, allocations: 257.6 kB / 440.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.2654, allocations: 23.05 kB / 440.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.2654, allocations: 4 kB / 440.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.2654, allocations: 4 kB / 440.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002669/0.2657, allocations: 67.91 kB / 440.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.2657, allocations: 8 kB / 440.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001487/0.2658, allocations: 27.78 kB / 440.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.281e-05/0.2658, allocations: 16.23 kB / 440.7 MB, free: 13.69 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.266, allocations: 133.8 kB / 440.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.832e-05/0.2661, allocations: 23.84 kB / 440.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.838e-05/0.2661, allocations: 25.02 kB / 440.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.2661, allocations: 4 kB / 440.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.739e-06/0.2661, allocations: 4 kB / 440.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2661, allocations: 0 / 440.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004556/0.2666, allocations: 256.4 kB / 441.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2666, allocations: 0 / 441.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002775/0.2669, allocations: 47.97 kB / 441.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.2669, allocations: 3.938 kB / 441.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.2669, allocations: 11.98 kB / 441.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.2669, allocations: 4 kB / 441.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.2669, allocations: 4 kB / 441.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000628/0.2675, allocations: 0.5176 MB / 441.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.634e-05/0.2676, allocations: 23.95 kB / 441.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.059e-05/0.2676, allocations: 4 kB / 441.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.2678, allocations: 8 kB / 441.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.229e-05/0.2678, allocations: 15.97 kB / 441.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.2679, allocations: 8 kB / 441.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001286/0.268, allocations: 136.5 kB / 442 MB, free: 12.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.268, allocations: 3.938 kB / 442 MB, free: 12.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004385/0.2684, allocations: 67.84 kB / 442 MB, free: 12.34 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.0009398/0.2694, allocations: 1.061 MB / 443.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000389/0.2698, allocations: 159.8 kB / 443.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2698, allocations: 0 / 443.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000163/0.2699, allocations: 67.91 kB / 443.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006627/0.2706, allocations: 48.58 kB / 443.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004048/0.2746, allocations: 3.069 MB / 446.4 MB, free: 7.727 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004367/0.2751, allocations: 0.748 MB / 447.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.2752, allocations: 22.28 kB / 447.2 MB, free: 6.934 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.2753, allocations: 75.41 kB / 447.3 MB, free: 6.863 MB / 350.1 MB Notification: Performance of SimCode: time 8.61e-07/0.2753, allocations: 0 / 447.3 MB, free: 6.863 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02953/0.3048, allocations: 4.862 MB / 452.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.208/8.513, allocations: 3.75 kB / 452.1 MB, free: 2.109 MB / 350.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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-beta_om_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.984853812959045] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia1.w', 'inertia2.w', 'inertia3.w', 'inertia4.w'] 8.584550214000046 8.601424427 8.339664505 Calling exit ...