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.00167/0.00167, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.868/1.868, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009137/0.0009137, allocations: 86.64 kB / 261.7 MB, free: 1.684 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.2147/0.2147, allocations: 43.5 MB / 353.2 MB, free: 292 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.906e-05/1.909e-05, allocations: 0 / 418.3 MB, free: 28.47 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1229, allocations: 58.86 MB / 477.2 MB, free: 1.57 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4041/0.527, allocations: 87.26 MB / 0.5512 GB, free: 7.762 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001443/0.5272, allocations: 55.23 kB / 0.5513 GB, free: 7.738 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01036/0.5376, allocations: 3.918 MB / 0.5551 GB, free: 4.516 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5376, allocations: 0 / 0.5551 GB, free: 4.516 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.5376, allocations: 4 kB / 0.5551 GB, free: 4.512 MB / 362.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.0008317/0.5385, allocations: 0.5693 MB / 0.5557 GB, free: 3.926 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.5385, allocations: 16.23 kB / 0.5557 GB, free: 3.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.58e-05/0.5386, allocations: 31.62 kB / 0.5557 GB, free: 3.879 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.5388, allocations: 238.3 kB / 0.5559 GB, free: 3.617 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.5389, allocations: 15.92 kB / 0.556 GB, free: 3.605 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.393e-05/0.5389, allocations: 15.98 kB / 0.556 GB, free: 3.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001999/0.5391, allocations: 114.3 kB / 0.5561 GB, free: 3.516 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002799/0.5394, allocations: 203.9 kB / 0.5563 GB, free: 3.352 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.5394, allocations: 0 / 0.5563 GB, free: 3.352 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.5395, allocations: 0 / 0.5563 GB, free: 3.352 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.5395, allocations: 4 kB / 0.5563 GB, free: 3.348 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007989/0.5403, allocations: 0.5202 MB / 0.5568 GB, free: 2.867 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003385/0.5406, allocations: 286.7 kB / 0.5571 GB, free: 2.676 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.5408, allocations: 110.5 kB / 0.5572 GB, free: 2.598 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-05/0.5408, allocations: 7.375 kB / 0.5572 GB, free: 2.594 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002917/0.5411, allocations: 236.8 kB / 0.5574 GB, free: 2.402 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 1.914e-06/0.5411, allocations: 0 / 0.5574 GB, free: 2.402 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.0005402/0.5417, allocations: 414.3 kB / 0.5578 GB, free: 2.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.5417, allocations: 74.7 kB / 0.5579 GB, free: 1.988 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.5418, allocations: 179.2 kB / 0.558 GB, free: 1.828 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/0.5419, allocations: 36.83 kB / 0.5581 GB, free: 1.789 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.457e-05/0.5419, allocations: 128.3 kB / 0.5582 GB, free: 1.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.271e-05/0.542, allocations: 95.28 kB / 0.5583 GB, free: 1.609 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.255e-05/0.542, allocations: 0 / 0.5583 GB, free: 1.609 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.608e-05/0.5421, allocations: 347.2 kB / 0.5586 GB, free: 1.273 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.5422, allocations: 80.25 kB / 0.5587 GB, free: 1.227 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.5424, allocations: 264.9 kB / 0.5589 GB, free: 0.918 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001662/0.5426, allocations: 124.7 kB / 0.5591 GB, free: 0.832 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.5426, allocations: 4 kB / 0.5591 GB, free: 0.8281 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0004292/0.5431, allocations: 363.4 kB / 0.5594 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.5431, allocations: 8 kB / 0.5594 GB, free: 0.5156 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.5431, allocations: 15.89 kB / 0.5594 GB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.5431, allocations: 8 kB / 0.5594 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001975/0.5433, allocations: 70.66 kB / 0.5595 GB, free: 440 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.5433, allocations: 12.48 kB / 0.5595 GB, free: 428 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001609/0.5435, allocations: 35.69 kB / 0.5596 GB, free: 392 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.5435, allocations: 23.17 kB / 0.5596 GB, free: 372 kB / 362.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.0001014/0.5437, allocations: 159.5 kB / 0.5597 GB, free: 212 kB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005209/0.5442, allocations: 418 kB / 0.5601 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.035e-05/0.5442, allocations: 31.66 kB / 0.5602 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.971e-05/0.5443, allocations: 25.53 kB / 0.5602 GB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.5443, allocations: 8 kB / 0.5602 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.5443, allocations: 0 / 0.5602 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.5443, allocations: 3.984 kB / 0.5602 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001215/0.5455, allocations: 0.8625 MB / 0.561 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.5456, allocations: 3.938 kB / 0.561 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.498e-05/0.5456, allocations: 15.98 kB / 0.5611 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.5457, allocations: 3.938 kB / 0.5611 GB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.738e-05/0.5457, allocations: 11.23 kB / 0.5611 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.5457, allocations: 4 kB / 0.5611 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.5457, allocations: 0 / 0.5611 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006138/0.5463, allocations: 0.5216 MB / 0.5616 GB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.784e-05/0.5464, allocations: 100.7 kB / 0.5617 GB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.028e-05/0.5465, allocations: 22.47 kB / 0.5617 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.5467, allocations: 27.97 kB / 0.5617 GB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.436e-05/0.5468, allocations: 27.09 kB / 0.5618 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.944e-05/0.5469, allocations: 19.97 kB / 0.5618 GB, free: 14.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000104/0.547, allocations: 145.5 kB / 0.5619 GB, free: 14.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.547, allocations: 4 kB / 0.5619 GB, free: 14.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003484/0.5473, allocations: 55.94 kB / 0.562 GB, free: 14.19 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) * 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.0009364/0.5483, allocations: 1.083 MB / 0.563 GB, free: 13.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004251/0.5487, allocations: 286.1 kB / 0.5633 GB, free: 12.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.5487, allocations: 0 / 0.5633 GB, free: 12.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.5489, allocations: 152.3 kB / 0.5634 GB, free: 12.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.5492, allocations: 32.25 kB / 0.5635 GB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.5504, allocations: 436.8 kB / 0.5639 GB, free: 12.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003989/0.5508, allocations: 0.7749 MB / 0.5647 GB, free: 11.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.254e-05/0.5509, allocations: 35.28 kB / 0.5647 GB, free: 11.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.551, allocations: 82.41 kB / 0.5648 GB, free: 11.54 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.551, allocations: 0 / 0.5648 GB, free: 11.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02391/0.5749, allocations: 4.672 MB / 0.5693 GB, free: 6.887 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001686/0.5751, allocations: 115.4 kB / 0.5694 GB, free: 6.695 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/2.42, allocations: 0 / 0.5694 GB, free: 6.695 MB / 378.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