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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009185/0.0009184, allocations: 97.42 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 183.8 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2096/0.2096, allocations: 44.23 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000334/0.000334, allocations: 8 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1393, allocations: 61.92 MB / 471.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.002426/0.1418, allocations: 1.575 MB / 473.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.143, allocations: 0.616 MB / 473.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.748e-05/0.1431, allocations: 4 kB / 473.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.1434, allocations: 31.77 kB / 473.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.1435, allocations: 71.81 kB / 473.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003798/0.1439, allocations: 79.83 kB / 473.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002496/0.1442, allocations: 179.6 kB / 474.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.1444, allocations: 36.39 kB / 474.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001803/0.1446, allocations: 107.6 kB / 474.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002758/0.1448, allocations: 147.5 kB / 474.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.64e-05/0.1449, allocations: 12 kB / 474.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.735e-05/0.1449, allocations: 8 kB / 474.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.1451, allocations: 71.78 kB / 474.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.463e-05/0.1452, allocations: 69.56 kB / 474.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002884/0.1455, allocations: 171.8 kB / 474.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1455, allocations: 0 / 474.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1455, allocations: 0 / 474.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1455, allocations: 0 / 474.7 MB, free: 10.46 MB / 350.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.001434/0.1469, allocations: 0.6052 MB / 475.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.147, allocations: 8.031 kB / 475.3 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.771e-05/0.1471, allocations: 54.53 kB / 475.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.977e-05/0.1471, allocations: 27.72 kB / 475.4 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003051/0.1474, allocations: 247.6 kB / 475.6 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.568e-05/0.1475, allocations: 19.92 kB / 475.6 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.403e-05/0.1475, allocations: 31.92 kB / 475.7 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004177/0.148, allocations: 221.5 kB / 475.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.148, allocations: 0 / 475.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.78e-05/0.148, allocations: 11.98 kB / 475.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.148, allocations: 4 kB / 475.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002921/0.1483, allocations: 139.9 kB / 476 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.1494, allocations: 0.5663 MB / 476.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000509/0.1499, allocations: 314.8 kB / 476.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/0.1499, allocations: 7.984 kB / 476.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004235/0.1504, allocations: 243.5 kB / 477.2 MB, free: 7.809 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.954e-06/0.1504, allocations: 0 / 477.2 MB, free: 7.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.001089/0.1515, allocations: 0.5712 MB / 477.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.097e-05/0.1516, allocations: 71.39 kB / 477.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.1518, allocations: 215.7 kB / 478 MB, free: 6.926 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.155e-05/0.1518, allocations: 41.7 kB / 478.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.1519, allocations: 136.9 kB / 478.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.176e-05/0.152, allocations: 98.7 kB / 478.3 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.676e-05/0.1521, allocations: 12 kB / 478.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000247/0.1523, allocations: 350.8 kB / 478.6 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.1525, allocations: 97.08 kB / 478.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003792/0.1529, allocations: 285.4 kB / 479 MB, free: 5.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002914/0.1532, allocations: 147.9 kB / 479.2 MB, free: 5.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.1532, allocations: 0 / 479.2 MB, free: 5.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000739/0.1539, allocations: 453.4 kB / 479.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.154, allocations: 11.92 kB / 479.6 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.154, allocations: 11.94 kB / 479.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.154, allocations: 8 kB / 479.6 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002111/0.1542, allocations: 63.84 kB / 479.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.1543, allocations: 8 kB / 479.7 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.1545, allocations: 47.62 kB / 479.8 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.749e-05/0.1545, allocations: 27.94 kB / 479.8 MB, free: 5.051 MB / 350.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 () * 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.0002388/0.1547, allocations: 202.2 kB / 480 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.98e-05/0.1548, allocations: 27.72 kB / 480 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.224e-05/0.1548, allocations: 23 kB / 480 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/0.1549, allocations: 7.984 kB / 480 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.1549, allocations: 0 / 480 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.1549, allocations: 4 kB / 480 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001488/0.1564, allocations: 0.9435 MB / 481 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1564, allocations: 4 kB / 481 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.401e-05/0.1565, allocations: 23.92 kB / 481 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.1565, allocations: 7.891 kB / 481 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/0.1565, allocations: 11.98 kB / 481 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.1565, allocations: 4 kB / 481 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1565, allocations: 0 / 481 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007542/0.1573, allocations: 0.5554 MB / 481.6 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.162e-05/0.1574, allocations: 108.8 kB / 481.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.677e-05/0.1575, allocations: 15.94 kB / 481.7 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.1577, allocations: 39.91 kB / 481.7 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.649e-05/0.1578, allocations: 27.95 kB / 481.8 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.015e-05/0.1578, allocations: 23.98 kB / 481.8 MB, free: 2.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001341/0.158, allocations: 145.5 kB / 481.9 MB, free: 2.793 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.158, allocations: 0 / 481.9 MB, free: 2.793 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003808/0.1584, allocations: 75.89 kB / 482 MB, free: 2.719 MB / 350.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) * 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.001241/0.1596, allocations: 1.118 MB / 483.1 MB, free: 1.574 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005628/0.1602, allocations: 336.8 kB / 483.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1602, allocations: 4.062 kB / 483.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00026/0.1605, allocations: 167.8 kB / 483.6 MB, free: 1.082 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003897/0.1609, allocations: 31.94 kB / 483.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005686/0.1666, allocations: 5.573 MB / 489.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005609/0.1672, allocations: 0.7725 MB / 490 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001151/0.1673, allocations: 34.91 kB / 490 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.1675, allocations: 87.5 kB / 490.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1675, allocations: 3.938 kB / 490.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01785/0.1853, allocations: 5.015 MB / 495.1 MB, free: 5.488 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002239/0.1856, allocations: 154.5 kB / 495.3 MB, free: 5.254 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/2.011, allocations: 0 / 495.3 MB, free: 5.254 MB / 366.1 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