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.001416/0.001416, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.2 MB / 245 MB, free: 5.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009609/0.000961, allocations: 107.2 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4468/0.4468, allocations: 45.22 MB / 394.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003466/0.0003466, allocations: 12.2 kB / 468.5 MB, free: 7.613 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.3998, allocations: 63.24 MB / 0.5193 GB, free: 37.46 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1335/0.5334, allocations: 90.05 MB / 0.6072 GB, free: 13.38 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/0.5337, allocations: 59.95 kB / 0.6073 GB, free: 13.33 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01359/0.5473, allocations: 4.142 MB / 0.6113 GB, free: 9.16 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.5473, allocations: 0 / 0.6113 GB, free: 9.16 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.955e-05/0.5474, allocations: 4 kB / 0.6113 GB, free: 9.156 MB / 426.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.001224/0.5486, allocations: 0.5972 MB / 0.6119 GB, free: 8.512 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.187e-05/0.5487, allocations: 8.031 kB / 0.6119 GB, free: 8.504 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.5488, allocations: 58.53 kB / 0.612 GB, free: 8.438 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002178/0.549, allocations: 47.56 kB / 0.612 GB, free: 8.391 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003659/0.5494, allocations: 243.6 kB / 0.6122 GB, free: 8.109 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.5494, allocations: 12 kB / 0.6122 GB, free: 8.098 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.611e-05/0.5495, allocations: 23.98 kB / 0.6123 GB, free: 8.074 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004576/0.55, allocations: 233.4 kB / 0.6125 GB, free: 7.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.55, allocations: 0 / 0.6125 GB, free: 7.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/0.55, allocations: 8 kB / 0.6125 GB, free: 7.832 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.156e-06/0.55, allocations: 7.938 kB / 0.6125 GB, free: 7.824 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003067/0.5503, allocations: 139.9 kB / 0.6126 GB, free: 7.688 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.5515, allocations: 0.5587 MB / 0.6132 GB, free: 7.078 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005207/0.552, allocations: 322 kB / 0.6135 GB, free: 6.758 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.211e-05/0.5521, allocations: 8 kB / 0.6135 GB, free: 6.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004127/0.5525, allocations: 251.4 kB / 0.6137 GB, free: 6.492 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 2.335e-06/0.5525, allocations: 0 / 0.6137 GB, free: 6.492 MB / 426.7 MB Notification: Performance of matching and sorting (n=43): time 0.001051/0.5536, allocations: 0.5713 MB / 0.6143 GB, free: 5.914 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.17e-05/0.5537, allocations: 75.38 kB / 0.6144 GB, free: 5.828 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.5539, allocations: 190.9 kB / 0.6145 GB, free: 5.637 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.443e-05/0.5539, allocations: 45.69 kB / 0.6146 GB, free: 5.586 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.875e-05/0.554, allocations: 125 kB / 0.6147 GB, free: 5.461 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.563e-05/0.5541, allocations: 110.8 kB / 0.6148 GB, free: 5.352 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.561e-05/0.5541, allocations: 8 kB / 0.6148 GB, free: 5.344 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.5543, allocations: 342.8 kB / 0.6152 GB, free: 5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002061/0.5545, allocations: 105.1 kB / 0.6153 GB, free: 4.898 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003271/0.5548, allocations: 289.4 kB / 0.6155 GB, free: 4.527 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002686/0.5551, allocations: 147.9 kB / 0.6157 GB, free: 4.383 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.5551, allocations: 3.938 kB / 0.6157 GB, free: 4.379 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007186/0.5559, allocations: 448.8 kB / 0.6161 GB, free: 3.938 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.5559, allocations: 12.06 kB / 0.6161 GB, free: 3.926 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.5559, allocations: 4 kB / 0.6161 GB, free: 3.922 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.484e-05/0.5559, allocations: 12 kB / 0.6161 GB, free: 3.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002181/0.5562, allocations: 59.84 kB / 0.6162 GB, free: 3.852 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.053e-05/0.5562, allocations: 19.92 kB / 0.6162 GB, free: 3.832 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/0.5564, allocations: 35.75 kB / 0.6162 GB, free: 3.797 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.076e-05/0.5565, allocations: 20 kB / 0.6163 GB, free: 3.777 MB / 426.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 () * Number of clocked 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.0002941/0.5568, allocations: 201.6 kB / 0.6164 GB, free: 3.57 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.532e-05/0.5568, allocations: 31.67 kB / 0.6165 GB, free: 3.539 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.441e-05/0.5569, allocations: 31.03 kB / 0.6165 GB, free: 3.508 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.5569, allocations: 7.984 kB / 0.6165 GB, free: 3.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.5569, allocations: 0 / 0.6165 GB, free: 3.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.5569, allocations: 3.984 kB / 0.6165 GB, free: 3.496 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/0.5585, allocations: 0.941 MB / 0.6174 GB, free: 2.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.5585, allocations: 0 / 0.6174 GB, free: 2.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.437e-05/0.5586, allocations: 19.94 kB / 0.6175 GB, free: 2.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.86e-06/0.5586, allocations: 0 / 0.6175 GB, free: 2.48 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.516e-05/0.5586, allocations: 15.97 kB / 0.6175 GB, free: 2.465 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.5586, allocations: 0 / 0.6175 GB, free: 2.465 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.5586, allocations: 4 kB / 0.6175 GB, free: 2.461 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007821/0.5594, allocations: 0.5544 MB / 0.618 GB, free: 1.891 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.307e-05/0.5595, allocations: 100.8 kB / 0.6181 GB, free: 1.773 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.169e-05/0.5596, allocations: 19.98 kB / 0.6181 GB, free: 1.754 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002406/0.5598, allocations: 35.95 kB / 0.6182 GB, free: 1.719 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.522e-05/0.5599, allocations: 31.91 kB / 0.6182 GB, free: 1.688 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.514e-05/0.56, allocations: 15.98 kB / 0.6182 GB, free: 1.672 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001484/0.5601, allocations: 153.5 kB / 0.6184 GB, free: 1.523 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5601, allocations: 0 / 0.6184 GB, free: 1.523 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004297/0.5606, allocations: 79.84 kB / 0.6184 GB, free: 1.445 MB / 426.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) * Number of clocked states: 0 () * 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.0014/0.562, allocations: 1.132 MB / 0.6195 GB, free: 296 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000664/0.5626, allocations: 328.6 kB / 0.6199 GB, free: 15.96 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5627, allocations: 0.5 kB / 0.6199 GB, free: 15.96 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002985/0.563, allocations: 171.7 kB / 0.62 GB, free: 15.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.5633, allocations: 35.97 kB / 0.6201 GB, free: 15.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004927/0.5682, allocations: 5.577 MB / 0.6255 GB, free: 10.02 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000476/0.5687, allocations: 0.7647 MB / 0.6262 GB, free: 9.227 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.5689, allocations: 39.05 kB / 0.6263 GB, free: 9.191 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.569, allocations: 87.41 kB / 0.6264 GB, free: 9.105 MB / 442.7 MB Notification: Performance of SimCode: time 5.681e-06/0.569, allocations: 0 / 0.6264 GB, free: 9.105 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02181/0.5909, allocations: 5.019 MB / 0.6313 GB, free: 4.191 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002355/0.5912, allocations: 153.9 kB / 0.6314 GB, free: 3.957 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.854/2.445, allocations: 0 / 0.6314 GB, free: 3.957 MB / 442.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