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.001008/0.001008, allocations: 176.7 kB / 17.06 MB, free: 5.098 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.269/1.269, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009095/0.0009097, allocations: 105.5 kB / 292.1 MB, free: 10.91 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.3346/0.3346, allocations: 44.21 MB / 387.5 MB, free: 38.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003356/0.0003357, allocations: 8 kB / 460 MB, free: 1.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.3258, allocations: 61.89 MB / 0.5096 GB, free: 38.11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.109/0.4349, allocations: 88.98 MB / 0.5965 GB, free: 6.117 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001694/0.4351, allocations: 67.94 kB / 0.5966 GB, free: 6.055 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01153/0.4466, allocations: 4.043 MB / 0.6005 GB, free: 1.988 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4466, allocations: 0 / 0.6005 GB, free: 1.988 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.4467, allocations: 4 kB / 0.6005 GB, free: 1.984 MB / 410.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.0009971/0.4477, allocations: 0.5972 MB / 0.6011 GB, free: 1.344 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.4477, allocations: 12.02 kB / 0.6011 GB, free: 1.332 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.999e-05/0.4478, allocations: 50.55 kB / 0.6012 GB, free: 1.273 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.578e-05/0.4478, allocations: 31.61 kB / 0.6012 GB, free: 1.242 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002942/0.4481, allocations: 243.6 kB / 0.6014 GB, free: 0.9609 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.4482, allocations: 12 kB / 0.6015 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.163e-05/0.4482, allocations: 31.98 kB / 0.6015 GB, free: 0.918 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003888/0.4486, allocations: 221.4 kB / 0.6017 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.4486, allocations: 0 / 0.6017 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.696e-05/0.4487, allocations: 11.98 kB / 0.6017 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.4487, allocations: 4 kB / 0.6017 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002699/0.4489, allocations: 139.9 kB / 0.6018 GB, free: 0.543 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000933/0.4499, allocations: 0.5626 MB / 0.6024 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004575/0.4504, allocations: 316.2 kB / 0.6027 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.4504, allocations: 4 kB / 0.6027 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003763/0.4508, allocations: 257.1 kB / 0.6029 GB, free: 15.35 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 3.096e-06/0.4508, allocations: 0 / 0.6029 GB, free: 15.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=43): time 0.0009381/0.4517, allocations: 0.575 MB / 0.6035 GB, free: 14.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.148e-05/0.4518, allocations: 71.39 kB / 0.6036 GB, free: 14.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/0.452, allocations: 194.9 kB / 0.6038 GB, free: 14.49 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.147e-05/0.452, allocations: 49.69 kB / 0.6038 GB, free: 14.43 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.575e-05/0.4521, allocations: 121 kB / 0.6039 GB, free: 14.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.391e-05/0.4522, allocations: 102.8 kB / 0.604 GB, free: 14.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.616e-05/0.4522, allocations: 12 kB / 0.604 GB, free: 14.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.4524, allocations: 342.8 kB / 0.6044 GB, free: 13.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.4525, allocations: 101.1 kB / 0.6045 GB, free: 13.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000276/0.4528, allocations: 289.4 kB / 0.6047 GB, free: 13.39 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002239/0.4531, allocations: 145.5 kB / 0.6049 GB, free: 13.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.4531, allocations: 4 kB / 0.6049 GB, free: 13.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006087/0.4537, allocations: 448.6 kB / 0.6053 GB, free: 12.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.4537, allocations: 10.03 kB / 0.6053 GB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.4537, allocations: 8 kB / 0.6053 GB, free: 12.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.4538, allocations: 12 kB / 0.6053 GB, free: 12.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/0.4539, allocations: 63.84 kB / 0.6054 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/0.454, allocations: 15.89 kB / 0.6054 GB, free: 12.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000173/0.4542, allocations: 39.73 kB / 0.6054 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.575e-05/0.4542, allocations: 24 kB / 0.6055 GB, free: 12.63 MB / 426.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.0001745/0.4544, allocations: 198.2 kB / 0.6057 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.816e-05/0.4544, allocations: 23.72 kB / 0.6057 GB, free: 12.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.097e-05/0.4545, allocations: 35.02 kB / 0.6057 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.4545, allocations: 4 kB / 0.6057 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.4545, allocations: 0 / 0.6057 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.4545, allocations: 3.953 kB / 0.6057 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001293/0.4558, allocations: 0.9435 MB / 0.6066 GB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.4558, allocations: 4 kB / 0.6066 GB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.932e-05/0.4559, allocations: 19.98 kB / 0.6067 GB, free: 11.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.4559, allocations: 0 / 0.6067 GB, free: 11.34 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.4559, allocations: 15.98 kB / 0.6067 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.4559, allocations: 4 kB / 0.6067 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.4559, allocations: 7.922 kB / 0.6067 GB, free: 11.31 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006897/0.4566, allocations: 0.5515 MB / 0.6072 GB, free: 10.74 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.64e-05/0.4567, allocations: 104.7 kB / 0.6073 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.391e-05/0.4568, allocations: 15.98 kB / 0.6073 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/0.457, allocations: 39.91 kB / 0.6074 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.25e-05/0.4571, allocations: 31.95 kB / 0.6074 GB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.06e-05/0.4571, allocations: 15.98 kB / 0.6074 GB, free: 10.52 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001133/0.4572, allocations: 149.5 kB / 0.6076 GB, free: 10.38 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4572, allocations: 3.938 kB / 0.6076 GB, free: 10.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003485/0.4576, allocations: 79.91 kB / 0.6077 GB, free: 10.29 MB / 426.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.0009551/0.4586, allocations: 1.119 MB / 0.6087 GB, free: 9.148 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005384/0.4591, allocations: 337.7 kB / 0.6091 GB, free: 8.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.4591, allocations: 0 / 0.6091 GB, free: 8.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002498/0.4594, allocations: 167.9 kB / 0.6092 GB, free: 8.656 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002758/0.4597, allocations: 34.78 kB / 0.6093 GB, free: 8.625 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003548/0.4632, allocations: 5.572 MB / 0.6147 GB, free: 2.875 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003/0.4635, allocations: 0.7686 MB / 0.6155 GB, free: 2.082 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 9.778e-05/0.4636, allocations: 43.05 kB / 0.6155 GB, free: 2.043 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.4638, allocations: 79.41 kB / 0.6156 GB, free: 1.965 MB / 426.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4638, allocations: 0 / 0.6156 GB, free: 1.965 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01539/0.4792, allocations: 5.026 MB / 0.6205 GB, free: 13.06 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/0.4794, allocations: 161.4 kB / 0.6206 GB, free: 12.82 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.36, allocations: 0 / 0.6206 GB, free: 12.82 MB / 442.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