Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002361/0.002361, allocations: 180.2 kB / 13.66 MB, free: 1.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.183/2.183, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 90.73 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.168e-05/4.189e-05, allocations: 8 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09862/0.09872, allocations: 47.56 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4109/0.5096, allocations: 77.43 MB / 446.6 MB, free: 15.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/0.51, allocations: 63.94 kB / 446.7 MB, free: 15.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02726/0.5372, allocations: 5.565 MB / 452.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5373, allocations: 0 / 452.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.629e-05/0.5373, allocations: 4 kB / 452.2 MB, free: 10.89 MB / 330.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.00188/0.5392, allocations: 0.5991 MB / 452.8 MB, free: 10.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.377e-05/0.5393, allocations: 8.031 kB / 452.8 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001643/0.5395, allocations: 59.98 kB / 452.9 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.5397, allocations: 39.53 kB / 452.9 MB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005195/0.5402, allocations: 258.3 kB / 453.2 MB, free: 9.898 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.954e-05/0.5403, allocations: 23.77 kB / 453.2 MB, free: 9.879 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.5404, allocations: 37.83 kB / 453.2 MB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009796/0.5414, allocations: 351.9 kB / 453.6 MB, free: 9.605 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.795e-05/0.5414, allocations: 3.938 kB / 453.6 MB, free: 9.602 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.835e-05/0.5415, allocations: 9.688 kB / 453.6 MB, free: 9.602 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.5415, allocations: 8 kB / 453.6 MB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009938/0.5425, allocations: 340.4 kB / 453.9 MB, free: 9.367 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003596/0.5461, allocations: 1.125 MB / 455.1 MB, free: 8.375 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007316/0.5469, allocations: 280.7 kB / 455.3 MB, free: 8.176 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004688/0.5474, allocations: 175 kB / 455.5 MB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.387e-05/0.5475, allocations: 7.953 kB / 455.5 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.3e-05/0.5476, allocations: 41.75 kB / 455.6 MB, free: 8.02 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 4.348e-06/0.5476, allocations: 0 / 455.6 MB, free: 8.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.004324/0.5519, allocations: 1.418 MB / 457 MB, free: 6.793 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.552, allocations: 55.84 kB / 457 MB, free: 6.727 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003117/0.5524, allocations: 190.2 kB / 457.2 MB, free: 6.562 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/0.5525, allocations: 40.02 kB / 457.3 MB, free: 6.527 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.5527, allocations: 214.1 kB / 457.5 MB, free: 6.328 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/0.5529, allocations: 153.8 kB / 457.6 MB, free: 6.203 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.737e-05/0.5529, allocations: 14.44 kB / 457.6 MB, free: 6.195 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.5531, allocations: 332.4 kB / 458 MB, free: 5.871 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005217/0.5536, allocations: 173.9 kB / 458.1 MB, free: 5.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006003/0.5543, allocations: 246 kB / 458.4 MB, free: 5.578 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004324/0.5547, allocations: 150 kB / 458.5 MB, free: 5.445 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.5547, allocations: 0 / 458.5 MB, free: 5.445 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002402/0.5572, allocations: 0.6221 MB / 459.1 MB, free: 4.812 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.5572, allocations: 7.938 kB / 459.1 MB, free: 4.805 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.043e-05/0.5573, allocations: 4 kB / 459.2 MB, free: 4.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001193/0.5585, allocations: 377.6 kB / 459.5 MB, free: 4.426 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005669/0.5591, allocations: 67.91 kB / 459.6 MB, free: 4.359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001856/0.5609, allocations: 1.316 MB / 460.9 MB, free: 2.992 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009496/0.5619, allocations: 100 kB / 461 MB, free: 2.895 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.5621, allocations: 23.98 kB / 461 MB, free: 2.871 MB / 330.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.0002538/0.5623, allocations: 140.7 kB / 461.2 MB, free: 2.727 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.5625, allocations: 31.62 kB / 461.2 MB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002445/0.5649, allocations: 0.6246 MB / 461.8 MB, free: 2.055 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.61e-05/0.565, allocations: 8 kB / 461.8 MB, free: 2.047 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.565, allocations: 0 / 461.8 MB, free: 2.047 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.565, allocations: 4.047 kB / 461.8 MB, free: 2.043 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004683/0.5697, allocations: 1.294 MB / 463.1 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/0.5698, allocations: 4 kB / 463.1 MB, free: 0.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006181/0.5704, allocations: 59.91 kB / 463.2 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001144/0.5716, allocations: 345.6 kB / 463.5 MB, free: 272 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001214/0.5718, allocations: 23.97 kB / 463.5 MB, free: 248 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001705/0.5735, allocations: 1.261 MB / 464.8 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.5736, allocations: 4.031 kB / 464.8 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003421/0.577, allocations: 0.897 MB / 465.7 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005783/0.5776, allocations: 152.7 kB / 465.9 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001972/0.5779, allocations: 16 kB / 465.9 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009513/0.5788, allocations: 59.91 kB / 465.9 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004822/0.5794, allocations: 99.72 kB / 466 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/0.5795, allocations: 23.97 kB / 466.1 MB, free: 13.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003793/0.5799, allocations: 161.4 kB / 466.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.82e-07/0.5799, allocations: 0 / 466.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001175/0.5811, allocations: 111.9 kB / 466.3 MB, free: 13.32 MB / 346.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.004972/0.5861, allocations: 1.823 MB / 468.1 MB, free: 11.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002824/0.589, allocations: 0.4978 MB / 468.6 MB, free: 10.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/0.5891, allocations: 0 / 468.6 MB, free: 10.93 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001627/0.5908, allocations: 264.7 kB / 468.9 MB, free: 10.67 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00114/0.592, allocations: 44.34 kB / 468.9 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00581/0.5978, allocations: 0.9693 MB / 469.9 MB, free: 9.594 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/0.5984, allocations: 0.7956 MB / 470.7 MB, free: 8.77 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002749/0.5987, allocations: 87.41 kB / 470.8 MB, free: 8.684 MB / 346.7 MB Notification: Performance of SimCode: time 1.513e-06/0.5987, allocations: 0 / 470.8 MB, free: 8.684 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.264/3.863, allocations: 7.579 MB / 478.4 MB, free: 1.098 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat