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.001532/0.001532, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.09/2.09, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001145/0.001145, allocations: 99.48 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004144/0.0004144, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3536, allocations: 47.56 MB / 374.6 MB, free: 45.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1251/0.4788, allocations: 77.51 MB / 452.1 MB, free: 3.238 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.4792, allocations: 71.95 kB / 452.2 MB, free: 3.168 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02651/0.5057, allocations: 5.57 MB / 457.8 MB, free: 13.58 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5058, allocations: 0 / 457.8 MB, free: 13.58 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.934e-05/0.5058, allocations: 8 kB / 457.8 MB, free: 13.57 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.001857/0.5077, allocations: 0.6197 MB / 458.4 MB, free: 12.9 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.5077, allocations: 8.031 kB / 458.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001426/0.5079, allocations: 66.53 kB / 458.5 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.508, allocations: 39.53 kB / 458.5 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004767/0.5085, allocations: 271.4 kB / 458.8 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.691e-05/0.5086, allocations: 28.52 kB / 458.8 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.5087, allocations: 24 kB / 458.8 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.5099, allocations: 356.7 kB / 459.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.106e-05/0.51, allocations: 7.984 kB / 459.2 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.051e-05/0.51, allocations: 8 kB / 459.2 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/0.5101, allocations: 8 kB / 459.2 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.5114, allocations: 365.9 kB / 459.6 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00353/0.5149, allocations: 1.12 MB / 460.7 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009052/0.5159, allocations: 292.3 kB / 461 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.712e-05/0.516, allocations: 11.95 kB / 461 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.516, allocations: 38.67 kB / 461 MB, free: 10.13 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 3.707e-06/0.5161, allocations: 3.938 kB / 461 MB, free: 10.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.007762/0.5238, allocations: 2.016 MB / 463 MB, free: 7.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/0.5239, allocations: 55.84 kB / 463.1 MB, free: 7.914 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002946/0.5242, allocations: 188.2 kB / 463.3 MB, free: 7.723 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.001e-05/0.5243, allocations: 45.69 kB / 463.3 MB, free: 7.672 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.5245, allocations: 203.3 kB / 463.5 MB, free: 7.473 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002042/0.5247, allocations: 161.9 kB / 463.7 MB, free: 7.312 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.315e-05/0.5248, allocations: 12 kB / 463.7 MB, free: 7.301 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.525, allocations: 330.8 kB / 464 MB, free: 6.969 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006731/0.5256, allocations: 189 kB / 464.2 MB, free: 6.785 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007339/0.5264, allocations: 256.8 kB / 464.4 MB, free: 6.508 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005522/0.527, allocations: 152.7 kB / 464.6 MB, free: 6.359 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.527, allocations: 0 / 464.6 MB, free: 6.359 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002598/0.5296, allocations: 0.6416 MB / 465.2 MB, free: 5.703 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.5296, allocations: 8 kB / 465.2 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.61e-05/0.5297, allocations: 4.062 kB / 465.3 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001254/0.5309, allocations: 401.6 kB / 465.6 MB, free: 5.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005149/0.5315, allocations: 71.84 kB / 465.7 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001881/0.5334, allocations: 1.316 MB / 467 MB, free: 3.855 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008866/0.5343, allocations: 92.05 kB / 467.1 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.337e-05/0.5344, allocations: 23.98 kB / 467.1 MB, free: 3.742 MB / 346.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 () * Number of clocked 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.0003337/0.5347, allocations: 161.6 kB / 467.3 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.5349, allocations: 35.61 kB / 467.3 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002637/0.5375, allocations: 0.6407 MB / 468 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.5376, allocations: 4 kB / 468 MB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.5376, allocations: 0 / 468 MB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.5376, allocations: 4 kB / 468 MB, free: 2.871 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004657/0.5423, allocations: 1.335 MB / 469.3 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.5423, allocations: 0 / 469.3 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005408/0.5429, allocations: 63.91 kB / 469.4 MB, free: 1.398 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.544, allocations: 357.6 kB / 469.7 MB, free: 1.043 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.882e-05/0.5441, allocations: 15.98 kB / 469.7 MB, free: 1.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001726/0.5458, allocations: 1.273 MB / 471 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.5458, allocations: 0 / 471 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003102/0.5489, allocations: 0.9293 MB / 471.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003588/0.5493, allocations: 152.8 kB / 472.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.5495, allocations: 16 kB / 472.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005604/0.55, allocations: 55.94 kB / 472.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003236/0.5504, allocations: 103.7 kB / 472.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.171e-05/0.5505, allocations: 27.97 kB / 472.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002412/0.5507, allocations: 152.5 kB / 472.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5507, allocations: 0 / 472.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006678/0.5514, allocations: 112 kB / 472.6 MB, free: 14.07 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) * Number of clocked states: 0 () * 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.003876/0.5553, allocations: 1.854 MB / 474.4 MB, free: 12.16 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001827/0.5572, allocations: 0.5213 MB / 474.9 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.5572, allocations: 4 kB / 474.9 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.5583, allocations: 272 kB / 475.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005767/0.5589, allocations: 40.41 kB / 475.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009199/0.5681, allocations: 3.638 MB / 478.9 MB, free: 7.578 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005246/0.5687, allocations: 0.7957 MB / 479.7 MB, free: 6.754 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002741/0.5689, allocations: 83.41 kB / 479.8 MB, free: 6.672 MB / 362.7 MB Notification: Performance of SimCode: time 1.202e-06/0.569, allocations: 4 kB / 479.8 MB, free: 6.668 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.834/3.403, allocations: 7.54 MB / 487.3 MB, free: 15.12 MB / 378.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