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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0008776/0.0008778, allocations: 100.7 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001065/0.001065, allocations: 196.5 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246 MB, free: 10.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2455/0.2455, allocations: 45.92 MB / 344.1 MB, free: 12.08 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002985/0.0002985, allocations: 11.94 kB / 418.2 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1428, allocations: 63.47 MB / 481.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.002168/0.1451, allocations: 1.603 MB / 483.2 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.1462, allocations: 0.6588 MB / 483.9 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.963e-05/0.1463, allocations: 4 kB / 483.9 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002085/0.1465, allocations: 31.77 kB / 483.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.761e-05/0.1466, allocations: 59.67 kB / 484 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003518/0.147, allocations: 91.83 kB / 484.1 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002585/0.1473, allocations: 259.1 kB / 484.3 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.1474, allocations: 40.36 kB / 484.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002395/0.1477, allocations: 115.6 kB / 484.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.1479, allocations: 155.4 kB / 484.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.287e-05/0.148, allocations: 8 kB / 484.6 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.456e-05/0.148, allocations: 16 kB / 484.7 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.223e-05/0.1481, allocations: 67.78 kB / 484.7 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.965e-05/0.1482, allocations: 65.58 kB / 484.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002072/0.1484, allocations: 183.8 kB / 485 MB, free: 1.902 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1484, allocations: 0 / 485 MB, free: 1.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1485, allocations: 0 / 485 MB, free: 1.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1485, allocations: 0 / 485 MB, free: 1.902 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.001289/0.1498, allocations: 0.6169 MB / 485.6 MB, free: 1.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.1498, allocations: 12.03 kB / 485.6 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.486e-05/0.1499, allocations: 46.55 kB / 485.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001685/0.1501, allocations: 43.69 kB / 485.7 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003002/0.1504, allocations: 251.7 kB / 485.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.571e-05/0.1504, allocations: 15.94 kB / 485.9 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.518e-05/0.1505, allocations: 23.98 kB / 486 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004722/0.1509, allocations: 241.4 kB / 486.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.151, allocations: 0 / 486.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3e-05/0.151, allocations: 11.98 kB / 486.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.151, allocations: 4 kB / 486.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003055/0.1513, allocations: 143.8 kB / 486.4 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.1524, allocations: 0.5742 MB / 486.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000551/0.1529, allocations: 330.8 kB / 487.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002359/0.1532, allocations: 132.8 kB / 487.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.1532, allocations: 7.984 kB / 487.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000487/0.1537, allocations: 263.4 kB / 487.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.824e-06/0.1537, allocations: 4 kB / 487.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.001345/0.1551, allocations: 0.5907 MB / 488.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.43e-05/0.1552, allocations: 71.39 kB / 488.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/0.1555, allocations: 207.8 kB / 488.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001532/0.1556, allocations: 49.69 kB / 488.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.828e-05/0.1557, allocations: 121 kB / 488.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.1558, allocations: 114.7 kB / 488.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.75e-05/0.1559, allocations: 8 kB / 488.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.156, allocations: 342.8 kB / 489.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.1563, allocations: 113 kB / 489.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003492/0.1566, allocations: 295.8 kB / 489.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002761/0.1569, allocations: 155.8 kB / 489.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.1569, allocations: 0 / 489.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0007125/0.1576, allocations: 468.1 kB / 490.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.1577, allocations: 15.95 kB / 490.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.1577, allocations: 4 kB / 490.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.1577, allocations: 12 kB / 490.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.1579, allocations: 67.83 kB / 490.2 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.655e-05/0.158, allocations: 11.94 kB / 490.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.1582, allocations: 47.67 kB / 490.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.388e-05/0.1582, allocations: 24 kB / 490.3 MB, free: 12.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 63 ($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,$whenCondition2,zeroOrderHold.sampleTrigger,$whenCondition3,firstOrderHold.sampleTrigger,$whenCondition4,unitDelay.sampleTrigger,$whenCondition5,transferFunction.sampleTrigger,$whenCondition6,stateSpace.sampleTrigger,$whenCondition7,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.sampler.y,sampler.y,$PRE.zeroOrderHold.ySample,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 (67): * Single equations (assignments): 67 * 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.0002029/0.1584, allocations: 201.7 kB / 490.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.233e-05/0.1585, allocations: 23.72 kB / 490.5 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.086e-05/0.1585, allocations: 34.94 kB / 490.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1585, allocations: 4 kB / 490.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1586, allocations: 0 / 490.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.1586, allocations: 0 / 490.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/0.1601, allocations: 0.976 MB / 491.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1601, allocations: 0 / 491.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.963e-05/0.1602, allocations: 15.98 kB / 491.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1602, allocations: 3.938 kB / 491.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.717e-05/0.1602, allocations: 11.98 kB / 491.6 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.1602, allocations: 4 kB / 491.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1602, allocations: 0 / 491.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000772/0.161, allocations: 0.5696 MB / 492.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.977e-05/0.1611, allocations: 100.8 kB / 492.3 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.518e-05/0.1611, allocations: 23.97 kB / 492.3 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002278/0.1614, allocations: 43.97 kB / 492.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.299e-05/0.1614, allocations: 31.95 kB / 492.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.916e-05/0.1615, allocations: 19.98 kB / 492.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001227/0.1616, allocations: 141.5 kB / 492.5 MB, free: 9.938 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1616, allocations: 0 / 492.5 MB, free: 9.938 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003726/0.162, allocations: 79.89 kB / 492.6 MB, free: 9.859 MB / 366.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: 9 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c,sampler.y) * 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.0012/0.1632, allocations: 1.138 MB / 493.7 MB, free: 8.691 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006976/0.1639, allocations: 360.9 kB / 494.1 MB, free: 8.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1639, allocations: 384 / 494.1 MB, free: 8.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002924/0.1642, allocations: 175.8 kB / 494.3 MB, free: 8.168 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003852/0.1646, allocations: 44.05 kB / 494.3 MB, free: 8.125 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002738/0.1674, allocations: 1.742 MB / 496 MB, free: 6.238 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005056/0.1679, allocations: 0.7646 MB / 496.8 MB, free: 5.449 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.969e-05/0.168, allocations: 38.97 kB / 496.8 MB, free: 5.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.1681, allocations: 83.41 kB / 496.9 MB, free: 5.332 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1681, allocations: 4 kB / 496.9 MB, free: 5.328 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.017/0.1852, allocations: 5.102 MB / 0.4903 GB, free: 344 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/0.1854, allocations: 163.5 kB / 0.4904 GB, free: 100 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.095, allocations: 0 / 0.4904 GB, free: 100 kB / 366.1 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