Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002017/0.002016, allocations: 181.1 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.131/2.131, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001132/0.001132, allocations: 88.48 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5812/0.5812, allocations: 43.56 MB / 362.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006836/0.0006836, allocations: 12 kB / 431.5 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1319, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4725/0.6044, allocations: 88 MB / 0.5647 GB, free: 14.39 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/0.6047, allocations: 63.97 kB / 0.5648 GB, free: 14.33 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01995/0.6247, allocations: 3.972 MB / 0.5687 GB, free: 10.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.936e-06/0.6248, allocations: 3.938 kB / 0.5687 GB, free: 10.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.957e-05/0.6248, allocations: 4 kB / 0.5687 GB, free: 10.38 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.001743/0.6265, allocations: 0.5992 MB / 0.5693 GB, free: 9.734 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.6266, allocations: 8.031 kB / 0.5693 GB, free: 9.727 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000107/0.6267, allocations: 54.53 kB / 0.5693 GB, free: 9.664 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.085e-05/0.6268, allocations: 35.06 kB / 0.5694 GB, free: 9.633 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003994/0.6272, allocations: 247.6 kB / 0.5696 GB, free: 9.348 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.548e-05/0.6273, allocations: 12 kB / 0.5696 GB, free: 9.336 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.35e-05/0.6274, allocations: 25.05 kB / 0.5696 GB, free: 9.312 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006742/0.6281, allocations: 233.4 kB / 0.5699 GB, free: 9.078 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.6281, allocations: 0 / 0.5699 GB, free: 9.078 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.179e-05/0.6281, allocations: 9.016 kB / 0.5699 GB, free: 9.07 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.6282, allocations: 4 kB / 0.5699 GB, free: 9.066 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005029/0.6287, allocations: 135.9 kB / 0.57 GB, free: 8.934 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.6303, allocations: 0.5602 MB / 0.5706 GB, free: 8.324 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008236/0.6311, allocations: 322.6 kB / 0.5709 GB, free: 8 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.651e-05/0.6312, allocations: 4 kB / 0.5709 GB, free: 7.996 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006611/0.6318, allocations: 248.3 kB / 0.5711 GB, free: 7.742 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 5.972e-06/0.6319, allocations: 0 / 0.5711 GB, free: 7.742 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.001737/0.6336, allocations: 0.5712 MB / 0.5717 GB, free: 7.164 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.212e-05/0.6337, allocations: 79.31 kB / 0.5717 GB, free: 7.074 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002849/0.634, allocations: 190.9 kB / 0.5719 GB, free: 6.883 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.935e-05/0.6341, allocations: 45.69 kB / 0.572 GB, free: 6.832 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.6342, allocations: 187.4 kB / 0.5721 GB, free: 6.648 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.6344, allocations: 98.8 kB / 0.5722 GB, free: 6.551 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-05/0.6344, allocations: 12 kB / 0.5722 GB, free: 6.539 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.6346, allocations: 330.8 kB / 0.5726 GB, free: 6.207 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000332/0.6349, allocations: 101.1 kB / 0.5727 GB, free: 6.109 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004767/0.6354, allocations: 294.1 kB / 0.5729 GB, free: 5.738 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004302/0.6359, allocations: 149.4 kB / 0.5731 GB, free: 5.594 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.6359, allocations: 0 / 0.5731 GB, free: 5.594 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001122/0.637, allocations: 444.9 kB / 0.5735 GB, free: 5.152 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.6371, allocations: 4 kB / 0.5735 GB, free: 5.148 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/0.6371, allocations: 8 kB / 0.5735 GB, free: 5.141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.058e-05/0.6371, allocations: 8 kB / 0.5735 GB, free: 5.133 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003703/0.6375, allocations: 65.09 kB / 0.5736 GB, free: 5.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.176e-05/0.6376, allocations: 15.88 kB / 0.5736 GB, free: 5.055 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003124/0.6379, allocations: 39.83 kB / 0.5736 GB, free: 5.016 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.512e-05/0.6379, allocations: 24 kB / 0.5737 GB, free: 4.992 MB / 394.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 () * Number of clocked 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.0003566/0.6383, allocations: 197.6 kB / 0.5739 GB, free: 4.789 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.238e-05/0.6384, allocations: 35.58 kB / 0.5739 GB, free: 4.754 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.197e-05/0.6385, allocations: 31.02 kB / 0.5739 GB, free: 4.727 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.6385, allocations: 9.125 kB / 0.5739 GB, free: 4.719 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.6385, allocations: 0 / 0.5739 GB, free: 4.719 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.6385, allocations: 3.984 kB / 0.5739 GB, free: 4.715 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00245/0.641, allocations: 0.9377 MB / 0.5748 GB, free: 3.723 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.6411, allocations: 3.984 kB / 0.5748 GB, free: 3.719 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001324/0.6412, allocations: 16 kB / 0.5749 GB, free: 3.703 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-05/0.6412, allocations: 4 kB / 0.5749 GB, free: 3.699 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.639e-05/0.6413, allocations: 11.98 kB / 0.5749 GB, free: 3.688 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.548e-06/0.6413, allocations: 7.922 kB / 0.5749 GB, free: 3.684 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.6413, allocations: 0 / 0.5749 GB, free: 3.684 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.6426, allocations: 0.5617 MB / 0.5754 GB, free: 3.105 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.817e-05/0.6427, allocations: 104.7 kB / 0.5755 GB, free: 2.984 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.972e-05/0.6428, allocations: 15.98 kB / 0.5756 GB, free: 2.969 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000413/0.6433, allocations: 43.89 kB / 0.5756 GB, free: 2.926 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.055e-05/0.6434, allocations: 27.97 kB / 0.5756 GB, free: 2.898 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.116e-05/0.6434, allocations: 15.98 kB / 0.5756 GB, free: 2.883 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002179/0.6437, allocations: 152.2 kB / 0.5758 GB, free: 2.734 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.6437, allocations: 0 / 0.5758 GB, free: 2.734 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000586/0.6443, allocations: 68 kB / 0.5758 GB, free: 2.668 MB / 394.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) * Number of clocked states: 0 () * 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.001737/0.646, allocations: 1.126 MB / 0.5769 GB, free: 1.516 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009953/0.647, allocations: 334.8 kB / 0.5773 GB, free: 1.191 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.6471, allocations: 0 / 0.5773 GB, free: 1.191 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004871/0.6476, allocations: 173.4 kB / 0.5774 GB, free: 1.023 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004743/0.6481, allocations: 40.38 kB / 0.5775 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005899/0.654, allocations: 5.607 MB / 0.5829 GB, free: 11.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004189/0.6544, allocations: 0.7724 MB / 0.5837 GB, free: 10.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002172/0.6547, allocations: 87.34 kB / 0.5838 GB, free: 10.32 MB / 410.7 MB Notification: Performance of SimCode: time 9.72e-07/0.6547, allocations: 0 / 0.5838 GB, free: 10.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.629/3.284, allocations: 4.284 MB / 0.588 GB, free: 6.047 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Discrete_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Discrete.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Discrete_res.mat does not exist to compare? outputFormat=mat