Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",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.001102/0.001102, allocations: 174.9 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.338/1.338, allocations: 221.4 MB / 235.5 MB, free: 2.953 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.0008739/0.0008738, allocations: 93.92 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.698e-05/2.702e-05, allocations: 7.984 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09669/0.09673, allocations: 50.41 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3185/0.4153, allocations: 81.16 MB / 475.5 MB, free: 6.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002397/0.4156, allocations: 83.94 kB / 475.6 MB, free: 6.238 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01567/0.4312, allocations: 6.076 MB / 481.7 MB, free: 172 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4313, allocations: 0 / 481.7 MB, free: 172 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.4313, allocations: 4 kB / 481.7 MB, free: 168 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005164/0.4318, allocations: 492.5 kB / 482.1 MB, free: 15.63 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.4319, allocations: 12.03 kB / 482.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.801e-05/0.4319, allocations: 38.52 kB / 482.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.715e-05/0.432, allocations: 23.72 kB / 482.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003816/0.4324, allocations: 265.7 kB / 482.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.4324, allocations: 11.94 kB / 482.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.732e-05/0.4324, allocations: 4 kB / 482.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002832/0.4327, allocations: 167.6 kB / 482.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.4327, allocations: 0 / 482.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.4327, allocations: 0 / 482.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.892e-06/0.4328, allocations: 11.89 kB / 482.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.048e-05/0.4328, allocations: 39.92 kB / 482.7 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004487/0.4333, allocations: 379.2 kB / 483.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000172/0.4335, allocations: 134.5 kB / 483.2 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.149e-05/0.4336, allocations: 55.55 kB / 483.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.196e-05/0.4336, allocations: 3.953 kB / 483.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001208/0.4337, allocations: 79.33 kB / 483.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.4337, allocations: 0 / 483.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.000243/0.434, allocations: 125.4 kB / 483.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.687e-05/0.4341, allocations: 162.1 kB / 483.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/0.4343, allocations: 249 kB / 483.9 MB, free: 13.67 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.4344, allocations: 29.8 kB / 483.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.078e-05/0.4344, allocations: 120.4 kB / 484 MB, free: 13.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.597e-05/0.4345, allocations: 19.73 kB / 484 MB, free: 13.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.592e-06/0.4345, allocations: 4 kB / 484 MB, free: 13.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.4346, allocations: 326.8 kB / 484.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.301e-05/0.4347, allocations: 20 kB / 484.4 MB, free: 13.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.739e-05/0.4348, allocations: 87.66 kB / 484.5 MB, free: 13.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.626e-05/0.4348, allocations: 27.98 kB / 484.5 MB, free: 13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.4348, allocations: 0 / 484.5 MB, free: 13 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001753/0.435, allocations: 133.5 kB / 484.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.435, allocations: 8.891 kB / 484.6 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.435, allocations: 4 kB / 484.6 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.4351, allocations: 0 / 484.6 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.097e-05/0.4351, allocations: 19.92 kB / 484.6 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.4352, allocations: 4 kB / 484.7 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.767e-05/0.4352, allocations: 11.91 kB / 484.7 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.4353, allocations: 8.188 kB / 484.7 MB, free: 12.8 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.119e-05/0.4353, allocations: 116.9 kB / 484.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.563e-05/0.4354, allocations: 73.42 kB / 484.9 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001868/0.4356, allocations: 123.5 kB / 485 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.4357, allocations: 0 / 485 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4357, allocations: 4 kB / 485 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.4357, allocations: 0 / 485 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001838/0.4359, allocations: 237.7 kB / 485.2 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.4359, allocations: 0 / 485.2 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.478e-05/0.4359, allocations: 11.94 kB / 485.2 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.4359, allocations: 3.984 kB / 485.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.4359, allocations: 8 kB / 485.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.4359, allocations: 3.953 kB / 485.2 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.436, allocations: 0 / 485.2 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002331/0.4362, allocations: 216.4 kB / 485.5 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.4363, allocations: 120.7 kB / 485.6 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.193e-05/0.4364, allocations: 3.984 kB / 485.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.195e-05/0.4365, allocations: 12 kB / 485.6 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.914e-05/0.4365, allocations: 3.984 kB / 485.6 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.4365, allocations: 12 kB / 485.6 MB, free: 11.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001739/0.4367, allocations: 197.3 kB / 485.8 MB, free: 11.55 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4367, allocations: 0 / 485.8 MB, free: 11.55 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002406/0.437, allocations: 36 kB / 485.8 MB, free: 11.52 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001202/0.4382, allocations: 1.231 MB / 487.1 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001721/0.4383, allocations: 80.11 kB / 487.1 MB, free: 10.28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4384, allocations: 4.125 kB / 487.1 MB, free: 10.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.777e-05/0.4384, allocations: 31.98 kB / 487.2 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003319/0.4388, allocations: 64.28 kB / 487.2 MB, free: 10.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006003/0.4394, allocations: 314.4 kB / 487.5 MB, free: 9.824 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.4397, allocations: 0.7444 MB / 488.3 MB, free: 9.051 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.855e-05/0.4398, allocations: 29.67 kB / 488.3 MB, free: 9.023 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.465e-05/0.4398, allocations: 55.41 kB / 488.4 MB, free: 8.969 MB / 362.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4399, allocations: 0 / 488.4 MB, free: 8.969 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0148/0.4547, allocations: 4.375 MB / 492.7 MB, free: 4.711 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001762/0.4549, allocations: 216.1 kB / 493 MB, free: 4.477 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.641/2.096, allocations: 0 / 493 MB, free: 4.477 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat does not exist to compare? outputFormat=mat