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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 175.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 221.3 MB / 235.5 MB, free: 2.977 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007905/0.0007904, allocations: 93.97 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.593e-05/2.594e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1128, allocations: 50.41 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3237/0.4366, allocations: 81.25 MB / 475.6 MB, free: 6.219 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.4369, allocations: 79.95 kB / 475.7 MB, free: 6.141 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01717/0.4541, allocations: 6.215 MB / 481.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4541, allocations: 0 / 481.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.888e-05/0.4542, allocations: 4 kB / 481.9 MB, free: 15.92 MB / 362.7 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.0006741/0.4549, allocations: 0.4924 MB / 482.4 MB, free: 15.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.4549, allocations: 12.03 kB / 482.4 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.325e-05/0.455, allocations: 34.56 kB / 482.4 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.008e-05/0.455, allocations: 23.72 kB / 482.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004933/0.4555, allocations: 294.4 kB / 482.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.4556, allocations: 7.984 kB / 482.8 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.039e-05/0.4556, allocations: 15.88 kB / 482.8 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003598/0.456, allocations: 164.5 kB / 482.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.456, allocations: 4 kB / 482.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.456, allocations: 15.89 kB / 482.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.456, allocations: 0 / 482.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.384e-05/0.4561, allocations: 43.98 kB / 483 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006809/0.4568, allocations: 482.5 kB / 483.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002216/0.4571, allocations: 142.5 kB / 483.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.477e-05/0.4572, allocations: 59.45 kB / 483.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.86e-05/0.4572, allocations: 8.062 kB / 483.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002173/0.4574, allocations: 97.09 kB / 483.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.4574, allocations: 3.938 kB / 483.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003729/0.4578, allocations: 133.3 kB / 483.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001659/0.458, allocations: 188 kB / 484.1 MB, free: 13.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004276/0.4584, allocations: 295.1 kB / 484.4 MB, free: 13.13 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.4585, allocations: 33.7 kB / 484.4 MB, free: 13.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.075e-05/0.4586, allocations: 120.4 kB / 484.5 MB, free: 12.97 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.284e-05/0.4586, allocations: 27.64 kB / 484.5 MB, free: 12.94 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.054e-06/0.4586, allocations: 7.938 kB / 484.6 MB, free: 12.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.4588, allocations: 330.8 kB / 484.9 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.546e-05/0.4589, allocations: 35.92 kB / 484.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.459, allocations: 91.72 kB / 485 MB, free: 12.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.031e-05/0.4591, allocations: 35.98 kB / 485 MB, free: 12.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4591, allocations: 0 / 485 MB, free: 12.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002402/0.4593, allocations: 137.3 kB / 485.2 MB, free: 12.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.4594, allocations: 9.562 kB / 485.2 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.4594, allocations: 0 / 485.2 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.4594, allocations: 4 kB / 485.2 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.4595, allocations: 24.08 kB / 485.2 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.4596, allocations: 8 kB / 485.2 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.458e-05/0.4597, allocations: 7.906 kB / 485.2 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.4597, allocations: 8 kB / 485.2 MB, free: 12.21 MB / 362.7 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.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample1.u,shiftSample1.y,hold1.u,hold1.y,shiftSample1.u,sample1.y) * Number of discrete 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.0001045/0.4598, allocations: 120.9 kB / 485.3 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.899e-05/0.4599, allocations: 69.38 kB / 485.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002492/0.4602, allocations: 123.4 kB / 485.5 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.4602, allocations: 8.062 kB / 485.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4602, allocations: 0 / 485.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.4602, allocations: 4 kB / 485.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002722/0.4605, allocations: 257.7 kB / 485.8 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.4605, allocations: 4 kB / 485.8 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.946e-05/0.4606, allocations: 15.98 kB / 485.8 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.4606, allocations: 7.938 kB / 485.8 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.332e-05/0.4606, allocations: 7.891 kB / 485.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.4606, allocations: 4 kB / 485.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4606, allocations: 3.938 kB / 485.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003024/0.4609, allocations: 216.5 kB / 486.1 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.4611, allocations: 120.8 kB / 486.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.761e-05/0.4611, allocations: 4 kB / 486.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.683e-05/0.4612, allocations: 15.98 kB / 486.2 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.254e-05/0.4613, allocations: 7.984 kB / 486.2 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.4613, allocations: 8 kB / 486.2 MB, free: 11.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002548/0.4616, allocations: 239.1 kB / 486.4 MB, free: 10.87 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.803e-06/0.4616, allocations: 0 / 486.4 MB, free: 10.87 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003143/0.4619, allocations: 59.86 kB / 486.5 MB, free: 10.81 MB / 362.7 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.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample1.u,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.001538/0.4634, allocations: 1.259 MB / 487.8 MB, free: 9.613 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002607/0.4637, allocations: 91.91 kB / 487.8 MB, free: 9.523 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.4637, allocations: 0 / 487.8 MB, free: 9.523 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.131e-05/0.4638, allocations: 39.92 kB / 487.9 MB, free: 9.484 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003974/0.4642, allocations: 63.56 kB / 487.9 MB, free: 9.426 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007664/0.465, allocations: 383.2 kB / 488.3 MB, free: 9.008 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.4654, allocations: 0.7519 MB / 489.1 MB, free: 8.227 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.996e-05/0.4655, allocations: 29.69 kB / 489.1 MB, free: 8.199 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.4656, allocations: 67.41 kB / 489.2 MB, free: 8.133 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4656, allocations: 0 / 489.2 MB, free: 8.133 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01778/0.4834, allocations: 4.865 MB / 494 MB, free: 3.379 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/0.4836, allocations: 200.6 kB / 494.2 MB, free: 3.152 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.705/2.189, allocations: 3.938 kB / 494.2 MB, free: 3.148 MB / 362.7 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