Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001161/0.001161, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 221.5 MB / 230.3 MB, free: 7.582 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.000876/0.0008758, allocations: 88.59 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.824e-05/2.819e-05, allocations: 0 / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1154, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3507/0.4661, allocations: 75.37 MB / 462.9 MB, free: 3.355 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/0.4664, allocations: 73.67 kB / 463 MB, free: 3.285 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001743/0.4682, allocations: 0.7123 MB / 463.7 MB, free: 2.578 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4682, allocations: 0 / 463.7 MB, free: 2.578 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.313e-05/0.4682, allocations: 0 / 463.7 MB, free: 2.578 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003259/0.4686, allocations: 337.1 kB / 464 MB, free: 2.207 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.4686, allocations: 12.03 kB / 464.1 MB, free: 2.195 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.978e-05/0.4687, allocations: 7.859 kB / 464.1 MB, free: 2.188 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001706/0.4688, allocations: 175 kB / 464.2 MB, free: 1.977 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.4689, allocations: 4 kB / 464.2 MB, free: 1.973 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.4689, allocations: 0 / 464.2 MB, free: 1.973 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.531e-05/0.469, allocations: 12 kB / 464.2 MB, free: 1.961 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.4691, allocations: 79.34 kB / 464.3 MB, free: 1.871 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.4692, allocations: 0 / 464.3 MB, free: 1.871 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.4692, allocations: 3.953 kB / 464.3 MB, free: 1.867 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.4692, allocations: 4 kB / 464.3 MB, free: 1.863 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001156/0.4693, allocations: 130.2 kB / 464.5 MB, free: 1.699 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.972e-05/0.4694, allocations: 46.5 kB / 464.5 MB, free: 1.645 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.437e-05/0.4694, allocations: 16.89 kB / 464.5 MB, free: 1.625 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.4695, allocations: 4 kB / 464.5 MB, free: 1.621 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.703e-05/0.4695, allocations: 34.56 kB / 464.6 MB, free: 1.578 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.325e-06/0.4695, allocations: 3.984 kB / 464.6 MB, free: 1.574 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001177/0.4696, allocations: 49.73 kB / 464.6 MB, free: 1.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.139e-05/0.4697, allocations: 51.41 kB / 464.7 MB, free: 1.457 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.276e-05/0.4697, allocations: 97 kB / 464.8 MB, free: 1.355 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.4698, allocations: 29.69 kB / 464.8 MB, free: 1.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.512e-05/0.4698, allocations: 88.14 kB / 464.9 MB, free: 1.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.524e-05/0.4698, allocations: 4 kB / 464.9 MB, free: 1.227 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.546e-06/0.4698, allocations: 4.969 kB / 464.9 MB, free: 1.223 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.47, allocations: 314.8 kB / 465.2 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.928e-06/0.47, allocations: 4 kB / 465.2 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.34e-05/0.47, allocations: 23.44 kB / 465.2 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.151e-05/0.47, allocations: 11.98 kB / 465.2 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.47, allocations: 0 / 465.2 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.097e-05/0.4701, allocations: 49.64 kB / 465.3 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.4701, allocations: 4.938 kB / 465.3 MB, free: 0.7969 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.4702, allocations: 3.984 kB / 465.3 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.4702, allocations: 4 kB / 465.3 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.843e-05/0.4702, allocations: 4 kB / 465.3 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.972e-06/0.4702, allocations: 12 kB / 465.3 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.441e-05/0.4703, allocations: 11.84 kB / 465.3 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.658e-06/0.4703, allocations: 4 kB / 465.3 MB, free: 0.7578 MB / 330.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 6.415e-05/0.4703, allocations: 104.9 kB / 465.4 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.233e-05/0.4704, allocations: 45.69 kB / 465.5 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.597e-06/0.4704, allocations: 4 kB / 465.5 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.938e-05/0.4705, allocations: 8.344 kB / 465.5 MB, free: 0.582 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.4705, allocations: 0 / 465.5 MB, free: 0.582 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.4705, allocations: 0 / 465.5 MB, free: 0.582 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.4705, allocations: 0 / 465.5 MB, free: 0.582 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.7e-05/0.4706, allocations: 150 kB / 465.6 MB, free: 408 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.4706, allocations: 0 / 465.6 MB, free: 408 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.585e-05/0.4706, allocations: 8 kB / 465.6 MB, free: 400 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.4707, allocations: 0 / 465.6 MB, free: 400 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-06/0.4707, allocations: 0 / 465.6 MB, free: 400 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.4707, allocations: 3.938 kB / 465.6 MB, free: 396 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4707, allocations: 4 kB / 465.6 MB, free: 392 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.935e-05/0.4708, allocations: 73.08 kB / 465.7 MB, free: 300 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.458e-05/0.4708, allocations: 81.11 kB / 465.8 MB, free: 200 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.453e-05/0.4708, allocations: 7.984 kB / 465.8 MB, free: 192 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.838e-05/0.4709, allocations: 256 / 465.8 MB, free: 192 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.754e-06/0.4709, allocations: 0 / 465.8 MB, free: 192 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.685e-06/0.4709, allocations: 8 kB / 465.8 MB, free: 184 kB / 330.7 MB Notification: Performance of sorting global known variables: time 3.467e-05/0.4709, allocations: 83.28 kB / 465.9 MB, free: 100 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4709, allocations: 0 / 465.9 MB, free: 100 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001876/0.4711, allocations: 0 / 465.9 MB, free: 100 kB / 330.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.0003501/0.4715, allocations: 0.6162 MB / 466.5 MB, free: 15.45 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.261e-05/0.4716, allocations: 19.92 kB / 466.5 MB, free: 15.43 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4716, allocations: 0 / 466.5 MB, free: 15.43 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.4716, allocations: 0 / 466.5 MB, free: 15.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001424/0.4717, allocations: 18.38 kB / 466.5 MB, free: 15.42 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002492/0.472, allocations: 93.92 kB / 466.6 MB, free: 15.29 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002179/0.4722, allocations: 0.6885 MB / 467.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.131e-05/0.4722, allocations: 0 / 467.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.614e-05/0.4723, allocations: 11.44 kB / 467.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4723, allocations: 0 / 467.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02006/0.4923, allocations: 0.7096 MB / 468 MB, free: 13.87 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003264/0.4927, allocations: 164.8 kB / 468.2 MB, free: 13.67 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.408/1.901, allocations: 0 / 468.2 MB, free: 13.67 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat does not exist to compare? outputFormat=mat