Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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) 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(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",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.001141/0.001141, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001177/0.001177, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.472/1.472, allocations: 223.2 MB / 241.1 MB, free: 5.391 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003763, allocations: 6.625 kB / 300.8 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1525, allocations: 50.42 MB / 351.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.002919/0.1555, allocations: 1.565 MB / 352.8 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.1575, allocations: 1.033 MB / 353.8 MB, free: 9 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.1577, allocations: 7.938 kB / 353.8 MB, free: 8.992 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000369/0.1581, allocations: 59.73 kB / 353.9 MB, free: 8.934 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002806/0.1584, allocations: 79.81 kB / 354 MB, free: 8.855 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007792/0.1591, allocations: 210.5 kB / 354.2 MB, free: 8.652 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002532/0.1594, allocations: 103.8 kB / 354.3 MB, free: 8.551 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.1596, allocations: 33.47 kB / 354.3 MB, free: 8.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.1597, allocations: 67.69 kB / 354.4 MB, free: 8.453 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.1598, allocations: 59.75 kB / 354.4 MB, free: 8.395 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.1598, allocations: 4 kB / 354.4 MB, free: 8.391 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001454/0.16, allocations: 39.92 kB / 354.5 MB, free: 8.352 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.776e-05/0.1601, allocations: 51.75 kB / 354.5 MB, free: 8.301 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.814e-05/0.1602, allocations: 53.64 kB / 354.6 MB, free: 8.242 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002719/0.1604, allocations: 171.6 kB / 354.7 MB, free: 8.074 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1604, allocations: 4 kB / 354.8 MB, free: 8.07 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.62e-06/0.1605, allocations: 0 / 354.8 MB, free: 8.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.1605, allocations: 3.938 kB / 354.8 MB, free: 8.066 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000905/0.1614, allocations: 0.5 MB / 355.3 MB, free: 7.512 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.389e-05/0.1615, allocations: 8.031 kB / 355.3 MB, free: 7.504 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.497e-05/0.1615, allocations: 46.5 kB / 355.3 MB, free: 7.449 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.645e-05/0.1616, allocations: 19.72 kB / 355.3 MB, free: 7.43 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004501/0.1621, allocations: 282.4 kB / 355.6 MB, free: 7.117 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.1621, allocations: 7.938 kB / 355.6 MB, free: 7.109 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.137e-05/0.1621, allocations: 12 kB / 355.6 MB, free: 7.098 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004344/0.1626, allocations: 166.7 kB / 355.8 MB, free: 6.906 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.1626, allocations: 0 / 355.8 MB, free: 6.906 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.185e-05/0.1626, allocations: 12 kB / 355.8 MB, free: 6.895 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.1626, allocations: 3.953 kB / 355.8 MB, free: 6.891 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001331/0.1628, allocations: 39.91 kB / 355.8 MB, free: 6.852 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008347/0.1636, allocations: 482.4 kB / 356.3 MB, free: 6.32 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002887/0.1639, allocations: 134.5 kB / 356.4 MB, free: 6.152 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.06e-05/0.164, allocations: 12.12 kB / 356.5 MB, free: 6.141 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003187/0.1643, allocations: 96.98 kB / 356.6 MB, free: 6.027 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/0.1643, allocations: 0 / 356.6 MB, free: 6.027 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005289/0.1649, allocations: 173.4 kB / 356.7 MB, free: 5.852 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001813/0.1651, allocations: 192.3 kB / 356.9 MB, free: 5.621 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004513/0.1655, allocations: 326.6 kB / 357.2 MB, free: 5.289 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.556e-05/0.1656, allocations: 29.7 kB / 357.3 MB, free: 5.254 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.1657, allocations: 132.4 kB / 357.4 MB, free: 5.117 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.512e-05/0.1657, allocations: 15.81 kB / 357.4 MB, free: 5.102 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-06/0.1658, allocations: 0 / 357.4 MB, free: 5.102 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002075/0.166, allocations: 334.8 kB / 357.7 MB, free: 4.766 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.045e-05/0.1661, allocations: 27.98 kB / 357.8 MB, free: 4.738 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.1662, allocations: 95.64 kB / 357.8 MB, free: 4.617 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.74e-05/0.1663, allocations: 36 kB / 357.9 MB, free: 4.582 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1663, allocations: 0 / 357.9 MB, free: 4.582 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002771/0.1666, allocations: 137.2 kB / 358 MB, free: 4.441 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.488e-05/0.1667, allocations: 11.95 kB / 358 MB, free: 4.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.1667, allocations: 0 / 358 MB, free: 4.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.137e-05/0.1667, allocations: 4 kB / 358 MB, free: 4.426 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.1669, allocations: 23.92 kB / 358.1 MB, free: 4.402 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.1669, allocations: 4.156 kB / 358.1 MB, free: 4.398 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.486e-05/0.167, allocations: 15.84 kB / 358.1 MB, free: 4.383 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.167, allocations: 4 kB / 358.1 MB, free: 4.379 MB / 286.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: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,hold1.u,hold1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0002017/0.1672, allocations: 157.8 kB / 358.2 MB, free: 4.215 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.633e-05/0.1673, allocations: 65.52 kB / 358.3 MB, free: 4.145 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.1675, allocations: 29.66 kB / 358.3 MB, free: 4.117 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.1675, allocations: 4 kB / 358.3 MB, free: 4.113 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.1675, allocations: 4.062 kB / 358.3 MB, free: 4.109 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.1675, allocations: 7.922 kB / 358.3 MB, free: 4.102 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003095/0.1678, allocations: 245.5 kB / 358.6 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1678, allocations: 0 / 358.6 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.304e-05/0.1679, allocations: 19.92 kB / 358.6 MB, free: 3.793 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.1679, allocations: 7.938 kB / 358.6 MB, free: 3.785 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.168, allocations: 0 / 358.6 MB, free: 3.785 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.484e-06/0.168, allocations: 7.953 kB / 358.6 MB, free: 3.777 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.168, allocations: 0 / 358.6 MB, free: 3.777 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003514/0.1683, allocations: 224.4 kB / 358.8 MB, free: 3.512 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.1685, allocations: 116.8 kB / 359 MB, free: 3.379 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.712e-05/0.1685, allocations: 8.125 kB / 359 MB, free: 3.371 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.904e-05/0.1686, allocations: 12 kB / 359 MB, free: 3.359 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.011e-05/0.1687, allocations: 11.98 kB / 359 MB, free: 3.348 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.031e-05/0.1687, allocations: 4 kB / 359 MB, free: 3.344 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002878/0.169, allocations: 241.9 kB / 359.2 MB, free: 3.109 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.169, allocations: 3.938 kB / 359.2 MB, free: 3.105 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003189/0.1694, allocations: 43.94 kB / 359.3 MB, free: 3.062 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001966/0.1713, allocations: 1.26 MB / 360.5 MB, free: 1.914 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003084/0.1717, allocations: 87.89 kB / 360.6 MB, free: 1.828 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1717, allocations: 0 / 360.6 MB, free: 1.828 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.1718, allocations: 39.92 kB / 360.7 MB, free: 1.789 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004767/0.1723, allocations: 79.95 kB / 360.7 MB, free: 1.715 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/0.1748, allocations: 1.922 MB / 362.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.1753, allocations: 0.7595 MB / 363.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001425/0.1754, allocations: 33.52 kB / 363.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.1755, allocations: 55.42 kB / 363.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1756, allocations: 0 / 363.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02307/0.1986, allocations: 4.784 MB / 368.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/0.1989, allocations: 226.5 kB / 368.5 MB, free: 9.977 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.967/2.166, allocations: 0 / 368.5 MB, free: 9.977 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat does not exist to compare? outputFormat=mat