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.001269/0.001269, allocations: 180.7 kB / 14.15 MB, free: 1.176 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.499/1.499, allocations: 221.3 MB / 236 MB, free: 2.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008698/0.00087, allocations: 92.03 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2171/0.2171, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.827e-05/3.83e-05, allocations: 4.219 kB / 451.9 MB, free: 9.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1359, allocations: 61.91 MB / 0.5018 GB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4404/0.5763, allocations: 88.91 MB / 0.5886 GB, free: 356 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001948/0.5766, allocations: 63.97 kB / 0.5887 GB, free: 292 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0126/0.5892, allocations: 4.01 MB / 0.5926 GB, free: 12.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.542e-06/0.5892, allocations: 0 / 0.5926 GB, free: 12.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.434e-05/0.5893, allocations: 4 kB / 0.5926 GB, free: 12.27 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.001156/0.5904, allocations: 0.5802 MB / 0.5932 GB, free: 11.64 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.5905, allocations: 8.031 kB / 0.5932 GB, free: 11.64 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.268e-05/0.5906, allocations: 58.48 kB / 0.5932 GB, free: 11.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.112e-05/0.5906, allocations: 35.61 kB / 0.5933 GB, free: 11.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000321/0.591, allocations: 235.7 kB / 0.5935 GB, free: 11.26 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.591, allocations: 19.98 kB / 0.5935 GB, free: 11.24 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.243e-05/0.5911, allocations: 23.98 kB / 0.5935 GB, free: 11.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004196/0.5915, allocations: 221.4 kB / 0.5937 GB, free: 11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.5915, allocations: 3.984 kB / 0.5937 GB, free: 10.99 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/0.5915, allocations: 7.984 kB / 0.5937 GB, free: 10.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.5916, allocations: 4 kB / 0.5938 GB, free: 10.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002406/0.5918, allocations: 123.9 kB / 0.5939 GB, free: 10.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.5929, allocations: 0.5587 MB / 0.5944 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004746/0.5934, allocations: 309 kB / 0.5947 GB, free: 9.941 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001992/0.5936, allocations: 116.8 kB / 0.5948 GB, free: 9.824 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.226e-05/0.5936, allocations: 8 kB / 0.5948 GB, free: 9.816 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003836/0.594, allocations: 235.5 kB / 0.5951 GB, free: 9.574 MB / 410.7 MB Notification: Performance of pre-optimization done (n=43): time 2.033e-06/0.5941, allocations: 0 / 0.5951 GB, free: 9.574 MB / 410.7 MB Notification: Performance of matching and sorting (n=43): time 0.0007649/0.5948, allocations: 445 kB / 0.5955 GB, free: 9.133 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.084e-05/0.5949, allocations: 79.33 kB / 0.5956 GB, free: 9.043 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.5951, allocations: 191 kB / 0.5957 GB, free: 8.852 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.5952, allocations: 45.69 kB / 0.5958 GB, free: 8.801 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.725e-05/0.5953, allocations: 125 kB / 0.5959 GB, free: 8.672 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.53e-05/0.5954, allocations: 102.7 kB / 0.596 GB, free: 8.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.714e-05/0.5954, allocations: 12 kB / 0.596 GB, free: 8.559 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.5956, allocations: 350.8 kB / 0.5963 GB, free: 8.207 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.5957, allocations: 89.11 kB / 0.5964 GB, free: 8.121 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004463/0.5962, allocations: 277.4 kB / 0.5967 GB, free: 7.762 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002334/0.5965, allocations: 135.9 kB / 0.5968 GB, free: 7.629 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.5965, allocations: 0 / 0.5968 GB, free: 7.629 MB / 410.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006167/0.5971, allocations: 430.9 kB / 0.5972 GB, free: 7.203 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.5971, allocations: 9.094 kB / 0.5972 GB, free: 7.195 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.5971, allocations: 8 kB / 0.5972 GB, free: 7.188 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.5972, allocations: 8 kB / 0.5973 GB, free: 7.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002362/0.5974, allocations: 75.73 kB / 0.5973 GB, free: 7.105 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.914e-05/0.5974, allocations: 12.61 kB / 0.5973 GB, free: 7.094 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001857/0.5976, allocations: 35.75 kB / 0.5974 GB, free: 7.059 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.382e-05/0.5977, allocations: 27.98 kB / 0.5974 GB, free: 7.031 MB / 410.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.0001699/0.5978, allocations: 176.8 kB / 0.5976 GB, free: 6.852 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.025e-05/0.5979, allocations: 23.72 kB / 0.5976 GB, free: 6.828 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.573e-05/0.598, allocations: 34.7 kB / 0.5976 GB, free: 6.793 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.598, allocations: 4 kB / 0.5976 GB, free: 6.789 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.598, allocations: 3.953 kB / 0.5976 GB, free: 6.785 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.5981, allocations: 3.938 kB / 0.5976 GB, free: 6.781 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00141/0.5995, allocations: 0.9162 MB / 0.5985 GB, free: 5.809 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.5995, allocations: 0 / 0.5985 GB, free: 5.809 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.595e-05/0.5996, allocations: 23.91 kB / 0.5986 GB, free: 5.785 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.5996, allocations: 8 kB / 0.5986 GB, free: 5.777 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.695e-05/0.5996, allocations: 7.984 kB / 0.5986 GB, free: 5.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.5996, allocations: 4 kB / 0.5986 GB, free: 5.766 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.5996, allocations: 0 / 0.5986 GB, free: 5.766 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007117/0.6003, allocations: 0.5348 MB / 0.5991 GB, free: 5.215 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.754e-05/0.6004, allocations: 100.8 kB / 0.5992 GB, free: 5.098 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.844e-05/0.6005, allocations: 19.98 kB / 0.5992 GB, free: 5.078 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002349/0.6007, allocations: 39.95 kB / 0.5993 GB, free: 5.039 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.396e-05/0.6008, allocations: 27.97 kB / 0.5993 GB, free: 5.012 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/0.6009, allocations: 15.98 kB / 0.5993 GB, free: 4.996 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001519/0.601, allocations: 149.5 kB / 0.5994 GB, free: 4.852 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.224e-06/0.601, allocations: 0 / 0.5994 GB, free: 4.852 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003655/0.6014, allocations: 83.77 kB / 0.5995 GB, free: 4.77 MB / 410.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.001176/0.6026, allocations: 1.106 MB / 0.6006 GB, free: 3.637 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005475/0.6032, allocations: 321.2 kB / 0.6009 GB, free: 3.324 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.6032, allocations: 0 / 0.6009 GB, free: 3.324 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000248/0.6034, allocations: 163.8 kB / 0.6011 GB, free: 3.164 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003072/0.6037, allocations: 34.16 kB / 0.6011 GB, free: 3.133 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.605, allocations: 462.4 kB / 0.6015 GB, free: 2.641 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.6054, allocations: 0.7647 MB / 0.6023 GB, free: 1.848 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.6055, allocations: 34.97 kB / 0.6023 GB, free: 1.816 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.6057, allocations: 87.41 kB / 0.6024 GB, free: 1.73 MB / 410.7 MB Notification: Performance of SimCode: time 3.5e-07/0.6057, allocations: 0 / 0.6024 GB, free: 1.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01734/0.623, allocations: 5.07 MB / 0.6073 GB, free: 12.77 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002234/0.6233, allocations: 131.9 kB / 0.6075 GB, free: 12.55 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.896/2.52, allocations: 4.062 kB / 0.6075 GB, free: 12.55 MB / 426.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