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.00113/0.00113, allocations: 92.72 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001552/0.001552, allocations: 198.8 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.3 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2242/0.2242, allocations: 45.91 MB / 344 MB, free: 12.32 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003031/0.0003036, allocations: 8 kB / 418 MB, free: 20.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1331, allocations: 63.47 MB / 481.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.002025/0.1352, allocations: 1.595 MB / 483.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.1363, allocations: 0.651 MB / 483.8 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.887e-05/0.1364, allocations: 7.938 kB / 483.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002148/0.1367, allocations: 35.81 kB / 483.8 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.1368, allocations: 63.81 kB / 483.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003919/0.1372, allocations: 95.7 kB / 484 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002353/0.1374, allocations: 179.7 kB / 484.1 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.1376, allocations: 36.38 kB / 484.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002139/0.1378, allocations: 115.6 kB / 484.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002588/0.1381, allocations: 143.5 kB / 484.4 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.437e-05/0.1381, allocations: 15.98 kB / 484.4 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.556e-05/0.1382, allocations: 16 kB / 484.5 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.516e-05/0.1383, allocations: 67.78 kB / 484.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.903e-05/0.1384, allocations: 69.56 kB / 484.6 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002248/0.1386, allocations: 175.9 kB / 484.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.1386, allocations: 0 / 484.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.1386, allocations: 0 / 484.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1387, allocations: 3.938 kB / 484.8 MB, free: 2.051 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.001257/0.1399, allocations: 0.6169 MB / 485.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.14, allocations: 8.031 kB / 485.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.854e-05/0.14, allocations: 54.55 kB / 485.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.1402, allocations: 47.7 kB / 485.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000289/0.1405, allocations: 243.6 kB / 485.7 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.1406, allocations: 16 kB / 485.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.862e-05/0.1406, allocations: 19.98 kB / 485.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004484/0.1411, allocations: 237.4 kB / 486 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.1411, allocations: 0 / 486 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.909e-05/0.1411, allocations: 15.98 kB / 486 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.1411, allocations: 4 kB / 486 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002946/0.1414, allocations: 143.9 kB / 486.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.1424, allocations: 0.5742 MB / 486.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005636/0.143, allocations: 337.2 kB / 487.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.1431, allocations: 4 kB / 487.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004239/0.1435, allocations: 255.5 kB / 487.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.974e-06/0.1435, allocations: 11.88 kB / 487.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.001066/0.1446, allocations: 0.5868 MB / 487.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.115e-05/0.1447, allocations: 83.31 kB / 488 MB, free: 14.63 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001915/0.1449, allocations: 207.8 kB / 488.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.12e-05/0.1449, allocations: 41.7 kB / 488.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.422e-05/0.145, allocations: 129 kB / 488.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.482e-05/0.1451, allocations: 102.7 kB / 488.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.801e-05/0.1451, allocations: 12 kB / 488.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.1453, allocations: 346.8 kB / 488.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002157/0.1455, allocations: 109.1 kB / 488.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000329/0.1458, allocations: 283.9 kB / 489.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000276/0.1461, allocations: 166.4 kB / 489.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1461, allocations: 0 / 489.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0007306/0.1469, allocations: 461.1 kB / 489.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.1469, allocations: 15.94 kB / 489.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/0.1469, allocations: 7.938 kB / 489.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.31e-05/0.1469, allocations: 12 kB / 489.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.1472, allocations: 63.84 kB / 489.9 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/0.1472, allocations: 8 kB / 489.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000203/0.1474, allocations: 55.89 kB / 490 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.146e-05/0.1474, allocations: 24 kB / 490 MB, free: 12.52 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.0002004/0.1476, allocations: 197.6 kB / 490.2 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.788e-05/0.1477, allocations: 23.72 kB / 490.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.931e-05/0.1478, allocations: 34.94 kB / 490.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.1478, allocations: 12.03 kB / 490.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.1478, allocations: 0 / 490.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1478, allocations: 0 / 490.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001484/0.1493, allocations: 0.9683 MB / 491.2 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1493, allocations: 0 / 491.2 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.325e-05/0.1494, allocations: 19.92 kB / 491.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.1494, allocations: 0 / 491.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.1494, allocations: 15.98 kB / 491.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.1494, allocations: 7.984 kB / 491.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1494, allocations: 0 / 491.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007991/0.1502, allocations: 0.5657 MB / 491.8 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.137e-05/0.1503, allocations: 108.8 kB / 491.9 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.974e-05/0.1504, allocations: 23.92 kB / 492 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.1507, allocations: 39.97 kB / 492 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.49e-05/0.1507, allocations: 31.89 kB / 492 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.114e-05/0.1508, allocations: 19.98 kB / 492 MB, free: 10.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000123/0.1509, allocations: 145.5 kB / 492.2 MB, free: 10.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1509, allocations: 0 / 492.2 MB, free: 10.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003752/0.1513, allocations: 83.83 kB / 492.3 MB, free: 10.14 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.001108/0.1524, allocations: 1.139 MB / 493.4 MB, free: 8.969 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006066/0.153, allocations: 356.3 kB / 493.8 MB, free: 8.621 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1531, allocations: 0 / 493.8 MB, free: 8.621 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002912/0.1533, allocations: 171.8 kB / 493.9 MB, free: 8.453 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003065/0.1537, allocations: 36.94 kB / 494 MB, free: 8.418 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004185/0.1579, allocations: 5.449 MB / 499.4 MB, free: 2.789 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/0.1582, allocations: 0.7725 MB / 0.4885 GB, free: 1.992 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.1584, allocations: 34.97 kB / 0.4885 GB, free: 1.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.1585, allocations: 83.41 kB / 0.4886 GB, free: 1.879 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1585, allocations: 0 / 0.4886 GB, free: 1.879 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01705/0.1756, allocations: 5.08 MB / 0.4935 GB, free: 12.9 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001805/0.1758, allocations: 167 kB / 0.4937 GB, free: 12.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.872/2.048, allocations: 0 / 0.4937 GB, free: 12.66 MB / 382.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