Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001466/0.001466, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008966/0.0008966, allocations: 95.73 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3114/0.3114, allocations: 45.16 MB / 383.8 MB, free: 308 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.429e-05/2.432e-05, allocations: 4 kB / 453.3 MB, free: 75.76 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1188, allocations: 63.24 MB / 0.5044 GB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4216/0.5405, allocations: 89.31 MB / 0.5917 GB, free: 13.17 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001659/0.5407, allocations: 66.22 kB / 0.5917 GB, free: 13.14 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01209/0.5528, allocations: 4.096 MB / 0.5957 GB, free: 9.629 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.5528, allocations: 0 / 0.5957 GB, free: 9.629 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.5528, allocations: 4.219 kB / 0.5957 GB, free: 9.625 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.0009811/0.5538, allocations: 0.5674 MB / 0.5963 GB, free: 9.031 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.5539, allocations: 8.031 kB / 0.5963 GB, free: 9.023 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.554, allocations: 56.34 kB / 0.5963 GB, free: 8.973 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/0.5544, allocations: 233.6 kB / 0.5966 GB, free: 8.711 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.5544, allocations: 11.86 kB / 0.5966 GB, free: 8.703 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.28e-05/0.5544, allocations: 16 kB / 0.5966 GB, free: 8.688 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002214/0.5547, allocations: 109.4 kB / 0.5967 GB, free: 8.617 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000326/0.555, allocations: 193.5 kB / 0.5969 GB, free: 8.465 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.555, allocations: 7.969 kB / 0.5969 GB, free: 8.457 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/0.5551, allocations: 4 kB / 0.5969 GB, free: 8.453 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.5551, allocations: 4 kB / 0.5969 GB, free: 8.449 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009328/0.556, allocations: 0.5289 MB / 0.5974 GB, free: 7.953 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000397/0.5564, allocations: 286.6 kB / 0.5977 GB, free: 7.758 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.5566, allocations: 108.4 kB / 0.5978 GB, free: 7.684 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.601e-05/0.5566, allocations: 7.953 kB / 0.5978 GB, free: 7.676 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003204/0.557, allocations: 226.3 kB / 0.598 GB, free: 7.492 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 4.308e-06/0.557, allocations: 0 / 0.598 GB, free: 7.492 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.0006495/0.5576, allocations: 422 kB / 0.5984 GB, free: 7.152 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.517e-05/0.5577, allocations: 74.62 kB / 0.5985 GB, free: 7.07 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001673/0.5579, allocations: 184 kB / 0.5987 GB, free: 6.91 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.5579, allocations: 36.83 kB / 0.5987 GB, free: 6.871 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.475e-05/0.558, allocations: 134.4 kB / 0.5988 GB, free: 6.758 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.707e-05/0.5581, allocations: 93.36 kB / 0.5989 GB, free: 6.684 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.376e-05/0.5581, allocations: 0 / 0.5989 GB, free: 6.684 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.5583, allocations: 341.4 kB / 0.5992 GB, free: 6.355 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.5584, allocations: 81.86 kB / 0.5993 GB, free: 6.305 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002627/0.5587, allocations: 266.5 kB / 0.5996 GB, free: 5.996 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001811/0.5589, allocations: 128.1 kB / 0.5997 GB, free: 5.906 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.5589, allocations: 0 / 0.5997 GB, free: 5.906 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005511/0.5595, allocations: 373.4 kB / 0.6 GB, free: 5.598 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.5595, allocations: 11.95 kB / 0.6001 GB, free: 5.586 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.5595, allocations: 8 kB / 0.6001 GB, free: 5.578 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.5595, allocations: 8 kB / 0.6001 GB, free: 5.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/0.5598, allocations: 67.22 kB / 0.6001 GB, free: 5.508 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.955e-05/0.5598, allocations: 15.97 kB / 0.6002 GB, free: 5.492 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001716/0.56, allocations: 27.69 kB / 0.6002 GB, free: 5.465 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.248e-05/0.56, allocations: 23.88 kB / 0.6002 GB, free: 5.445 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.0001721/0.5602, allocations: 167.4 kB / 0.6004 GB, free: 5.285 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005696/0.5608, allocations: 413.7 kB / 0.6008 GB, free: 4.953 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.972e-05/0.5608, allocations: 31.67 kB / 0.6008 GB, free: 4.922 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.246e-05/0.5609, allocations: 29.33 kB / 0.6008 GB, free: 4.906 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.5609, allocations: 8 kB / 0.6008 GB, free: 4.898 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.5609, allocations: 0 / 0.6008 GB, free: 4.898 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.004e-06/0.5609, allocations: 3.984 kB / 0.6008 GB, free: 4.895 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001246/0.5622, allocations: 0.8488 MB / 0.6017 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.5622, allocations: 0 / 0.6017 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.195e-05/0.5623, allocations: 22.92 kB / 0.6017 GB, free: 4.113 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.5623, allocations: 4 kB / 0.6017 GB, free: 4.109 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.634e-05/0.5623, allocations: 7.984 kB / 0.6017 GB, free: 4.102 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.5624, allocations: 0 / 0.6017 GB, free: 4.102 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.5624, allocations: 0 / 0.6017 GB, free: 4.102 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006174/0.563, allocations: 0.5245 MB / 0.6022 GB, free: 3.648 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.103e-05/0.5631, allocations: 108.6 kB / 0.6023 GB, free: 3.523 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.53e-05/0.5631, allocations: 18.8 kB / 0.6023 GB, free: 3.508 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/0.5634, allocations: 38.39 kB / 0.6024 GB, free: 3.473 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.681e-05/0.5634, allocations: 26.03 kB / 0.6024 GB, free: 3.453 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/0.5635, allocations: 15.98 kB / 0.6024 GB, free: 3.438 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001069/0.5636, allocations: 139.5 kB / 0.6025 GB, free: 3.32 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5636, allocations: 0 / 0.6025 GB, free: 3.32 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003948/0.564, allocations: 65.92 kB / 0.6026 GB, free: 3.258 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.000941/0.565, allocations: 1.078 MB / 0.6036 GB, free: 2.242 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004235/0.5654, allocations: 290.3 kB / 0.6039 GB, free: 2.027 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5654, allocations: 0 / 0.6039 GB, free: 2.027 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002053/0.5656, allocations: 157 kB / 0.6041 GB, free: 1.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.5659, allocations: 29.55 kB / 0.6041 GB, free: 1.891 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.5671, allocations: 428.4 kB / 0.6045 GB, free: 1.488 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003859/0.5675, allocations: 0.7683 MB / 0.6053 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001124/0.5676, allocations: 39.28 kB / 0.6053 GB, free: 0.6562 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.5677, allocations: 83.59 kB / 0.6054 GB, free: 0.625 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5677, allocations: 0 / 0.6054 GB, free: 0.625 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02493/0.5927, allocations: 4.662 MB / 0.6099 GB, free: 11.99 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001768/0.5929, allocations: 116.1 kB / 0.61 GB, free: 11.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.81/2.403, allocations: 4.031 kB / 0.61 GB, free: 11.79 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Discrete_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Discrete_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Discrete.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Discrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.Discrete_res.mat does not exist to compare? outputFormat=mat