Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 177.1 kB / 13.64 MB, free: 1.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.525/1.525, allocations: 221.3 MB / 235.5 MB, free: 2.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009791/0.0009792, allocations: 87.61 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.175e-05/3.192e-05, allocations: 0 / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09199/0.09204, allocations: 50.42 MB / 394.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3292/0.4213, allocations: 78.81 MB / 473.2 MB, free: 8.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.4216, allocations: 67.97 kB / 473.2 MB, free: 8.594 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01597/0.4376, allocations: 5.645 MB / 478.9 MB, free: 2.938 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4376, allocations: 4 kB / 478.9 MB, free: 2.934 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.4377, allocations: 4 kB / 478.9 MB, free: 2.93 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001033/0.4387, allocations: 0.5965 MB / 479.5 MB, free: 2.289 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.4388, allocations: 12.03 kB / 479.5 MB, free: 2.277 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.089e-05/0.4389, allocations: 66.53 kB / 479.6 MB, free: 2.203 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.975e-05/0.4389, allocations: 35.53 kB / 479.6 MB, free: 2.168 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003083/0.4393, allocations: 271.5 kB / 479.9 MB, free: 1.863 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.846e-05/0.4393, allocations: 20.56 kB / 479.9 MB, free: 1.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.745e-05/0.4394, allocations: 27.91 kB / 479.9 MB, free: 1.812 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006045/0.44, allocations: 348.8 kB / 480.2 MB, free: 1.465 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.44, allocations: 0 / 480.2 MB, free: 1.465 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.03e-05/0.4401, allocations: 15.95 kB / 480.3 MB, free: 1.449 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.4401, allocations: 8 kB / 480.3 MB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005654/0.4407, allocations: 342 kB / 480.6 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00207/0.4427, allocations: 1.135 MB / 481.7 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004432/0.4432, allocations: 282.5 kB / 482 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002813/0.4435, allocations: 176.8 kB / 482.2 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.632e-05/0.4436, allocations: 4.688 kB / 482.2 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.4436, allocations: 38.56 kB / 482.2 MB, free: 15.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 2.204e-06/0.4436, allocations: 0 / 482.2 MB, free: 15.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.002659/0.4463, allocations: 1.419 MB / 483.6 MB, free: 13.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.907e-05/0.4463, allocations: 59.8 kB / 483.7 MB, free: 13.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001893/0.4465, allocations: 188.9 kB / 483.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.178e-05/0.4466, allocations: 37.7 kB / 483.9 MB, free: 13.56 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.361e-05/0.4467, allocations: 148.8 kB / 484.1 MB, free: 13.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.4468, allocations: 162 kB / 484.2 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.65e-05/0.4469, allocations: 11.94 kB / 484.2 MB, free: 13.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.447, allocations: 338.8 kB / 484.6 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003058/0.4473, allocations: 177.1 kB / 484.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003861/0.4477, allocations: 248.9 kB / 485 MB, free: 12.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.448, allocations: 141.6 kB / 485.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.448, allocations: 0 / 485.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001322/0.4493, allocations: 0.6222 MB / 485.7 MB, free: 11.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.4494, allocations: 13.67 kB / 485.8 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.092e-05/0.4494, allocations: 12.05 kB / 485.8 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007066/0.4501, allocations: 373.6 kB / 486.1 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002608/0.4504, allocations: 75.84 kB / 486.2 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001193/0.4516, allocations: 1.304 MB / 487.5 MB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004601/0.452, allocations: 104 kB / 487.6 MB, free: 9.762 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.135e-05/0.4521, allocations: 23.98 kB / 487.6 MB, free: 9.738 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.00014/0.4523, allocations: 128.9 kB / 487.8 MB, free: 9.605 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.084e-05/0.4524, allocations: 31.62 kB / 487.8 MB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001386/0.4537, allocations: 0.6246 MB / 488.4 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.4538, allocations: 7.984 kB / 488.4 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4538, allocations: 0 / 488.4 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.4538, allocations: 0 / 488.4 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002544/0.4563, allocations: 1.294 MB / 489.7 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.4564, allocations: 4 kB / 489.7 MB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.4566, allocations: 55.97 kB / 489.8 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005871/0.4572, allocations: 345.6 kB / 490.1 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.472e-05/0.4573, allocations: 23.97 kB / 490.1 MB, free: 7.121 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001082/0.4584, allocations: 1.269 MB / 491.4 MB, free: 5.801 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.4584, allocations: 7.969 kB / 491.4 MB, free: 5.793 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/0.4601, allocations: 0.897 MB / 492.3 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002265/0.4604, allocations: 152.7 kB / 492.5 MB, free: 4.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.921e-05/0.4605, allocations: 16 kB / 492.5 MB, free: 4.645 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003168/0.4608, allocations: 43.95 kB / 492.5 MB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.461, allocations: 111.8 kB / 492.6 MB, free: 4.492 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.336e-05/0.4611, allocations: 27.95 kB / 492.7 MB, free: 4.465 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001644/0.4612, allocations: 157.4 kB / 492.8 MB, free: 4.309 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4613, allocations: 0 / 492.8 MB, free: 4.309 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000479/0.4617, allocations: 104 kB / 492.9 MB, free: 4.207 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00219/0.4639, allocations: 1.821 MB / 494.7 MB, free: 2.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009771/0.4649, allocations: 0.5058 MB / 495.2 MB, free: 1.801 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.465, allocations: 0 / 495.2 MB, free: 1.801 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005191/0.4655, allocations: 263.7 kB / 495.5 MB, free: 1.543 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003869/0.4659, allocations: 48.98 kB / 495.5 MB, free: 1.496 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002259/0.4681, allocations: 0.9317 MB / 496.5 MB, free: 0.5117 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.4685, allocations: 0.792 MB / 497.3 MB, free: 15.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001329/0.4687, allocations: 30.97 kB / 497.3 MB, free: 15.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.4688, allocations: 83.41 kB / 497.4 MB, free: 15.59 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4688, allocations: 0 / 497.4 MB, free: 15.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02242/0.4912, allocations: 10.03 MB / 0.4955 GB, free: 5.73 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/0.4915, allocations: 188.7 kB / 0.4957 GB, free: 5.496 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.173/2.664, allocations: 0 / 0.4957 GB, free: 5.496 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat