Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0014/0.001399, allocations: 101.3 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001933/0.001933, allocations: 197.4 kB / 17.9 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.51/1.51, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2174/0.2174, allocations: 45.91 MB / 344 MB, free: 12.11 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004946/0.0004947, allocations: 8 kB / 418 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1652, allocations: 63.47 MB / 481.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001924/0.1672, allocations: 1.229 MB / 482.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.1684, allocations: 0.4953 MB / 483.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.505e-05/0.1685, allocations: 4 kB / 483.2 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.413e-05/0.1685, allocations: 3.938 kB / 483.3 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001329/0.1686, allocations: 19.89 kB / 483.3 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002862/0.1689, allocations: 35.83 kB / 483.3 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001357/0.1691, allocations: 51.94 kB / 483.4 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.1692, allocations: 12 kB / 483.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002073/0.1694, allocations: 43.83 kB / 483.4 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.1695, allocations: 35.89 kB / 483.4 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.217e-05/0.1695, allocations: 4 kB / 483.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.382e-05/0.1696, allocations: 7.938 kB / 483.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.06e-05/0.1696, allocations: 11.98 kB / 483.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.725e-05/0.1697, allocations: 45.58 kB / 483.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001321/0.1698, allocations: 52.11 kB / 483.6 MB, free: 3.227 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.1699, allocations: 0 / 483.6 MB, free: 3.227 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1699, allocations: 4 kB / 483.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.1699, allocations: 4 kB / 483.6 MB, free: 3.219 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008165/0.1707, allocations: 391.1 kB / 484 MB, free: 2.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.279e-05/0.1708, allocations: 12.03 kB / 484 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.835e-05/0.1709, allocations: 38.56 kB / 484 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001993/0.1711, allocations: 23.89 kB / 484 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002129/0.1713, allocations: 171 kB / 484.2 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/0.1713, allocations: 7.922 kB / 484.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.918e-05/0.1714, allocations: 12 kB / 484.2 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002674/0.1716, allocations: 89.64 kB / 484.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.1717, allocations: 0 / 484.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/0.1717, allocations: 8 kB / 484.3 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.1717, allocations: 0 / 484.3 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001656/0.1719, allocations: 55.95 kB / 484.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007876/0.1727, allocations: 340.7 kB / 484.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002461/0.1729, allocations: 94.47 kB / 484.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.972e-05/0.173, allocations: 8 kB / 484.8 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002809/0.1733, allocations: 95.36 kB / 484.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.924e-06/0.1733, allocations: 4 kB / 484.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005068/0.1738, allocations: 205.6 kB / 485.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.569e-05/0.1739, allocations: 63.36 kB / 485.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.174, allocations: 118 kB / 485.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.55e-05/0.1741, allocations: 37.69 kB / 485.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.968e-05/0.1741, allocations: 92.33 kB / 485.4 MB, free: 1.176 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.696e-05/0.1742, allocations: 39.75 kB / 485.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.918e-06/0.1742, allocations: 4 kB / 485.4 MB, free: 1.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1743, allocations: 326.8 kB / 485.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.1744, allocations: 36.36 kB / 485.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.1746, allocations: 81.02 kB / 485.9 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001285/0.1747, allocations: 51.61 kB / 485.9 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1747, allocations: 3.938 kB / 485.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002962/0.175, allocations: 161.5 kB / 486.1 MB, free: 472 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.1751, allocations: 8 kB / 486.1 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.1751, allocations: 3.984 kB / 486.1 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.1751, allocations: 4 kB / 486.1 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.1752, allocations: 19.94 kB / 486.1 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.1752, allocations: 7.984 kB / 486.1 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.222e-05/0.1753, allocations: 20.02 kB / 486.1 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.1753, allocations: 4 kB / 486.2 MB, free: 404 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,$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 (21): * Single equations (assignments): 21 * 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.0001118/0.1755, allocations: 128 kB / 486.3 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.087e-05/0.1755, allocations: 15.89 kB / 486.3 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.153e-05/0.1755, allocations: 8.5 kB / 486.3 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1755, allocations: 0 / 486.3 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1755, allocations: 0 / 486.3 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.1756, allocations: 4 kB / 486.3 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006131/0.1762, allocations: 462.3 kB / 486.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1762, allocations: 0 / 486.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.329e-05/0.1762, allocations: 8 kB / 486.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1763, allocations: 0 / 486.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.1763, allocations: 7.984 kB / 486.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.1763, allocations: 3.953 kB / 486.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1763, allocations: 4 kB / 486.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003949/0.1767, allocations: 259.4 kB / 487 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.134e-05/0.1768, allocations: 88.95 kB / 487.1 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.828e-05/0.1768, allocations: 3.984 kB / 487.1 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.1769, allocations: 19.94 kB / 487.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5e-05/0.177, allocations: 15.92 kB / 487.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/0.177, allocations: 7.984 kB / 487.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.799e-05/0.1771, allocations: 91.59 kB / 487.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.845e-06/0.1771, allocations: 0 / 487.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002615/0.1773, allocations: 31.92 kB / 487.3 MB, free: 15.16 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: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0007007/0.1781, allocations: 0.795 MB / 488.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002875/0.1784, allocations: 112.1 kB / 488.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.1784, allocations: 4.062 kB / 488.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.1785, allocations: 55.92 kB / 488.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.1787, allocations: 15.94 kB / 488.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.1803, allocations: 1.248 MB / 489.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000321/0.1807, allocations: 0.7043 MB / 490.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.617e-05/0.1807, allocations: 12.88 kB / 490.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.857e-05/0.1808, allocations: 31.42 kB / 490.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1808, allocations: 0 / 490.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01354/0.1943, allocations: 1.886 MB / 492.1 MB, free: 10.29 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002004/0.1946, allocations: 178.9 kB / 492.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.665/1.86, allocations: 3.938 kB / 492.3 MB, free: 10.04 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat