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.005479/0.005478, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.229/2.229, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 93.33 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.301/0.301, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.195e-05/2.203e-05, allocations: 4 kB / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4234/0.4234, allocations: 58.85 MB / 477.2 MB, free: 5.266 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1719/0.5954, allocations: 87.26 MB / 0.5512 GB, free: 12.04 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.5956, allocations: 63.25 kB / 0.5513 GB, free: 11.98 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01971/0.6154, allocations: 3.906 MB / 0.5551 GB, free: 8.059 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6154, allocations: 4 kB / 0.5551 GB, free: 8.055 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.18e-05/0.6154, allocations: 7.938 kB / 0.5551 GB, free: 8.047 MB / 395.1 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.001619/0.6171, allocations: 0.5705 MB / 0.5556 GB, free: 7.438 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/0.6171, allocations: 8.031 kB / 0.5557 GB, free: 7.43 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.6173, allocations: 35.83 kB / 0.5557 GB, free: 7.395 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004313/0.6177, allocations: 243.6 kB / 0.5559 GB, free: 7.113 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.865e-05/0.6178, allocations: 15.98 kB / 0.5559 GB, free: 7.098 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.059e-05/0.6178, allocations: 20 kB / 0.556 GB, free: 7.078 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003871/0.6182, allocations: 108 kB / 0.5561 GB, free: 6.973 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005321/0.6188, allocations: 197.5 kB / 0.5562 GB, free: 6.773 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.6188, allocations: 0 / 0.5562 GB, free: 6.773 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.779e-05/0.6189, allocations: 3.984 kB / 0.5562 GB, free: 6.77 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.6189, allocations: 8 kB / 0.5563 GB, free: 6.762 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001559/0.6204, allocations: 0.5163 MB / 0.5568 GB, free: 6.207 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006862/0.6212, allocations: 277.6 kB / 0.557 GB, free: 5.93 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002968/0.6215, allocations: 112.8 kB / 0.5571 GB, free: 5.816 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.894e-05/0.6215, allocations: 7.984 kB / 0.5571 GB, free: 5.809 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006447/0.6222, allocations: 243.3 kB / 0.5574 GB, free: 5.559 MB / 395.1 MB Notification: Performance of pre-optimization done (n=43): time 4.99e-06/0.6222, allocations: 0 / 0.5574 GB, free: 5.559 MB / 395.1 MB Notification: Performance of matching and sorting (n=43): time 0.001221/0.6234, allocations: 409.2 kB / 0.5578 GB, free: 5.152 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.871e-05/0.6235, allocations: 71.39 kB / 0.5578 GB, free: 5.07 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002972/0.6239, allocations: 183 kB / 0.558 GB, free: 4.883 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 5.657e-05/0.6239, allocations: 33.7 kB / 0.558 GB, free: 4.844 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.6241, allocations: 183.7 kB / 0.5582 GB, free: 4.66 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.6242, allocations: 102.8 kB / 0.5583 GB, free: 4.559 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-05/0.6243, allocations: 4 kB / 0.5583 GB, free: 4.555 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.6244, allocations: 326.8 kB / 0.5586 GB, free: 4.227 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002375/0.6247, allocations: 81.11 kB / 0.5587 GB, free: 4.148 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004345/0.6251, allocations: 264.3 kB / 0.559 GB, free: 3.801 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000366/0.6255, allocations: 129.4 kB / 0.5591 GB, free: 3.676 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.503e-06/0.6255, allocations: 0 / 0.5591 GB, free: 3.676 MB / 395.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009594/0.6265, allocations: 360.9 kB / 0.5594 GB, free: 3.316 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.6265, allocations: 4.781 kB / 0.5594 GB, free: 3.312 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.397e-05/0.6266, allocations: 11.95 kB / 0.5594 GB, free: 3.301 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.508e-05/0.6266, allocations: 15.94 kB / 0.5595 GB, free: 3.285 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004064/0.627, allocations: 67.78 kB / 0.5595 GB, free: 3.219 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.312e-05/0.6271, allocations: 15.97 kB / 0.5595 GB, free: 3.203 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003552/0.6274, allocations: 31.78 kB / 0.5596 GB, free: 3.172 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.021e-05/0.6275, allocations: 24 kB / 0.5596 GB, free: 3.148 MB / 395.1 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.0002712/0.6278, allocations: 160.8 kB / 0.5597 GB, free: 2.984 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001149/0.629, allocations: 421.5 kB / 0.5601 GB, free: 2.566 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.774e-05/0.629, allocations: 31.58 kB / 0.5602 GB, free: 2.535 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.6292, allocations: 35.33 kB / 0.5602 GB, free: 2.504 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.707e-05/0.6292, allocations: 4 kB / 0.5602 GB, free: 2.5 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.6292, allocations: 0 / 0.5602 GB, free: 2.5 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.6292, allocations: 3.984 kB / 0.5602 GB, free: 2.496 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002242/0.6315, allocations: 0.8627 MB / 0.5611 GB, free: 1.59 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.6315, allocations: 0 / 0.5611 GB, free: 1.59 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.6317, allocations: 15.98 kB / 0.5611 GB, free: 1.574 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.949e-06/0.6317, allocations: 0 / 0.5611 GB, free: 1.574 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.215e-05/0.6317, allocations: 7.984 kB / 0.5611 GB, free: 1.566 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.034e-06/0.6318, allocations: 8 kB / 0.5611 GB, free: 1.559 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.6318, allocations: 0 / 0.5611 GB, free: 1.559 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.6329, allocations: 0.5229 MB / 0.5616 GB, free: 1.02 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.6331, allocations: 96.83 kB / 0.5617 GB, free: 0.9062 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.79e-05/0.6332, allocations: 15.98 kB / 0.5617 GB, free: 0.8906 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004277/0.6336, allocations: 39.95 kB / 0.5617 GB, free: 0.8516 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.985e-05/0.6337, allocations: 23.97 kB / 0.5618 GB, free: 0.8281 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.467e-05/0.6338, allocations: 19.98 kB / 0.5618 GB, free: 0.8086 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0002042/0.634, allocations: 141.5 kB / 0.5619 GB, free: 0.6719 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6341, allocations: 0 / 0.5619 GB, free: 0.6719 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0006237/0.6347, allocations: 63.92 kB / 0.562 GB, free: 0.6094 MB / 395.1 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.001833/0.6365, allocations: 1.08 MB / 0.563 GB, free: 15.5 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.6378, allocations: 285.6 kB / 0.5633 GB, free: 15.22 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.6378, allocations: 0 / 0.5633 GB, free: 15.22 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006157/0.6385, allocations: 152.3 kB / 0.5635 GB, free: 15.07 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005166/0.639, allocations: 35.75 kB / 0.5635 GB, free: 15.04 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001989/0.641, allocations: 469.6 kB / 0.5639 GB, free: 14.54 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000473/0.6415, allocations: 0.776 MB / 0.5647 GB, free: 13.74 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002536/0.6418, allocations: 79.41 kB / 0.5648 GB, free: 13.66 MB / 411.1 MB Notification: Performance of SimCode: time 1.302e-06/0.6418, allocations: 4 kB / 0.5648 GB, free: 13.66 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.786/3.428, allocations: 4.347 MB / 0.569 GB, free: 9.312 MB / 411.1 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