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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001409/0.001409, allocations: 121.7 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.00148/0.00148, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.417/1.417, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB 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.00221/0.00221, allocations: 67.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2989, allocations: 50.55 MB / 409.1 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003734/0.3026, allocations: 2.28 MB / 411.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001538/0.3042, allocations: 0.7556 MB / 412.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.3044, allocations: 7.938 kB / 412.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.3046, allocations: 31.66 kB / 412.1 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000282/0.3049, allocations: 91.25 kB / 412.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003309/0.3052, allocations: 107.8 kB / 412.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003513/0.3056, allocations: 294.6 kB / 412.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.3057, allocations: 64.36 kB / 412.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001254/0.3059, allocations: 103.6 kB / 412.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000181/0.3061, allocations: 127.5 kB / 412.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.55e-05/0.3061, allocations: 20 kB / 412.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.237e-05/0.3062, allocations: 20 kB / 412.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.287e-05/0.3062, allocations: 55.77 kB / 413 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.3064, allocations: 115.4 kB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003194/0.3067, allocations: 273.8 kB / 413.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3067, allocations: 0 / 413.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3067, allocations: 0 / 413.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.3067, allocations: 0 / 413.4 MB, free: 13.05 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.0008248/0.3076, allocations: 0.526 MB / 413.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.3076, allocations: 8.031 kB / 413.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.776e-05/0.3077, allocations: 66.66 kB / 414 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.491e-05/0.3077, allocations: 28.75 kB / 414 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003966/0.3081, allocations: 252 kB / 414.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.3082, allocations: 20.81 kB / 414.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.404e-05/0.3082, allocations: 20.38 kB / 414.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004728/0.3087, allocations: 246.8 kB / 414.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.3087, allocations: 3.953 kB / 414.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.3088, allocations: 12 kB / 414.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.3088, allocations: 4 kB / 414.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003416/0.3091, allocations: 139.8 kB / 414.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00153/0.3107, allocations: 1.061 MB / 415.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004937/0.3112, allocations: 214.4 kB / 416 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.3113, allocations: 67.48 kB / 416 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.3114, allocations: 4 kB / 416 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.958e-05/0.3114, allocations: 46.44 kB / 416.1 MB, free: 10.1 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 2.044e-06/0.3114, allocations: 0 / 416.1 MB, free: 10.1 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006024/0.312, allocations: 189.4 kB / 416.3 MB, free: 9.906 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.453e-05/0.3121, allocations: 136.5 kB / 416.4 MB, free: 9.742 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.3124, allocations: 186.8 kB / 416.6 MB, free: 9.547 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.3124, allocations: 33.7 kB / 416.6 MB, free: 9.508 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.3125, allocations: 172.1 kB / 416.8 MB, free: 9.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.695e-05/0.3126, allocations: 63.44 kB / 416.8 MB, free: 9.273 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.685e-05/0.3127, allocations: 53.66 kB / 416.9 MB, free: 9.215 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3129, allocations: 330.8 kB / 417.2 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.313, allocations: 51.97 kB / 417.3 MB, free: 8.832 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.3133, allocations: 169.6 kB / 417.4 MB, free: 8.617 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003829/0.3137, allocations: 229.5 kB / 417.7 MB, free: 8.344 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3137, allocations: 3.938 kB / 417.7 MB, free: 8.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004966/0.3142, allocations: 261.2 kB / 417.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.3142, allocations: 11.94 kB / 417.9 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3142, allocations: 4 kB / 417.9 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.3143, allocations: 4.75 kB / 417.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002723/0.3145, allocations: 71.84 kB / 418 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.3146, allocations: 4 kB / 418 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001566/0.3147, allocations: 36.11 kB / 418 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.139e-05/0.3148, allocations: 12 kB / 418.1 MB, free: 7.938 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.0001331/0.3149, allocations: 137.8 kB / 418.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-05/0.315, allocations: 19.84 kB / 418.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.629e-05/0.315, allocations: 24.92 kB / 418.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3151, allocations: 0 / 418.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.3151, allocations: 4 kB / 418.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.3151, allocations: 3.984 kB / 418.2 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004468/0.3155, allocations: 277.4 kB / 418.5 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3155, allocations: 3.984 kB / 418.5 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.3158, allocations: 59.91 kB / 418.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.3158, allocations: 3.938 kB / 418.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.3159, allocations: 8 kB / 418.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.3159, allocations: 0 / 418.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3159, allocations: 0 / 418.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006365/0.3165, allocations: 0.5275 MB / 419.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.818e-05/0.3166, allocations: 96.89 kB / 419.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.177e-05/0.3166, allocations: 4.25 kB / 419.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.3169, allocations: 11.98 kB / 419.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.877e-05/0.3169, allocations: 11.98 kB / 419.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.3169, allocations: 8 kB / 419.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001262/0.3171, allocations: 140.9 kB / 419.4 MB, free: 6.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3171, allocations: 8 kB / 419.4 MB, free: 6.508 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004414/0.3175, allocations: 63.84 kB / 419.5 MB, free: 6.445 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.000974/0.3185, allocations: 1.065 MB / 420.5 MB, free: 5.352 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000384/0.3189, allocations: 159.9 kB / 420.7 MB, free: 5.195 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3189, allocations: 0 / 420.7 MB, free: 5.195 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001561/0.3191, allocations: 68.59 kB / 420.7 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006653/0.3197, allocations: 52.84 kB / 420.8 MB, free: 5.082 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003985/0.3237, allocations: 3.072 MB / 423.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004499/0.3242, allocations: 0.748 MB / 424.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001246/0.3243, allocations: 30.22 kB / 424.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.3245, allocations: 67.42 kB / 424.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3245, allocations: 0 / 424.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0295/0.354, allocations: 4.69 MB / 429.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.332/8.686, allocations: 15.81 kB / 429.4 MB, free: 12.41 MB / 350.1 MB (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)