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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001308/0.001308, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001362/0.001362, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 68.11 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2466, allocations: 50.54 MB / 408.8 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003666/0.2503, allocations: 2.279 MB / 411 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001402/0.2517, allocations: 0.7556 MB / 411.8 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.2519, allocations: 4 kB / 411.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.252, allocations: 39.59 kB / 411.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002661/0.2523, allocations: 83.33 kB / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003276/0.2527, allocations: 115.7 kB / 412 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003402/0.253, allocations: 294.7 kB / 412.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.2532, allocations: 60.38 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.2533, allocations: 111.5 kB / 412.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001803/0.2535, allocations: 123.5 kB / 412.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.184e-05/0.2535, allocations: 16 kB / 412.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.582e-05/0.2536, allocations: 20 kB / 412.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.837e-05/0.2536, allocations: 43.84 kB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001287/0.2538, allocations: 135.3 kB / 412.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003109/0.2541, allocations: 261.8 kB / 413.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.2541, allocations: 3.984 kB / 413.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2541, allocations: 0 / 413.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.2541, allocations: 3.938 kB / 413.1 MB, free: 13.33 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.0008152/0.255, allocations: 0.5221 MB / 413.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.255, allocations: 12.03 kB / 413.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.485e-05/0.2551, allocations: 54.73 kB / 413.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.852e-05/0.2551, allocations: 32.75 kB / 413.7 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003561/0.2555, allocations: 256 kB / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.771e-05/0.2555, allocations: 20.81 kB / 414 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.738e-05/0.2556, allocations: 28.36 kB / 414 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004243/0.256, allocations: 238.8 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.2561, allocations: 11.95 kB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.2561, allocations: 4 kB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.2561, allocations: 8 kB / 414.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003373/0.2564, allocations: 143.8 kB / 414.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001486/0.2579, allocations: 1.053 MB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004635/0.2584, allocations: 210.3 kB / 415.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.2586, allocations: 71.47 kB / 415.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.2586, allocations: 4 kB / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.27e-05/0.2587, allocations: 42.44 kB / 415.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.754e-06/0.2587, allocations: 4 kB / 415.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005854/0.2593, allocations: 193.4 kB / 416 MB, free: 10.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.736e-05/0.2594, allocations: 136.5 kB / 416.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002096/0.2596, allocations: 190.8 kB / 416.3 MB, free: 9.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.2596, allocations: 29.7 kB / 416.3 MB, free: 9.785 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.2597, allocations: 160.2 kB / 416.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.459e-05/0.2598, allocations: 75.42 kB / 416.5 MB, free: 9.551 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.08e-05/0.2599, allocations: 49.66 kB / 416.6 MB, free: 9.496 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.2601, allocations: 330.8 kB / 416.9 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.2602, allocations: 51.97 kB / 417 MB, free: 9.113 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002341/0.2605, allocations: 165.7 kB / 417.1 MB, free: 8.902 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003841/0.2609, allocations: 237.5 kB / 417.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.2609, allocations: 7.938 kB / 417.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004842/0.2614, allocations: 253.6 kB / 417.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.2614, allocations: 7.938 kB / 417.6 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.2614, allocations: 4 kB / 417.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.2615, allocations: 8 kB / 417.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002713/0.2617, allocations: 67.89 kB / 417.7 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.782e-05/0.2618, allocations: 7.938 kB / 417.7 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.2619, allocations: 27.78 kB / 417.7 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.405e-05/0.2619, allocations: 16 kB / 417.7 MB, free: 8.223 MB / 334.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.0001367/0.2621, allocations: 137.8 kB / 417.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.347e-05/0.2622, allocations: 23.88 kB / 417.9 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.431e-05/0.2622, allocations: 20.94 kB / 417.9 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.2623, allocations: 7.938 kB / 417.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.2623, allocations: 0 / 417.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.2623, allocations: 7.984 kB / 417.9 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004825/0.2628, allocations: 269.4 kB / 418.2 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2628, allocations: 0 / 418.2 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002876/0.2631, allocations: 55.91 kB / 418.3 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.2631, allocations: 7.938 kB / 418.3 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.2631, allocations: 0 / 418.3 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.612e-06/0.2631, allocations: 12.23 kB / 418.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2631, allocations: 0 / 418.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006079/0.2637, allocations: 0.5213 MB / 418.8 MB, free: 7.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.213e-05/0.2638, allocations: 104.9 kB / 418.9 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.2639, allocations: 8 kB / 418.9 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.2641, allocations: 8 kB / 418.9 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.644e-05/0.2642, allocations: 11.98 kB / 418.9 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.2642, allocations: 7.984 kB / 418.9 MB, free: 6.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001349/0.2643, allocations: 140.9 kB / 419.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.2643, allocations: 0 / 419.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004617/0.2648, allocations: 63.84 kB / 419.1 MB, free: 6.734 MB / 334.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.000976/0.2658, allocations: 1.076 MB / 420.2 MB, free: 5.633 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003907/0.2662, allocations: 159.9 kB / 420.4 MB, free: 5.477 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2662, allocations: 0 / 420.4 MB, free: 5.477 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.2663, allocations: 63.91 kB / 420.4 MB, free: 5.414 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007387/0.2671, allocations: 64.17 kB / 420.5 MB, free: 5.355 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003924/0.271, allocations: 3.068 MB / 423.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003914/0.2715, allocations: 0.748 MB / 424.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001167/0.2716, allocations: 26.28 kB / 424.3 MB, free: 1.297 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.2717, allocations: 75.34 kB / 424.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2717, allocations: 0 / 424.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02822/0.2999, allocations: 4.675 MB / 429.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.212/8.512, allocations: 3.625 kB / 429.1 MB, free: 12.68 MB / 350.1 MB (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)