Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.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.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001695/0.001695, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001935/0.001936, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.53/1.53, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 59.94 kB / 307 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.104, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.003685/0.1077, allocations: 2.354 MB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.1092, allocations: 0.7713 MB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002167/0.1095, allocations: 4 kB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000159/0.1097, allocations: 43.58 kB / 360.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000363/0.11, allocations: 79.27 kB / 360.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003572/0.1104, allocations: 115.7 kB / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003888/0.1108, allocations: 294.7 kB / 361.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.111, allocations: 76.67 kB / 361.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.1111, allocations: 107.5 kB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002018/0.1113, allocations: 127.4 kB / 361.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.523e-05/0.1114, allocations: 20 kB / 361.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.414e-05/0.1115, allocations: 20 kB / 361.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.055e-05/0.1115, allocations: 51.78 kB / 361.6 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001858/0.1117, allocations: 139.3 kB / 361.8 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003219/0.112, allocations: 263.2 kB / 362 MB, free: 9.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1121, allocations: 0 / 362 MB, free: 9.562 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1121, allocations: 4 kB / 362 MB, free: 9.559 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.298e-06/0.1121, allocations: 0 / 362 MB, free: 9.559 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.001051/0.1131, allocations: 0.5534 MB / 362.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.1132, allocations: 12.03 kB / 362.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.42e-05/0.1133, allocations: 58.72 kB / 362.6 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.925e-05/0.1134, allocations: 32.56 kB / 362.7 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.1138, allocations: 261.5 kB / 362.9 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.325e-05/0.1138, allocations: 16.81 kB / 362.9 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5e-05/0.1138, allocations: 20.38 kB / 363 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004329/0.1143, allocations: 238.8 kB / 363.2 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.528e-05/0.1143, allocations: 15.89 kB / 363.2 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/0.1144, allocations: 8 kB / 363.2 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.1144, allocations: 7.984 kB / 363.2 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004176/0.1148, allocations: 163.8 kB / 363.4 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.1161, allocations: 1.001 MB / 364.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005637/0.1167, allocations: 298 kB / 364.7 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.1169, allocations: 91.41 kB / 364.8 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.1169, allocations: 4.625 kB / 364.8 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.117, allocations: 42.5 kB / 364.8 MB, free: 6.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.704e-06/0.117, allocations: 0 / 364.8 MB, free: 6.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002094/0.1191, allocations: 1.332 MB / 366.2 MB, free: 4.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.113e-05/0.1192, allocations: 136.5 kB / 366.3 MB, free: 4.812 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00024/0.1194, allocations: 206.7 kB / 366.5 MB, free: 4.598 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.1194, allocations: 29.7 kB / 366.5 MB, free: 4.562 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.279e-05/0.1195, allocations: 164.4 kB / 366.7 MB, free: 4.398 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.702e-05/0.1196, allocations: 118.3 kB / 366.8 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.557e-05/0.1197, allocations: 70.14 kB / 366.9 MB, free: 4.203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.1199, allocations: 334.8 kB / 367.2 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.1201, allocations: 80.83 kB / 367.3 MB, free: 3.789 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002654/0.1203, allocations: 194.1 kB / 367.5 MB, free: 3.551 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004361/0.1208, allocations: 309.8 kB / 367.8 MB, free: 3.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1208, allocations: 0 / 367.8 MB, free: 3.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000599/0.1214, allocations: 336.9 kB / 368.1 MB, free: 2.863 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.1214, allocations: 8 kB / 368.1 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.1215, allocations: 4 kB / 368.1 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.1215, allocations: 8 kB / 368.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003409/0.1218, allocations: 100.1 kB / 368.2 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.811e-05/0.1219, allocations: 4 kB / 368.2 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.1221, allocations: 19.92 kB / 368.2 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.433e-05/0.1221, allocations: 16 kB / 368.2 MB, free: 2.707 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 (48): * Single equations (assignments): 48 * 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.0001275/0.1222, allocations: 153.6 kB / 368.4 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.9e-05/0.1223, allocations: 23.72 kB / 368.4 MB, free: 2.523 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.502e-05/0.1224, allocations: 37.39 kB / 368.5 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.1224, allocations: 8 kB / 368.5 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1224, allocations: 4 kB / 368.5 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.1225, allocations: 3.938 kB / 368.5 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.1239, allocations: 0.9671 MB / 369.4 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.341e-06/0.1239, allocations: 4 kB / 369.4 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003577/0.1242, allocations: 75.89 kB / 369.5 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.016e-05/0.1243, allocations: 8 kB / 369.5 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.256e-05/0.1243, allocations: 8 kB / 369.5 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.1243, allocations: 8.234 kB / 369.5 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.1243, allocations: 11.94 kB / 369.6 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007735/0.1251, allocations: 0.7 MB / 370.3 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.295e-05/0.1252, allocations: 96.83 kB / 370.3 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.01e-05/0.1252, allocations: 8.25 kB / 370.4 MB, free: 448 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002884/0.1255, allocations: 19.98 kB / 370.4 MB, free: 428 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.533e-05/0.1256, allocations: 35.84 kB / 370.4 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.913e-05/0.1256, allocations: 12 kB / 370.4 MB, free: 380 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001219/0.1258, allocations: 140.6 kB / 370.6 MB, free: 240 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.154e-06/0.1258, allocations: 0 / 370.6 MB, free: 240 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004682/0.1263, allocations: 71.94 kB / 370.6 MB, free: 168 kB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.v) * 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 (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 Backend phase and start with SimCode phase: time 0.2026/0.3289, allocations: 1.235 MB / 371.9 MB, free: 18.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006418/0.3296, allocations: 250.9 kB / 372.1 MB, free: 18.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.3296, allocations: 0.5938 kB / 372.1 MB, free: 18.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002928/0.3299, allocations: 124.6 kB / 372.2 MB, free: 18.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009168/0.3308, allocations: 73.14 kB / 372.3 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004447/0.3353, allocations: 3.491 MB / 375.8 MB, free: 16.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.3356, allocations: 0.7623 MB / 376.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000164/0.3358, allocations: 37.8 kB / 376.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.3359, allocations: 83.3 kB / 376.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3359, allocations: 0 / 376.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02974/0.3656, allocations: 5.637 MB / 382.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.363/8.729, allocations: 8.969 kB / 382.3 MB, free: 15.1 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce_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_Translational_Examples_CompareBrakingForce.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1)