Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_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.001401/0.001401, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.4 MB / 223.1 MB, free: 9.109 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.000974/0.0009739, allocations: 96.09 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002889/0.0002892, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2503, allocations: 47.58 MB / 375.9 MB, free: 45.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09165/0.342, allocations: 77.5 MB / 453.4 MB, free: 3.035 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002392/0.3423, allocations: 63.97 kB / 453.5 MB, free: 2.973 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01644/0.3588, allocations: 5.578 MB / 459.1 MB, free: 13.38 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3588, allocations: 0 / 459.1 MB, free: 13.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.719e-05/0.3589, allocations: 8 kB / 459.1 MB, free: 13.37 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.001207/0.3601, allocations: 0.6236 MB / 459.7 MB, free: 12.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.3601, allocations: 8.031 kB / 459.7 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.664e-05/0.3602, allocations: 62.55 kB / 459.8 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.999e-05/0.3603, allocations: 39.53 kB / 459.8 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/0.3607, allocations: 263.4 kB / 460 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.798e-05/0.3607, allocations: 28.52 kB / 460.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.413e-05/0.3608, allocations: 31.98 kB / 460.1 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006972/0.3615, allocations: 356.7 kB / 460.5 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.3615, allocations: 4 kB / 460.5 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.002e-05/0.3616, allocations: 8 kB / 460.5 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.3616, allocations: 8 kB / 460.5 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000688/0.3623, allocations: 365.9 kB / 460.8 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.3643, allocations: 1.12 MB / 462 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005191/0.3649, allocations: 295.8 kB / 462.2 MB, free: 9.988 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.013e-05/0.3649, allocations: 7.953 kB / 462.3 MB, free: 9.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/0.365, allocations: 38.67 kB / 462.3 MB, free: 9.934 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 2.935e-06/0.365, allocations: 3.938 kB / 462.3 MB, free: 9.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.004227/0.3692, allocations: 2.016 MB / 464.3 MB, free: 7.781 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/0.3693, allocations: 55.84 kB / 464.4 MB, free: 7.715 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001989/0.3695, allocations: 196.2 kB / 464.6 MB, free: 7.516 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.118e-05/0.3696, allocations: 41.7 kB / 464.6 MB, free: 7.469 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.682e-05/0.3696, allocations: 148.8 kB / 464.7 MB, free: 7.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.3698, allocations: 157.9 kB / 464.9 MB, free: 7.164 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.847e-05/0.3698, allocations: 8 kB / 464.9 MB, free: 7.156 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.3699, allocations: 338.8 kB / 465.2 MB, free: 6.816 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003489/0.3703, allocations: 189 kB / 465.4 MB, free: 6.633 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003961/0.3707, allocations: 260.8 kB / 465.7 MB, free: 6.352 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.371, allocations: 148.7 kB / 465.8 MB, free: 6.207 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.371, allocations: 4 kB / 465.8 MB, free: 6.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0014/0.3724, allocations: 0.6532 MB / 466.5 MB, free: 5.535 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.3724, allocations: 6.188 kB / 466.5 MB, free: 5.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/0.3725, allocations: 4 kB / 466.5 MB, free: 5.527 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006979/0.3732, allocations: 389.6 kB / 466.9 MB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002548/0.3734, allocations: 71.91 kB / 466.9 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.3745, allocations: 1.316 MB / 468.3 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004401/0.375, allocations: 95.95 kB / 468.3 MB, free: 3.609 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.035e-05/0.375, allocations: 23.98 kB / 468.4 MB, free: 3.586 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.0002234/0.3753, allocations: 161.6 kB / 468.5 MB, free: 3.418 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.449e-05/0.3754, allocations: 31.62 kB / 468.6 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001454/0.3768, allocations: 0.6524 MB / 469.2 MB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.3768, allocations: 4 kB / 469.2 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.3768, allocations: 0 / 469.2 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3769, allocations: 0 / 469.2 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00251/0.3794, allocations: 1.327 MB / 470.5 MB, free: 1.309 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/0.3794, allocations: 4 kB / 470.5 MB, free: 1.305 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/0.3797, allocations: 60.06 kB / 470.6 MB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005974/0.3803, allocations: 365.4 kB / 471 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.54e-05/0.3804, allocations: 19.98 kB / 471 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/0.3815, allocations: 1.265 MB / 472.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.3815, allocations: 4.031 kB / 472.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001722/0.3832, allocations: 0.9294 MB / 473.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002441/0.3835, allocations: 152.7 kB / 473.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.375e-05/0.3836, allocations: 20 kB / 473.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000287/0.3839, allocations: 43.95 kB / 473.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000218/0.3841, allocations: 111.7 kB / 473.5 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.906e-05/0.3841, allocations: 23.97 kB / 473.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001618/0.3843, allocations: 152.5 kB / 473.7 MB, free: 14.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3843, allocations: 0 / 473.7 MB, free: 14.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005188/0.3848, allocations: 112 kB / 473.8 MB, free: 13.92 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.002327/0.3872, allocations: 1.854 MB / 475.6 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001129/0.3883, allocations: 0.5287 MB / 476.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3883, allocations: 0 / 476.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005646/0.3889, allocations: 280.6 kB / 476.4 MB, free: 11.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.3893, allocations: 48.22 kB / 476.5 MB, free: 11.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005106/0.3944, allocations: 3.61 MB / 480.1 MB, free: 7.441 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.3948, allocations: 0.7879 MB / 480.9 MB, free: 6.625 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.395, allocations: 26.97 kB / 480.9 MB, free: 6.602 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001526/0.3951, allocations: 87.39 kB / 481 MB, free: 6.516 MB / 362.7 MB Notification: Performance of SimCode: time 1.372e-06/0.3951, allocations: 0 / 481 MB, free: 6.516 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02367/0.4188, allocations: 9.997 MB / 491 MB, free: 12.54 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002619/0.4191, allocations: 205.6 kB / 491.2 MB, free: 12.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.985/2.404, allocations: 0 / 491.2 MB, free: 12.3 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat