Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.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.Discrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Discrete",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.001636/0.001636, 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.732/1.732, allocations: 221.5 MB / 230.7 MB, free: 7.574 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.0008941/0.000894, allocations: 98.75 kB / 281.6 MB, free: 5.324 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.1958/0.1958, allocations: 44.14 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.9e-05/1.886e-05, allocations: 224 / 444.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1537, allocations: 61.92 MB / 0.4948 GB, free: 1.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4658/0.6196, allocations: 88.24 MB / 0.5809 GB, free: 8.137 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001986/0.6199, allocations: 63.97 kB / 0.581 GB, free: 8.074 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01229/0.6322, allocations: 3.982 MB / 0.5849 GB, free: 4.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.6322, allocations: 3.938 kB / 0.5849 GB, free: 4.086 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.443e-05/0.6322, allocations: 4 kB / 0.5849 GB, free: 4.082 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001076/0.6333, allocations: 0.5775 MB / 0.5855 GB, free: 3.461 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.6334, allocations: 15.98 kB / 0.5855 GB, free: 3.445 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.833e-05/0.6335, allocations: 31.62 kB / 0.5855 GB, free: 3.414 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000315/0.6338, allocations: 239.7 kB / 0.5857 GB, free: 3.137 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.6338, allocations: 15.94 kB / 0.5857 GB, free: 3.121 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.634e-05/0.6339, allocations: 12 kB / 0.5858 GB, free: 3.109 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002423/0.6341, allocations: 120 kB / 0.5859 GB, free: 2.992 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003407/0.6345, allocations: 194.3 kB / 0.5861 GB, free: 2.797 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.6345, allocations: 0 / 0.5861 GB, free: 2.797 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.105e-05/0.6345, allocations: 7.984 kB / 0.5861 GB, free: 2.789 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.6345, allocations: 7.938 kB / 0.5861 GB, free: 2.781 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009323/0.6355, allocations: 0.5163 MB / 0.5866 GB, free: 2.227 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000417/0.6359, allocations: 285 kB / 0.5868 GB, free: 1.941 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.6361, allocations: 112.8 kB / 0.587 GB, free: 1.828 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.6361, allocations: 7.938 kB / 0.587 GB, free: 1.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003546/0.6365, allocations: 223.1 kB / 0.5872 GB, free: 1.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 1.764e-06/0.6365, allocations: 0 / 0.5872 GB, free: 1.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.0006663/0.6372, allocations: 429.5 kB / 0.5876 GB, free: 1.164 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.596e-05/0.6372, allocations: 75.34 kB / 0.5877 GB, free: 1.078 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001716/0.6374, allocations: 179 kB / 0.5878 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.327e-05/0.6375, allocations: 41.69 kB / 0.5879 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/0.6376, allocations: 125.3 kB / 0.588 GB, free: 0.7227 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.744e-05/0.6377, allocations: 102.8 kB / 0.5881 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.381e-05/0.6377, allocations: 0 / 0.5881 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.6378, allocations: 342.8 kB / 0.5884 GB, free: 284 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.638, allocations: 89.11 kB / 0.5885 GB, free: 196 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003037/0.6383, allocations: 260.3 kB / 0.5887 GB, free: 15.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002072/0.6385, allocations: 130 kB / 0.5889 GB, free: 15.72 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.6385, allocations: 4 kB / 0.5889 GB, free: 15.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005542/0.6391, allocations: 368.8 kB / 0.5892 GB, free: 15.35 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.6391, allocations: 8 kB / 0.5892 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.6391, allocations: 8.703 kB / 0.5892 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.6392, allocations: 8 kB / 0.5892 GB, free: 15.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.6394, allocations: 64.5 kB / 0.5893 GB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.715e-05/0.6394, allocations: 12 kB / 0.5893 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.6396, allocations: 39.62 kB / 0.5894 GB, free: 15.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.225e-05/0.6396, allocations: 20 kB / 0.5894 GB, free: 15.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.triggeredMax.y,triggeredMax.y,$PRE.triggeredSampler.y,triggeredSampler.y,$PRE.stateSpace.firstTrigger,stateSpace.firstTrigger,$PRE.stateSpace.x[1],stateSpace.x[1],$PRE.stateSpace.x[2],stateSpace.x[2],$PRE.stateSpace.y[1],stateSpace.y[1],$PRE.transferFunction.firstTrigger,transferFunction.firstTrigger,$PRE.transferFunction.x1,transferFunction.x1,$PRE.transferFunction.xext[1],transferFunction.xext[1],$PRE.transferFunction.xext[2],transferFunction.xext[2],$PRE.transferFunction.x[1],transferFunction.x[1],$PRE.transferFunction.y,transferFunction.y,$PRE.unitDelay.firstTrigger,unitDelay.firstTrigger,$PRE.unitDelay.y,unitDelay.y,$PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.sampler.firstTrigger,sampler.firstTrigger,$whenCondition8,$whenCondition1,sampler.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition2,zeroOrderHold.sampleTrigger,$whenCondition3,firstOrderHold.sampleTrigger,$whenCondition4,unitDelay.sampleTrigger,$whenCondition5,transferFunction.sampleTrigger,$whenCondition6,stateSpace.sampleTrigger,$whenCondition7,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,sampler.y,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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 0.0001673/0.6398, allocations: 152.8 kB / 0.5895 GB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005875/0.6404, allocations: 417.2 kB / 0.5899 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.875e-05/0.6405, allocations: 23.77 kB / 0.5899 GB, free: 14.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.679e-05/0.6405, allocations: 39.38 kB / 0.59 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.6405, allocations: 4 kB / 0.59 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.6406, allocations: 3.953 kB / 0.59 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.6406, allocations: 0 / 0.59 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001269/0.6418, allocations: 0.8666 MB / 0.5908 GB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.6419, allocations: 0 / 0.5908 GB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.222e-05/0.6419, allocations: 15.98 kB / 0.5908 GB, free: 13.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.6419, allocations: 0 / 0.5908 GB, free: 13.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.063e-05/0.642, allocations: 11.98 kB / 0.5909 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.642, allocations: 0 / 0.5909 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.642, allocations: 4 kB / 0.5909 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006395/0.6426, allocations: 0.5107 MB / 0.5914 GB, free: 13.09 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.806e-05/0.6427, allocations: 108.7 kB / 0.5915 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.081e-05/0.6428, allocations: 15.98 kB / 0.5915 GB, free: 12.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002245/0.643, allocations: 23.97 kB / 0.5915 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.239e-05/0.6431, allocations: 35.95 kB / 0.5915 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.339e-05/0.6432, allocations: 19.92 kB / 0.5916 GB, free: 12.87 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001134/0.6433, allocations: 140.2 kB / 0.5917 GB, free: 12.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6433, allocations: 0 / 0.5917 GB, free: 12.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003576/0.6437, allocations: 63.92 kB / 0.5918 GB, free: 12.67 MB / 410.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: 39 (booleanPulse.y,stateSpace.sampleTrigger,transferFunction.sampleTrigger,unitDelay.sampleTrigger,firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,sampler.sampleTrigger,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c,unitDelay.firstTrigger,unitDelay.y,transferFunction.firstTrigger,transferFunction.y,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],stateSpace.firstTrigger,stateSpace.y[1],stateSpace.x[1],stateSpace.x[2],triggeredSampler.y,booleanPulse.pulseStart,triggeredMax.y) * Number of discrete states: 8 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * 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.001037/0.6447, allocations: 1.085 MB / 0.5928 GB, free: 11.55 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004765/0.6452, allocations: 283.6 kB / 0.5931 GB, free: 11.28 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.6452, allocations: 0 / 0.5931 GB, free: 11.28 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002228/0.6454, allocations: 153.4 kB / 0.5932 GB, free: 11.13 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.6458, allocations: 27.97 kB / 0.5933 GB, free: 11.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.6469, allocations: 432 kB / 0.5937 GB, free: 10.65 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003896/0.6473, allocations: 0.7644 MB / 0.5944 GB, free: 9.859 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.756e-05/0.6475, allocations: 43.34 kB / 0.5945 GB, free: 9.816 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.6476, allocations: 87.34 kB / 0.5945 GB, free: 9.73 MB / 410.7 MB Notification: Performance of SimCode: time 2.71e-07/0.6476, allocations: 0 / 0.5945 GB, free: 9.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02596/0.6736, allocations: 4.651 MB / 0.5991 GB, free: 5.113 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/0.6738, allocations: 115.8 kB / 0.5992 GB, free: 4.922 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.877/2.551, allocations: 4.031 kB / 0.5992 GB, free: 4.918 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Discrete_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Discrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete_res.mat does not exist to compare? outputFormat=mat