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.001563/0.001562, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001874/0.001874, allocations: 203.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2501, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003473/0.2536, allocations: 2.276 MB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.2551, allocations: 0.7595 MB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.2553, allocations: 4 kB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.2554, allocations: 39.59 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002817/0.2557, allocations: 91.31 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003519/0.2561, allocations: 115.7 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003454/0.2564, allocations: 290.7 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.2566, allocations: 64.38 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.2568, allocations: 115.5 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001639/0.257, allocations: 115.5 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.519e-05/0.257, allocations: 20 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.439e-05/0.257, allocations: 20 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.33e-05/0.2571, allocations: 51.83 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.2572, allocations: 123.3 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003267/0.2576, allocations: 273.8 kB / 413.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.2576, allocations: 4 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2576, allocations: 0 / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.2576, allocations: 3.938 kB / 413.1 MB, free: 13.18 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.0008169/0.2584, allocations: 0.5221 MB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.2585, allocations: 8.031 kB / 413.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.139e-05/0.2585, allocations: 58.72 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.165e-05/0.2586, allocations: 32.75 kB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004181/0.259, allocations: 260 kB / 414 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.259, allocations: 12.81 kB / 414 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.197e-05/0.2591, allocations: 20.38 kB / 414 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000449/0.2596, allocations: 242.8 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.2596, allocations: 7.953 kB / 414.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.633e-05/0.2596, allocations: 12 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.2596, allocations: 4 kB / 414.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003297/0.26, allocations: 143.8 kB / 414.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001353/0.2613, allocations: 1.057 MB / 415.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004336/0.2618, allocations: 214.3 kB / 415.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001308/0.2619, allocations: 59.5 kB / 415.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.262, allocations: 11.97 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.262, allocations: 42.44 kB / 415.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.493e-06/0.262, allocations: 0 / 415.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005631/0.2626, allocations: 198.2 kB / 416 MB, free: 10.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.422e-05/0.2627, allocations: 132.5 kB / 416.1 MB, free: 9.875 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001934/0.2629, allocations: 195.4 kB / 416.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.2629, allocations: 25.7 kB / 416.3 MB, free: 9.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.263, allocations: 168.1 kB / 416.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.677e-05/0.2631, allocations: 63.44 kB / 416.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.814e-05/0.2631, allocations: 61.66 kB / 416.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.2633, allocations: 330.8 kB / 416.9 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.2634, allocations: 55.97 kB / 417 MB, free: 8.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.2637, allocations: 161.7 kB / 417.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003565/0.264, allocations: 237.5 kB / 417.4 MB, free: 8.469 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.264, allocations: 0 / 417.4 MB, free: 8.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000451/0.2645, allocations: 249.4 kB / 417.6 MB, free: 8.219 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.2645, allocations: 16.3 kB / 417.6 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.2645, allocations: 8 kB / 417.6 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.2646, allocations: 8 kB / 417.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.2648, allocations: 67.91 kB / 417.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.2648, allocations: 11.94 kB / 417.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.265, allocations: 27.78 kB / 417.7 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.265, allocations: 19.98 kB / 417.8 MB, free: 8.062 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.0001181/0.2652, allocations: 133.7 kB / 417.9 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.084e-05/0.2653, allocations: 23.84 kB / 417.9 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.978e-05/0.2653, allocations: 28.92 kB / 418 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.2653, allocations: 7.938 kB / 418 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2653, allocations: 0 / 418 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.217e-06/0.2653, allocations: 0 / 418 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004399/0.2658, allocations: 269.4 kB / 418.2 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2658, allocations: 4 kB / 418.2 MB, free: 7.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000273/0.2661, allocations: 55.91 kB / 418.3 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.002e-06/0.2661, allocations: 7.922 kB / 418.3 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.2661, allocations: 4 kB / 418.3 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.2661, allocations: 0 / 418.3 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.2661, allocations: 8 kB / 418.3 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006093/0.2667, allocations: 0.5167 MB / 418.8 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.245e-05/0.2668, allocations: 96.89 kB / 418.9 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.307e-05/0.2669, allocations: 8 kB / 418.9 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.2671, allocations: 8 kB / 418.9 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.785e-05/0.2671, allocations: 15.97 kB / 418.9 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.2671, allocations: 4 kB / 418.9 MB, free: 6.785 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001186/0.2673, allocations: 144.2 kB / 419.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2673, allocations: 0 / 419.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004386/0.2677, allocations: 67.84 kB / 419.2 MB, free: 6.578 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.0008219/0.2686, allocations: 1.072 MB / 420.2 MB, free: 5.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003646/0.2689, allocations: 163.6 kB / 420.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2689, allocations: 0 / 420.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001445/0.2691, allocations: 63.89 kB / 420.4 MB, free: 5.262 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006627/0.2698, allocations: 56.83 kB / 420.5 MB, free: 5.207 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003635/0.2734, allocations: 3.064 MB / 423.6 MB, free: 1.953 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.2738, allocations: 0.748 MB / 424.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.2739, allocations: 22.28 kB / 424.3 MB, free: 1.156 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.274, allocations: 71.36 kB / 424.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of SimCode: time 8.62e-07/0.274, allocations: 4 kB / 424.4 MB, free: 1.086 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05246/0.3265, allocations: 4.681 MB / 429.1 MB, free: 12.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.036/8.363, allocations: 15.62 kB / 429.1 MB, free: 12.52 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)