Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_3_2_3_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.0009987/0.0009988, allocations: 183.6 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.527/1.527, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009353/0.0009354, allocations: 102.8 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2077/0.2077, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000298/0.0002979, allocations: 8 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1156, allocations: 58.86 MB / 490.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3376/0.4533, allocations: 88.01 MB / 0.5648 GB, free: 11.76 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/0.4537, allocations: 60.58 kB / 0.5648 GB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01155/0.4652, allocations: 3.967 MB / 0.5687 GB, free: 8.289 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.4652, allocations: 0 / 0.5687 GB, free: 8.289 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.443e-05/0.4653, allocations: 8 kB / 0.5687 GB, free: 8.281 MB / 378.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.0009774/0.4662, allocations: 0.5943 MB / 0.5693 GB, free: 7.656 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.4663, allocations: 11.97 kB / 0.5693 GB, free: 7.645 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.261e-05/0.4664, allocations: 52.05 kB / 0.5694 GB, free: 7.594 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.406e-05/0.4664, allocations: 39.56 kB / 0.5694 GB, free: 7.555 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002713/0.4667, allocations: 240.1 kB / 0.5696 GB, free: 7.289 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.4667, allocations: 19.05 kB / 0.5697 GB, free: 7.273 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.857e-05/0.4668, allocations: 22.88 kB / 0.5697 GB, free: 7.258 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004167/0.4672, allocations: 231.5 kB / 0.5699 GB, free: 7.074 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.4672, allocations: 0 / 0.5699 GB, free: 7.074 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.4673, allocations: 7.125 kB / 0.5699 GB, free: 7.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.4673, allocations: 8 kB / 0.5699 GB, free: 7.062 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002655/0.4675, allocations: 135 kB / 0.57 GB, free: 6.969 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009427/0.4685, allocations: 0.5617 MB / 0.5706 GB, free: 6.438 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004761/0.469, allocations: 326.7 kB / 0.5709 GB, free: 6.203 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.469, allocations: 7.984 kB / 0.5709 GB, free: 6.195 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003708/0.4694, allocations: 244.5 kB / 0.5711 GB, free: 5.996 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 1.923e-06/0.4694, allocations: 0 / 0.5711 GB, free: 5.996 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.0008896/0.4703, allocations: 0.5681 MB / 0.5717 GB, free: 5.547 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.788e-05/0.4704, allocations: 78.94 kB / 0.5718 GB, free: 5.461 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.4705, allocations: 186.7 kB / 0.5719 GB, free: 5.297 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/0.4706, allocations: 47.94 kB / 0.572 GB, free: 5.254 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.576e-05/0.4707, allocations: 125.2 kB / 0.5721 GB, free: 5.152 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.969e-05/0.4708, allocations: 110.1 kB / 0.5722 GB, free: 5.062 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-05/0.4708, allocations: 8.438 kB / 0.5722 GB, free: 5.062 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.471, allocations: 340.2 kB / 0.5726 GB, free: 4.734 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001996/0.4712, allocations: 102.6 kB / 0.5726 GB, free: 4.664 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002846/0.4715, allocations: 288.1 kB / 0.5729 GB, free: 4.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002232/0.4717, allocations: 154.8 kB / 0.5731 GB, free: 4.238 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.4717, allocations: 0 / 0.5731 GB, free: 4.238 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005763/0.4723, allocations: 445.7 kB / 0.5735 GB, free: 3.891 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.4723, allocations: 12.22 kB / 0.5735 GB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.4723, allocations: 4 kB / 0.5735 GB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.4724, allocations: 16 kB / 0.5735 GB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.4725, allocations: 58.91 kB / 0.5736 GB, free: 3.809 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.4726, allocations: 19.92 kB / 0.5736 GB, free: 3.789 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.4728, allocations: 38 kB / 0.5736 GB, free: 3.762 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.4728, allocations: 19.38 kB / 0.5737 GB, free: 3.746 MB / 378.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.0001679/0.473, allocations: 205.8 kB / 0.5739 GB, free: 3.559 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.289e-05/0.473, allocations: 35.66 kB / 0.5739 GB, free: 3.523 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.423e-05/0.4731, allocations: 26 kB / 0.5739 GB, free: 3.512 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.4731, allocations: 8 kB / 0.5739 GB, free: 3.504 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.4731, allocations: 0 / 0.5739 GB, free: 3.504 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.4731, allocations: 3.984 kB / 0.5739 GB, free: 3.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.4744, allocations: 0.9401 MB / 0.5748 GB, free: 2.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4744, allocations: 0 / 0.5748 GB, free: 2.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.699e-05/0.4744, allocations: 16 kB / 0.5749 GB, free: 2.645 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.4745, allocations: 3.984 kB / 0.5749 GB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/0.4745, allocations: 18.73 kB / 0.5749 GB, free: 2.629 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.4745, allocations: 0 / 0.5749 GB, free: 2.629 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.4745, allocations: 0 / 0.5749 GB, free: 2.629 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006624/0.4752, allocations: 0.5632 MB / 0.5754 GB, free: 2.148 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.338e-05/0.4752, allocations: 96.77 kB / 0.5755 GB, free: 2.035 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.216e-05/0.4753, allocations: 23.59 kB / 0.5755 GB, free: 2.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.4755, allocations: 34.91 kB / 0.5756 GB, free: 1.988 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.418e-05/0.4756, allocations: 31.28 kB / 0.5756 GB, free: 1.965 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.12e-05/0.4756, allocations: 11.98 kB / 0.5756 GB, free: 1.953 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001093/0.4758, allocations: 156.3 kB / 0.5758 GB, free: 1.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4758, allocations: 0 / 0.5758 GB, free: 1.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003353/0.4761, allocations: 76.34 kB / 0.5758 GB, free: 1.758 MB / 378.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.0009371/0.477, allocations: 1.13 MB / 0.5769 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004807/0.4775, allocations: 331.6 kB / 0.5773 GB, free: 468 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4776, allocations: 0 / 0.5773 GB, free: 468 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002353/0.4778, allocations: 169.4 kB / 0.5774 GB, free: 336 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002578/0.4781, allocations: 43.31 kB / 0.5775 GB, free: 300 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003359/0.4814, allocations: 5.574 MB / 0.5829 GB, free: 10.81 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.4817, allocations: 0.7684 MB / 0.5837 GB, free: 10.02 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 8.511e-05/0.4818, allocations: 34.97 kB / 0.5837 GB, free: 9.988 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.4819, allocations: 88.66 kB / 0.5838 GB, free: 9.953 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4819, allocations: 0 / 0.5838 GB, free: 9.953 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01519/0.4971, allocations: 5.02 MB / 0.5887 GB, free: 4.969 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/0.4973, allocations: 163.2 kB / 0.5888 GB, free: 4.727 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.761/2.258, allocations: 3.938 kB / 0.5888 GB, free: 4.723 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Discrete_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Discrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Discrete_res.mat does not exist to compare? outputFormat=mat