Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",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.0008549/0.0008547, allocations: 96.88 kB / 17 MB, free: 6.418 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.0008151/0.0008153, allocations: 187.6 kB / 17.89 MB, free: 5.945 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.358/1.358, allocations: 223.2 MB / 241.9 MB, free: 244 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.221/0.221, allocations: 44.22 MB / 337.2 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004511/0.0004513, allocations: 14.59 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.1496, allocations: 61.91 MB / 471.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002174/0.1518, allocations: 1.228 MB / 472.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.1528, allocations: 455.2 kB / 473.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.456e-05/0.153, allocations: 4 kB / 473.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.562e-05/0.153, allocations: 3.938 kB / 473.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001414/0.1532, allocations: 11.94 kB / 473.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003265/0.1535, allocations: 35.89 kB / 473.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001715/0.1537, allocations: 79.7 kB / 473.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.1539, allocations: 8 kB / 473.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001843/0.154, allocations: 31.84 kB / 473.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.1542, allocations: 35.89 kB / 473.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.392e-05/0.1543, allocations: 4 kB / 473.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.964e-05/0.1543, allocations: 4 kB / 473.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.247e-05/0.1543, allocations: 19.91 kB / 473.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.232e-05/0.1544, allocations: 45.64 kB / 473.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.1546, allocations: 48.12 kB / 473.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.269e-05/0.1546, allocations: 4 kB / 473.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.1546, allocations: 0 / 473.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1546, allocations: 0 / 473.6 MB, free: 11.62 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.001003/0.1556, allocations: 389.4 kB / 474 MB, free: 11.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.577e-05/0.1557, allocations: 12.02 kB / 474 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.202e-05/0.1558, allocations: 38.56 kB / 474.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.535e-05/0.1559, allocations: 11.89 kB / 474.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.1562, allocations: 174.9 kB / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.461e-05/0.1562, allocations: 11.94 kB / 474.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.146e-05/0.1563, allocations: 7.953 kB / 474.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002882/0.1566, allocations: 85.64 kB / 474.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.1566, allocations: 4 kB / 474.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.1566, allocations: 0 / 474.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.1566, allocations: 4 kB / 474.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002127/0.1568, allocations: 51.47 kB / 474.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006908/0.1575, allocations: 328.7 kB / 474.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002328/0.1578, allocations: 90.48 kB / 474.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.364e-05/0.1579, allocations: 44.84 kB / 474.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/0.1579, allocations: 4.219 kB / 474.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002782/0.1582, allocations: 111.4 kB / 475 MB, free: 10.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.844e-06/0.1582, allocations: 0 / 475 MB, free: 10.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005118/0.1588, allocations: 185.5 kB / 475.2 MB, free: 9.918 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.306e-05/0.1588, allocations: 59.41 kB / 475.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.159, allocations: 122 kB / 475.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.159, allocations: 29.7 kB / 475.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.1591, allocations: 96.33 kB / 475.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.321e-05/0.1592, allocations: 31.55 kB / 475.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.757e-06/0.1592, allocations: 4 kB / 475.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1593, allocations: 326.8 kB / 475.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.827e-05/0.1594, allocations: 36.36 kB / 475.9 MB, free: 9.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.1596, allocations: 81.88 kB / 475.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.1597, allocations: 51.86 kB / 476 MB, free: 9.035 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.1597, allocations: 4 kB / 476 MB, free: 9.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002905/0.16, allocations: 161.4 kB / 476.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.16, allocations: 10.5 kB / 476.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.16, allocations: 0 / 476.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.1601, allocations: 4 kB / 476.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.1602, allocations: 19.98 kB / 476.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.1602, allocations: 3.938 kB / 476.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.398e-05/0.1603, allocations: 16.09 kB / 476.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.1603, allocations: 8.375 kB / 476.2 MB, free: 8.809 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,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.0001259/0.1604, allocations: 128.6 kB / 476.3 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.118e-05/0.1605, allocations: 11.89 kB / 476.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.068e-05/0.1605, allocations: 12.5 kB / 476.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1605, allocations: 3.938 kB / 476.4 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.1605, allocations: 3.984 kB / 476.4 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1605, allocations: 0 / 476.4 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006159/0.1612, allocations: 450.3 kB / 476.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.1612, allocations: 4 kB / 476.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.38e-05/0.1612, allocations: 7.984 kB / 476.8 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.1613, allocations: 4 kB / 476.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.1613, allocations: 8 kB / 476.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1613, allocations: 3.938 kB / 476.8 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1613, allocations: 0 / 476.8 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003491/0.1616, allocations: 266.2 kB / 477.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.182e-05/0.1617, allocations: 88.95 kB / 477.2 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.735e-05/0.1617, allocations: 3.984 kB / 477.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.1619, allocations: 12 kB / 477.2 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.766e-05/0.1619, allocations: 7.984 kB / 477.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.799e-05/0.1619, allocations: 11.98 kB / 477.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.343e-05/0.162, allocations: 87.28 kB / 477.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.162, allocations: 0 / 477.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002649/0.1623, allocations: 23.98 kB / 477.3 MB, free: 7.594 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: 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.163, allocations: 0.7942 MB / 478.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002719/0.1633, allocations: 119.8 kB / 478.2 MB, free: 6.656 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1633, allocations: 0 / 478.2 MB, free: 6.656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.1634, allocations: 47.98 kB / 478.3 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.1637, allocations: 12.3 kB / 478.3 MB, free: 6.598 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.165, allocations: 0.6642 MB / 479 MB, free: 5.867 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/0.1654, allocations: 0.6965 MB / 479.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.866e-05/0.1654, allocations: 12.88 kB / 479.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.944e-05/0.1655, allocations: 27.72 kB / 479.7 MB, free: 5.105 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1655, allocations: 0 / 479.7 MB, free: 5.105 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01363/0.1791, allocations: 1.887 MB / 481.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/0.1794, allocations: 177.8 kB / 481.8 MB, free: 3.094 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.875/2.054, allocations: 3.938 kB / 481.8 MB, free: 3.09 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat