Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay",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.001607/0.001607, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 221.5 MB / 230.7 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.0009691/0.000969, allocations: 89.97 kB / 281.6 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2284/0.2284, allocations: 44.14 MB / 376.5 MB, free: 3.062 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.259e-05/3.25e-05, allocations: 4.219 kB / 444.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1577, allocations: 61.92 MB / 0.4948 GB, free: 1.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4595/0.6172, allocations: 89.86 MB / 0.5825 GB, free: 6.508 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.6175, allocations: 67.97 kB / 0.5826 GB, free: 6.441 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0176/0.6351, allocations: 6.113 MB / 0.5886 GB, free: 356 kB / 394.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.6352, allocations: 4 kB / 0.5886 GB, free: 352 kB / 394.7 MB Notification: Performance of Transformations before backend: time 2.14e-05/0.6352, allocations: 4 kB / 0.5886 GB, free: 348 kB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0008906/0.6361, allocations: 0.5957 MB / 0.5891 GB, free: 15.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.6362, allocations: 15.97 kB / 0.5892 GB, free: 15.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.525e-05/0.6362, allocations: 27.72 kB / 0.5892 GB, free: 15.63 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004545/0.6367, allocations: 277.7 kB / 0.5894 GB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.6368, allocations: 89.05 kB / 0.5895 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.447e-05/0.6369, allocations: 23.88 kB / 0.5896 GB, free: 15.19 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001705/0.637, allocations: 72.16 kB / 0.5896 GB, free: 15.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002202/0.6373, allocations: 131 kB / 0.5897 GB, free: 14.97 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.6373, allocations: 0 / 0.5897 GB, free: 14.97 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.6373, allocations: 4 kB / 0.5898 GB, free: 14.97 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.6373, allocations: 4 kB / 0.5898 GB, free: 14.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007915/0.6381, allocations: 0.599 MB / 0.5903 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002435/0.6384, allocations: 157.2 kB / 0.5905 GB, free: 14.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.6385, allocations: 78.56 kB / 0.5906 GB, free: 14.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.6385, allocations: 0 / 0.5906 GB, free: 14.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003758/0.6389, allocations: 419.4 kB / 0.591 GB, free: 13.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 1.293e-06/0.6389, allocations: 0 / 0.591 GB, free: 13.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004703/0.6394, allocations: 245.4 kB / 0.5912 GB, free: 13.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.6395, allocations: 221.6 kB / 0.5914 GB, free: 13.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003451/0.6399, allocations: 276.5 kB / 0.5917 GB, free: 12.78 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.6399, allocations: 29.7 kB / 0.5917 GB, free: 12.74 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.291e-05/0.64, allocations: 132.6 kB / 0.5918 GB, free: 12.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.178e-05/0.6401, allocations: 55.34 kB / 0.5919 GB, free: 12.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.001e-05/0.6401, allocations: 3.938 kB / 0.5919 GB, free: 12.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.6403, allocations: 338.9 kB / 0.5922 GB, free: 12.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.028e-05/0.6404, allocations: 44.12 kB / 0.5923 GB, free: 12.17 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.6405, allocations: 138.4 kB / 0.5924 GB, free: 12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001015/0.6407, allocations: 52.62 kB / 0.5924 GB, free: 11.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.6407, allocations: 0 / 0.5924 GB, free: 11.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003469/0.641, allocations: 226.5 kB / 0.5927 GB, free: 11.72 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.543e-05/0.6411, allocations: 97.09 kB / 0.5927 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.6411, allocations: 0 / 0.5927 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.6411, allocations: 4 kB / 0.5927 GB, free: 11.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.6413, allocations: 24.14 kB / 0.5928 GB, free: 11.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.6413, allocations: 8 kB / 0.5928 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001427/0.6414, allocations: 23.89 kB / 0.5928 GB, free: 11.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.6415, allocations: 12 kB / 0.5928 GB, free: 11.54 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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 0.0002008/0.6417, allocations: 233 kB / 0.593 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004095/0.6421, allocations: 269.3 kB / 0.5933 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.759e-05/0.6422, allocations: 35.72 kB / 0.5933 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002706/0.6424, allocations: 155.4 kB / 0.5935 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.6425, allocations: 4 kB / 0.5935 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.6425, allocations: 0 / 0.5935 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.6425, allocations: 0 / 0.5935 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002512/0.6427, allocations: 270 kB / 0.5937 GB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.6427, allocations: 3.938 kB / 0.5937 GB, free: 10.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.889e-05/0.6428, allocations: 11.98 kB / 0.5937 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.6428, allocations: 0 / 0.5937 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.344e-05/0.6428, allocations: 8 kB / 0.5938 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.6428, allocations: 4 kB / 0.5938 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.6428, allocations: 0 / 0.5938 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004453/0.6433, allocations: 347.8 kB / 0.5941 GB, free: 10.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.634e-05/0.6434, allocations: 112.8 kB / 0.5942 GB, free: 9.984 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.626e-05/0.6435, allocations: 12 kB / 0.5942 GB, free: 9.973 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.6436, allocations: 27.97 kB / 0.5942 GB, free: 9.945 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.226e-05/0.6437, allocations: 15.98 kB / 0.5943 GB, free: 9.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.6437, allocations: 11.98 kB / 0.5943 GB, free: 9.918 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002282/0.6439, allocations: 220.4 kB / 0.5945 GB, free: 9.707 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.644, allocations: 0 / 0.5945 GB, free: 9.707 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003265/0.6443, allocations: 71.98 kB / 0.5945 GB, free: 9.637 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.001518/0.6458, allocations: 1.274 MB / 0.5958 GB, free: 8.398 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004392/0.6463, allocations: 362.1 kB / 0.5961 GB, free: 8.008 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.6463, allocations: 0 / 0.5961 GB, free: 8.008 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002783/0.6466, allocations: 330.1 kB / 0.5964 GB, free: 7.648 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/0.6469, allocations: 48.23 kB / 0.5965 GB, free: 7.602 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008474/0.6477, allocations: 425.2 kB / 0.5969 GB, free: 7.141 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003895/0.6481, allocations: 0.7597 MB / 0.5976 GB, free: 6.352 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001081/0.6482, allocations: 33.98 kB / 0.5977 GB, free: 6.316 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.6484, allocations: 63.42 kB / 0.5977 GB, free: 6.254 MB / 410.7 MB Notification: Performance of SimCode: time 2.8e-07/0.6484, allocations: 4 kB / 0.5977 GB, free: 6.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02667/0.6751, allocations: 5.101 MB / 0.6027 GB, free: 1.156 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/0.6753, allocations: 149.7 kB / 0.6029 GB, free: 0.9609 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.763/2.438, allocations: 0 / 0.6029 GB, free: 0.9609 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat