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.001244/0.001244, allocations: 183 kB / 13.19 MB, free: 2.129 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.659/1.659, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.0008244/0.0008243, allocations: 94.59 kB / 267.1 MB, free: 9.273 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.4927/0.4927, allocations: 43.47 MB / 358.6 MB, free: 52.3 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.456e-05/4.458e-05, allocations: 4 kB / 425.4 MB, free: 8.809 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1788/0.1789, allocations: 58.84 MB / 484.2 MB, free: 13.86 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5378/0.7167, allocations: 87.92 MB / 0.5587 GB, free: 1.035 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001683/0.7169, allocations: 65.41 kB / 0.5588 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01164/0.7286, allocations: 3.946 MB / 0.5627 GB, free: 13.05 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.7286, allocations: 4 kB / 0.5627 GB, free: 13.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.452e-05/0.7286, allocations: 4 kB / 0.5627 GB, free: 13.05 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.00104/0.7297, allocations: 0.5713 MB / 0.5632 GB, free: 12.44 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.7297, allocations: 8.031 kB / 0.5632 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.508e-05/0.7298, allocations: 57.92 kB / 0.5633 GB, free: 12.37 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.845e-05/0.7299, allocations: 35.7 kB / 0.5633 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002938/0.7302, allocations: 239.6 kB / 0.5636 GB, free: 12.06 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.7302, allocations: 19.98 kB / 0.5636 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.784e-05/0.7303, allocations: 24 kB / 0.5636 GB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003954/0.7307, allocations: 217.4 kB / 0.5638 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.7307, allocations: 1.375 kB / 0.5638 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.652e-05/0.7307, allocations: 7.984 kB / 0.5638 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.7307, allocations: 4 kB / 0.5638 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002277/0.731, allocations: 127.9 kB / 0.5639 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009812/0.732, allocations: 0.5563 MB / 0.5645 GB, free: 11.05 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004675/0.7325, allocations: 314.8 kB / 0.5648 GB, free: 10.74 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.7327, allocations: 121.7 kB / 0.5649 GB, free: 10.62 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.7327, allocations: 11.98 kB / 0.5649 GB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004039/0.7331, allocations: 235.5 kB / 0.5651 GB, free: 10.36 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 2.124e-06/0.7331, allocations: 0 / 0.5651 GB, free: 10.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.0008066/0.7339, allocations: 445 kB / 0.5656 GB, free: 9.922 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.018e-05/0.734, allocations: 67.39 kB / 0.5656 GB, free: 9.844 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001813/0.7342, allocations: 192.3 kB / 0.5658 GB, free: 9.652 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.246e-05/0.7342, allocations: 49.69 kB / 0.5659 GB, free: 9.598 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.59e-05/0.7343, allocations: 129 kB / 0.566 GB, free: 9.469 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.208e-05/0.7344, allocations: 98.84 kB / 0.5661 GB, free: 9.371 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.676e-05/0.7344, allocations: 12 kB / 0.5661 GB, free: 9.359 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.7346, allocations: 343.3 kB / 0.5664 GB, free: 9.016 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.7348, allocations: 89.11 kB / 0.5665 GB, free: 8.93 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002947/0.7351, allocations: 281.4 kB / 0.5668 GB, free: 8.566 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002204/0.7353, allocations: 145 kB / 0.5669 GB, free: 8.426 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.7353, allocations: 3.938 kB / 0.5669 GB, free: 8.422 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005994/0.7359, allocations: 425.9 kB / 0.5673 GB, free: 8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.7359, allocations: 4 kB / 0.5673 GB, free: 7.996 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.736, allocations: 8.703 kB / 0.5673 GB, free: 7.988 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.471e-05/0.736, allocations: 8 kB / 0.5673 GB, free: 7.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.7362, allocations: 68.5 kB / 0.5674 GB, free: 7.914 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.803e-05/0.7362, allocations: 15.92 kB / 0.5674 GB, free: 7.898 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001831/0.7364, allocations: 44.16 kB / 0.5675 GB, free: 7.855 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.183e-05/0.7365, allocations: 31.98 kB / 0.5675 GB, free: 7.824 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 () * 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.0001501/0.7366, allocations: 169.8 kB / 0.5676 GB, free: 7.652 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.016e-05/0.7367, allocations: 27.67 kB / 0.5677 GB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.703e-05/0.7367, allocations: 26.78 kB / 0.5677 GB, free: 7.605 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.7367, allocations: 11.92 kB / 0.5677 GB, free: 7.594 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.7368, allocations: 4 kB / 0.5677 GB, free: 7.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.7368, allocations: 0 / 0.5677 GB, free: 7.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001415/0.7382, allocations: 0.932 MB / 0.5686 GB, free: 6.602 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.7382, allocations: 0 / 0.5686 GB, free: 6.602 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.244e-05/0.7383, allocations: 19.98 kB / 0.5686 GB, free: 6.582 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.241e-06/0.7383, allocations: 4 kB / 0.5686 GB, free: 6.578 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-05/0.7383, allocations: 11.98 kB / 0.5687 GB, free: 6.566 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.7383, allocations: 0 / 0.5687 GB, free: 6.566 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.7383, allocations: 0 / 0.5687 GB, free: 6.566 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006898/0.739, allocations: 0.5386 MB / 0.5692 GB, free: 6.012 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.845e-05/0.7391, allocations: 100.8 kB / 0.5693 GB, free: 5.895 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.477e-05/0.7392, allocations: 19.98 kB / 0.5693 GB, free: 5.875 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002548/0.7394, allocations: 35.95 kB / 0.5693 GB, free: 5.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.349e-05/0.7395, allocations: 27.97 kB / 0.5694 GB, free: 5.812 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.177e-05/0.7395, allocations: 15.98 kB / 0.5694 GB, free: 5.797 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001193/0.7397, allocations: 153.5 kB / 0.5695 GB, free: 5.648 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7397, allocations: 0 / 0.5695 GB, free: 5.648 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003786/0.7401, allocations: 75.92 kB / 0.5696 GB, free: 5.574 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) * 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.001009/0.7411, allocations: 1.115 MB / 0.5707 GB, free: 4.434 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004955/0.7416, allocations: 311.6 kB / 0.571 GB, free: 4.129 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.7416, allocations: 0 / 0.571 GB, free: 4.129 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002297/0.7418, allocations: 157.5 kB / 0.5711 GB, free: 3.977 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.7422, allocations: 35.97 kB / 0.5712 GB, free: 3.941 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.7434, allocations: 465.5 kB / 0.5716 GB, free: 3.449 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.7437, allocations: 0.7725 MB / 0.5724 GB, free: 2.652 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 9.27e-05/0.7438, allocations: 30.97 kB / 0.5724 GB, free: 2.625 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.744, allocations: 87.34 kB / 0.5725 GB, free: 2.539 MB / 394.7 MB Notification: Performance of SimCode: time 3.21e-07/0.744, allocations: 0 / 0.5725 GB, free: 2.539 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01697/0.7609, allocations: 5.078 MB / 0.5774 GB, free: 13.54 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001529/0.7611, allocations: 140.6 kB / 0.5776 GB, free: 13.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.87/2.631, allocations: 0 / 0.5776 GB, free: 13.3 MB / 410.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