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.001603/0.001603, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002013/0.002013, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 55.38 kB / 307 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09256/0.09371, allocations: 50.53 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003511/0.09726, allocations: 2.274 MB / 359.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.09855, allocations: 0.7712 MB / 360.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.0987, allocations: 4 kB / 360.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.09888, allocations: 39.59 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002836/0.09917, allocations: 75.33 kB / 360.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003525/0.09954, allocations: 111.7 kB / 360.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003402/0.09989, allocations: 290.7 kB / 361.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.1001, allocations: 72.33 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.1002, allocations: 111.5 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.1004, allocations: 119.5 kB / 361.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.755e-05/0.1004, allocations: 20 kB / 361.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.329e-05/0.1005, allocations: 20 kB / 361.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.894e-05/0.1005, allocations: 47.83 kB / 361.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.1007, allocations: 135.3 kB / 361.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002764/0.101, allocations: 259.3 kB / 361.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.101, allocations: 0 / 361.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.101, allocations: 4 kB / 361.9 MB, free: 9.617 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.101, allocations: 0 / 361.9 MB, free: 9.617 MB / 302.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.0007829/0.1018, allocations: 0.5146 MB / 362.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.1018, allocations: 12.03 kB / 362.4 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.588e-05/0.1019, allocations: 50.73 kB / 362.5 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.377e-05/0.102, allocations: 32.56 kB / 362.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002973/0.1023, allocations: 251.9 kB / 362.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.1023, allocations: 20.75 kB / 362.8 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.424e-05/0.1024, allocations: 28.28 kB / 362.8 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004115/0.1028, allocations: 234.8 kB / 363 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.1028, allocations: 3.984 kB / 363 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.159e-05/0.1029, allocations: 12 kB / 363 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.1029, allocations: 7.984 kB / 363.1 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003276/0.1032, allocations: 139.8 kB / 363.2 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.1045, allocations: 1.056 MB / 364.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000444/0.105, allocations: 210.4 kB / 364.5 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.1051, allocations: 67.45 kB / 364.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.1051, allocations: 0 / 364.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.1052, allocations: 50.42 kB / 364.6 MB, free: 6.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.172e-06/0.1052, allocations: 4 kB / 364.6 MB, free: 6.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005706/0.1058, allocations: 189.3 kB / 364.8 MB, free: 6.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.86e-05/0.1059, allocations: 136.5 kB / 364.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.1061, allocations: 194.5 kB / 365.1 MB, free: 6.121 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.1061, allocations: 25.7 kB / 365.1 MB, free: 6.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.1062, allocations: 163.9 kB / 365.3 MB, free: 5.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.646e-05/0.1063, allocations: 67 kB / 365.3 MB, free: 5.859 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.635e-05/0.1064, allocations: 57.69 kB / 365.4 MB, free: 5.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1065, allocations: 330.8 kB / 365.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.1067, allocations: 55.95 kB / 365.8 MB, free: 5.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002042/0.1069, allocations: 157.7 kB / 365.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003517/0.1072, allocations: 249.4 kB / 366.2 MB, free: 4.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.1072, allocations: 4 kB / 366.2 MB, free: 4.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004488/0.1077, allocations: 249.7 kB / 366.4 MB, free: 4.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1077, allocations: 14.78 kB / 366.4 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.1077, allocations: 4 kB / 366.4 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.1078, allocations: 12 kB / 366.4 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.108, allocations: 63.91 kB / 366.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.1081, allocations: 11.92 kB / 366.5 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/0.1082, allocations: 27.69 kB / 366.5 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.1082, allocations: 16 kB / 366.6 MB, free: 4.516 MB / 302.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.0001089/0.1084, allocations: 138.8 kB / 366.7 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.04e-05/0.1084, allocations: 23.75 kB / 366.7 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.404e-05/0.1085, allocations: 24.92 kB / 366.7 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.1085, allocations: 4 kB / 366.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1085, allocations: 0 / 366.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.1085, allocations: 4 kB / 366.7 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004247/0.109, allocations: 273.4 kB / 367 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.109, allocations: 0 / 367 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002762/0.1093, allocations: 55.91 kB / 367.1 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.1093, allocations: 11.88 kB / 367.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.1093, allocations: 0 / 367.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.1093, allocations: 4 kB / 367.1 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1093, allocations: 4 kB / 367.1 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005763/0.1099, allocations: 0.5261 MB / 367.6 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.498e-05/0.11, allocations: 96.86 kB / 367.7 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.137e-05/0.11, allocations: 8 kB / 367.7 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002114/0.1102, allocations: 7.984 kB / 367.7 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.167e-05/0.1103, allocations: 16.73 kB / 367.7 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.1103, allocations: 4 kB / 367.7 MB, free: 3.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000131/0.1104, allocations: 140.9 kB / 367.9 MB, free: 3.102 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1104, allocations: 0 / 367.9 MB, free: 3.102 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004322/0.1109, allocations: 63.84 kB / 367.9 MB, free: 3.039 MB / 302.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.0008294/0.1117, allocations: 1.069 MB / 369 MB, free: 1.938 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003786/0.1121, allocations: 160.3 kB / 369.2 MB, free: 1.781 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.1121, allocations: 0 / 369.2 MB, free: 1.781 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001542/0.1123, allocations: 71.84 kB / 369.2 MB, free: 1.711 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007463/0.113, allocations: 54.5 kB / 369.3 MB, free: 1.664 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1569/0.2699, allocations: 3.057 MB / 372.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.2702, allocations: 0.7486 MB / 373.1 MB, free: 17.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001599/0.2704, allocations: 23.36 kB / 373.1 MB, free: 17.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.2705, allocations: 70.27 kB / 373.2 MB, free: 17.84 MB / 302.1 MB Notification: Performance of SimCode: time 1.372e-06/0.2705, allocations: 1.312 kB / 373.2 MB, free: 17.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.2968, allocations: 4.576 MB / 377.8 MB, free: 17.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.542/7.838, allocations: 8.172 kB / 377.8 MB, free: 17.36 MB / 302.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)