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.001198/0.001198, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.412/1.412, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0009627/0.0009629, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.602e-05/2.604e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09296/0.093, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3015/0.3946, allocations: 77.41 MB / 447.5 MB, free: 15.85 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001956/0.3948, allocations: 74.52 kB / 447.6 MB, free: 15.81 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01507/0.4099, allocations: 5.557 MB / 453.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.41, allocations: 4 kB / 453.2 MB, free: 10.94 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.41, allocations: 4 kB / 453.2 MB, free: 10.94 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.0009955/0.411, allocations: 0.594 MB / 453.8 MB, free: 10.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.411, allocations: 12.03 kB / 453.8 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.484e-05/0.4111, allocations: 63.91 kB / 453.8 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.153e-05/0.4112, allocations: 35.53 kB / 453.9 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002891/0.4115, allocations: 264.1 kB / 454.1 MB, free: 9.941 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.133e-05/0.4115, allocations: 30.81 kB / 454.2 MB, free: 9.914 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.356e-05/0.4116, allocations: 33.34 kB / 454.2 MB, free: 9.891 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005642/0.4122, allocations: 344.6 kB / 454.5 MB, free: 9.652 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.4122, allocations: 0 / 454.5 MB, free: 9.652 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.734e-05/0.4122, allocations: 11.38 kB / 454.5 MB, free: 9.648 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.4123, allocations: 8 kB / 454.5 MB, free: 9.641 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005243/0.4128, allocations: 343.5 kB / 454.9 MB, free: 9.414 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001922/0.4147, allocations: 1.124 MB / 456 MB, free: 8.422 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004164/0.4151, allocations: 277.4 kB / 456.3 MB, free: 8.227 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002527/0.4154, allocations: 185.3 kB / 456.5 MB, free: 8.113 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.658e-05/0.4155, allocations: 7.953 kB / 456.5 MB, free: 8.105 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.4155, allocations: 34 kB / 456.5 MB, free: 8.066 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 2.104e-06/0.4155, allocations: 0 / 456.5 MB, free: 8.066 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.00244/0.418, allocations: 1.42 MB / 457.9 MB, free: 6.707 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.418, allocations: 55.84 kB / 458 MB, free: 6.641 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001685/0.4182, allocations: 192.9 kB / 458.2 MB, free: 6.449 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.085e-05/0.4182, allocations: 45.62 kB / 458.2 MB, free: 6.398 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.753e-05/0.4183, allocations: 152.8 kB / 458.4 MB, free: 6.242 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.4184, allocations: 153.9 kB / 458.5 MB, free: 6.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.829e-05/0.4185, allocations: 8 kB / 458.5 MB, free: 6.082 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.4186, allocations: 338.8 kB / 458.8 MB, free: 5.742 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000282/0.4189, allocations: 177.1 kB / 459 MB, free: 5.57 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000338/0.4192, allocations: 248.9 kB / 459.3 MB, free: 5.297 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002398/0.4195, allocations: 137.6 kB / 459.4 MB, free: 5.164 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.4195, allocations: 0 / 459.4 MB, free: 5.164 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001301/0.4208, allocations: 0.6337 MB / 460 MB, free: 4.516 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.4208, allocations: 8 kB / 460 MB, free: 4.508 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/0.4209, allocations: 4 kB / 460 MB, free: 4.504 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000679/0.4215, allocations: 373.7 kB / 460.4 MB, free: 4.133 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000258/0.4218, allocations: 71.91 kB / 460.5 MB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001226/0.423, allocations: 1.316 MB / 461.8 MB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004481/0.4235, allocations: 99.97 kB / 461.9 MB, free: 2.598 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-05/0.4236, allocations: 20 kB / 461.9 MB, free: 2.578 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.0001641/0.4238, allocations: 140.7 kB / 462 MB, free: 2.434 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.433e-05/0.4239, allocations: 35.61 kB / 462.1 MB, free: 2.398 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001363/0.4252, allocations: 0.6246 MB / 462.7 MB, free: 1.758 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.4252, allocations: 4 kB / 462.7 MB, free: 1.754 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4253, allocations: 0 / 462.7 MB, free: 1.754 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.4253, allocations: 3.984 kB / 462.7 MB, free: 1.75 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002489/0.4278, allocations: 1.298 MB / 464 MB, free: 384 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.81e-06/0.4278, allocations: 4.156 kB / 464 MB, free: 380 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002893/0.4281, allocations: 63.91 kB / 464.1 MB, free: 316 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006015/0.4287, allocations: 349.4 kB / 464.4 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.307e-05/0.4288, allocations: 23.97 kB / 464.4 MB, free: 15.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009836/0.4297, allocations: 1.257 MB / 465.7 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4298, allocations: 7.969 kB / 465.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.4312, allocations: 0.8932 MB / 466.6 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000182/0.4314, allocations: 152.7 kB / 466.7 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.278e-05/0.4315, allocations: 19.98 kB / 466.8 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003245/0.4318, allocations: 47.92 kB / 466.8 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/0.4321, allocations: 107.8 kB / 466.9 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.905e-05/0.4321, allocations: 19.98 kB / 466.9 MB, free: 13.3 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001506/0.4323, allocations: 161.4 kB / 467.1 MB, free: 13.14 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4323, allocations: 0 / 467.1 MB, free: 13.14 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004638/0.4327, allocations: 111.9 kB / 467.2 MB, free: 13.03 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.001976/0.4347, allocations: 1.818 MB / 469 MB, free: 11.14 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009435/0.4357, allocations: 0.5055 MB / 469.5 MB, free: 10.63 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4357, allocations: 4.312 kB / 469.5 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000516/0.4362, allocations: 260.1 kB / 469.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000364/0.4366, allocations: 38.78 kB / 469.8 MB, free: 10.34 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002241/0.4389, allocations: 0.9445 MB / 470.8 MB, free: 9.336 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003822/0.4393, allocations: 0.7995 MB / 471.6 MB, free: 8.508 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001254/0.4394, allocations: 26.97 kB / 471.6 MB, free: 8.484 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.4395, allocations: 87.39 kB / 471.7 MB, free: 8.398 MB / 346.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4395, allocations: 0 / 471.7 MB, free: 8.398 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02386/0.4634, allocations: 10.02 MB / 481.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002118/0.4637, allocations: 187.8 kB / 481.9 MB, free: 14.14 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.956/2.42, allocations: 3.938 kB / 481.9 MB, free: 14.14 MB / 362.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