Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.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.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep",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.001058/0.001058, allocations: 175.2 kB / 13.63 MB, free: 1.684 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.361/1.361, allocations: 221.3 MB / 235.5 MB, free: 2.98 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.0009654/0.0009652, allocations: 99.78 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.834e-05/2.836e-05, allocations: 3.984 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09861/0.09865, allocations: 50.41 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3075/0.4062, allocations: 76.04 MB / 470.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002105/0.4064, allocations: 71.95 kB / 470.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001486/0.4079, allocations: 0.6821 MB / 471.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.624e-06/0.408, allocations: 0 / 471.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.408, allocations: 4 kB / 471.1 MB, free: 10.71 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002702/0.4083, allocations: 321.2 kB / 471.5 MB, free: 10.36 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.4083, allocations: 8.031 kB / 471.5 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.585e-05/0.4083, allocations: 42.55 kB / 471.5 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.483e-05/0.4084, allocations: 7.859 kB / 471.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000152/0.4085, allocations: 167.1 kB / 471.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.954e-05/0.4086, allocations: 8 kB / 471.7 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.4086, allocations: 14.55 kB / 471.7 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002123/0.4088, allocations: 83.34 kB / 471.8 MB, free: 9.973 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.4088, allocations: 0 / 471.8 MB, free: 9.973 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.4088, allocations: 4 kB / 471.8 MB, free: 9.969 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.4088, allocations: 3.953 kB / 471.8 MB, free: 9.965 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.595e-05/0.4089, allocations: 11.94 kB / 471.8 MB, free: 9.953 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000127/0.409, allocations: 161.7 kB / 472 MB, free: 9.746 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.832e-05/0.4091, allocations: 38.58 kB / 472 MB, free: 9.699 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.419e-05/0.4092, allocations: 16.89 kB / 472 MB, free: 9.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.813e-05/0.4092, allocations: 0 / 472 MB, free: 9.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/0.4092, allocations: 34.56 kB / 472 MB, free: 9.637 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 2.174e-06/0.4092, allocations: 0 / 472 MB, free: 9.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001231/0.4093, allocations: 57.67 kB / 472.1 MB, free: 9.574 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.4094, allocations: 55.41 kB / 472.2 MB, free: 9.508 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.493e-05/0.4095, allocations: 103.5 kB / 472.3 MB, free: 9.402 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.4095, allocations: 25.7 kB / 472.3 MB, free: 9.371 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.519e-05/0.4096, allocations: 84.14 kB / 472.4 MB, free: 9.285 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.4e-06/0.4096, allocations: 0 / 472.4 MB, free: 9.285 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.913e-06/0.4096, allocations: 0 / 472.4 MB, free: 9.285 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.4097, allocations: 318.8 kB / 472.7 MB, free: 8.965 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.917e-06/0.4097, allocations: 4 kB / 472.7 MB, free: 8.961 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.951e-05/0.4098, allocations: 31.45 kB / 472.7 MB, free: 8.918 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.436e-05/0.4098, allocations: 11.94 kB / 472.7 MB, free: 8.906 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.4098, allocations: 3.938 kB / 472.7 MB, free: 8.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.399e-05/0.4099, allocations: 57.62 kB / 472.8 MB, free: 8.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.4099, allocations: 8 kB / 472.8 MB, free: 8.832 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.4099, allocations: 0 / 472.8 MB, free: 8.832 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.4099, allocations: 0 / 472.8 MB, free: 8.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.722e-05/0.41, allocations: 4 kB / 472.8 MB, free: 8.828 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.41, allocations: 0 / 472.8 MB, free: 8.828 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.088e-05/0.41, allocations: 4 kB / 472.8 MB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.41, allocations: 3.953 kB / 472.8 MB, free: 8.82 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.229e-05/0.4101, allocations: 113 kB / 472.9 MB, free: 8.703 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.079e-05/0.4102, allocations: 53.59 kB / 473 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.853e-05/0.4102, allocations: 3.5 kB / 473 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.4102, allocations: 0 / 473 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4102, allocations: 4 kB / 473 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.4102, allocations: 0 / 473 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.4104, allocations: 161.5 kB / 473.1 MB, free: 8.426 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.4104, allocations: 4 kB / 473.1 MB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.65e-05/0.4104, allocations: 0 / 473.1 MB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.4104, allocations: 0 / 473.1 MB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.752e-06/0.4104, allocations: 3.938 kB / 473.1 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.4104, allocations: 4.75 kB / 473.1 MB, free: 8.414 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.4104, allocations: 4 kB / 473.1 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.755e-05/0.4105, allocations: 77.02 kB / 473.2 MB, free: 8.316 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.094e-05/0.4106, allocations: 81.11 kB / 473.3 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.127e-05/0.4106, allocations: 0 / 473.3 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.416e-05/0.4106, allocations: 256 / 473.3 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.975e-06/0.4106, allocations: 0 / 473.3 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.4106, allocations: 11.98 kB / 473.3 MB, free: 8.207 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.087e-05/0.4107, allocations: 87.28 kB / 473.4 MB, free: 8.121 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4107, allocations: 0 / 473.4 MB, free: 8.121 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001758/0.4109, allocations: 4 kB / 473.4 MB, free: 8.117 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003855/0.4113, allocations: 0.6123 MB / 474 MB, free: 7.477 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.459e-05/0.4114, allocations: 20.06 kB / 474 MB, free: 7.457 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4114, allocations: 0 / 474 MB, free: 7.457 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.11e-07/0.4114, allocations: 0 / 474 MB, free: 7.457 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.4115, allocations: 19.92 kB / 474 MB, free: 7.438 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002876/0.4118, allocations: 98.61 kB / 474.1 MB, free: 7.305 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002563/0.4121, allocations: 0.6809 MB / 474.8 MB, free: 6.598 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.165e-05/0.4121, allocations: 0 / 474.8 MB, free: 6.598 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.38e-05/0.4121, allocations: 19.61 kB / 474.8 MB, free: 6.578 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4122, allocations: 4 kB / 474.8 MB, free: 6.574 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.00973/0.4219, allocations: 1.01 MB / 475.9 MB, free: 5.707 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001587/0.4221, allocations: 167.6 kB / 476 MB, free: 5.488 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.36/1.782, allocations: 0 / 476 MB, free: 5.488 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep_res.mat does not exist to compare? outputFormat=mat