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.001533/0.001533, allocations: 180.3 kB / 16.38 MB, free: 5.762 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.341/1.341, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 91.14 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003916/0.0003917, allocations: 4 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2457, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1101/0.3559, allocations: 81.32 MB / 482.9 MB, free: 15.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.3562, allocations: 83.95 kB / 483 MB, free: 15.08 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01715/0.3734, allocations: 6.241 MB / 489.2 MB, free: 8.848 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.817e-06/0.3735, allocations: 0 / 489.2 MB, free: 8.848 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.734e-05/0.3735, allocations: 7.938 kB / 489.2 MB, free: 8.84 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.001032/0.3745, allocations: 0.5349 MB / 489.8 MB, free: 8.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.05e-05/0.3746, allocations: 12.03 kB / 489.8 MB, free: 8.238 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.961e-05/0.3747, allocations: 34.56 kB / 489.8 MB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.306e-05/0.3748, allocations: 23.72 kB / 489.8 MB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005736/0.3753, allocations: 302.4 kB / 490.1 MB, free: 7.836 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.3754, allocations: 8 kB / 490.1 MB, free: 7.828 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.3754, allocations: 4 kB / 490.1 MB, free: 7.824 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004762/0.3759, allocations: 168.4 kB / 490.3 MB, free: 7.629 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.3759, allocations: 3.938 kB / 490.3 MB, free: 7.625 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.373e-05/0.376, allocations: 7.953 kB / 490.3 MB, free: 7.617 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.376, allocations: 0 / 490.3 MB, free: 7.617 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001369/0.3761, allocations: 39.97 kB / 490.4 MB, free: 7.578 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007575/0.3769, allocations: 498.5 kB / 490.8 MB, free: 7.031 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.3772, allocations: 142.8 kB / 491 MB, free: 6.855 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.579e-05/0.3772, allocations: 15.89 kB / 491 MB, free: 6.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002065/0.3774, allocations: 97.14 kB / 491.1 MB, free: 6.727 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.3775, allocations: 0 / 491.1 MB, free: 6.727 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004587/0.3779, allocations: 173.6 kB / 491.3 MB, free: 6.551 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/0.3781, allocations: 187.9 kB / 491.4 MB, free: 6.324 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000424/0.3785, allocations: 305.7 kB / 491.7 MB, free: 6.016 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.3785, allocations: 25.7 kB / 491.8 MB, free: 5.984 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.3787, allocations: 132.4 kB / 491.9 MB, free: 5.848 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4e-05/0.3787, allocations: 23.81 kB / 491.9 MB, free: 5.824 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.991e-06/0.3787, allocations: 0 / 491.9 MB, free: 5.824 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.3789, allocations: 342.9 kB / 492.3 MB, free: 5.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.773e-05/0.379, allocations: 23.98 kB / 492.3 MB, free: 5.457 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.3792, allocations: 95.7 kB / 492.4 MB, free: 5.336 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.748e-05/0.3793, allocations: 47.86 kB / 492.4 MB, free: 5.289 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3793, allocations: 0 / 492.4 MB, free: 5.289 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000248/0.3795, allocations: 145.5 kB / 492.6 MB, free: 5.141 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.3796, allocations: 7.953 kB / 492.6 MB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.3796, allocations: 4 kB / 492.6 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.3796, allocations: 160 / 492.6 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.3797, allocations: 27.98 kB / 492.6 MB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.343e-06/0.3797, allocations: 0 / 492.6 MB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.561e-05/0.3798, allocations: 8 kB / 492.6 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.3799, allocations: 11.94 kB / 492.6 MB, free: 5.082 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 () * 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.0001466/0.38, allocations: 153.8 kB / 492.8 MB, free: 4.922 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.799e-05/0.3801, allocations: 69.36 kB / 492.8 MB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002773/0.3804, allocations: 131.4 kB / 493 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.3804, allocations: 4 kB / 493 MB, free: 4.703 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3804, allocations: 0 / 493 MB, free: 4.703 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.259e-06/0.3804, allocations: 4 kB / 493 MB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002473/0.3807, allocations: 253.5 kB / 493.2 MB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3807, allocations: 0 / 493.2 MB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.809e-05/0.3808, allocations: 15.98 kB / 493.2 MB, free: 4.387 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.327e-05/0.3808, allocations: 4 kB / 493.2 MB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.3808, allocations: 3.938 kB / 493.2 MB, free: 4.379 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.3808, allocations: 7.953 kB / 493.3 MB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3808, allocations: 0 / 493.3 MB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000329/0.3812, allocations: 235.2 kB / 493.5 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.3813, allocations: 132.8 kB / 493.6 MB, free: 3.949 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.582e-05/0.3814, allocations: 7.984 kB / 493.6 MB, free: 3.941 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.328e-05/0.3815, allocations: 7.984 kB / 493.6 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.521e-05/0.3815, allocations: 15.92 kB / 493.6 MB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.3815, allocations: 4 kB / 493.6 MB, free: 3.914 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002476/0.3818, allocations: 241.9 kB / 493.9 MB, free: 3.676 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3818, allocations: 0 / 493.9 MB, free: 3.676 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000298/0.3821, allocations: 52 kB / 493.9 MB, free: 3.625 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) * Number of clocked states: 0 () * 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.001553/0.3837, allocations: 1.302 MB / 495.2 MB, free: 2.441 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002907/0.384, allocations: 103.8 kB / 495.3 MB, free: 2.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.384, allocations: 0 / 495.3 MB, free: 2.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.3841, allocations: 47.89 kB / 495.4 MB, free: 2.293 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000355/0.3845, allocations: 64.92 kB / 495.4 MB, free: 2.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.3864, allocations: 1.946 MB / 497.4 MB, free: 208 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.3868, allocations: 0.7596 MB / 498.2 MB, free: 15.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.895e-05/0.3869, allocations: 33.8 kB / 498.2 MB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.387, allocations: 67.36 kB / 498.3 MB, free: 15.32 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3871, allocations: 3.938 kB / 498.3 MB, free: 15.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01715/0.4042, allocations: 4.908 MB / 0.4914 GB, free: 10.57 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002266/0.4045, allocations: 231.3 kB / 0.4916 GB, free: 10.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.944/2.349, allocations: 0 / 0.4916 GB, free: 10.32 MB / 378.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