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.001738/0.001738, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.675/1.675, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0008056/0.0008056, allocations: 87.48 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.824e-05/1.826e-05, allocations: 0 / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09649/0.09653, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.284/0.3806, allocations: 80.58 MB / 468.1 MB, free: 14.22 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.3809, allocations: 75.95 kB / 468.2 MB, free: 14.15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01776/0.3987, allocations: 6.186 MB / 474.4 MB, free: 7.969 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3987, allocations: 0 / 474.4 MB, free: 7.969 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.862e-05/0.3988, allocations: 8 kB / 474.4 MB, free: 7.961 MB / 346.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.0007201/0.3995, allocations: 0.4924 MB / 474.9 MB, free: 7.418 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.3995, allocations: 8.031 kB / 474.9 MB, free: 7.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.162e-05/0.3996, allocations: 27.7 kB / 474.9 MB, free: 7.383 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004856/0.4001, allocations: 290.4 kB / 475.2 MB, free: 7.055 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.4002, allocations: 0 / 475.2 MB, free: 7.055 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.219e-05/0.4002, allocations: 8 kB / 475.2 MB, free: 7.047 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001237/0.4003, allocations: 43.98 kB / 475.3 MB, free: 7.004 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002822/0.4006, allocations: 160.4 kB / 475.4 MB, free: 6.816 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.4006, allocations: 3.938 kB / 475.4 MB, free: 6.812 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.4006, allocations: 7.953 kB / 475.4 MB, free: 6.805 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.4007, allocations: 0 / 475.4 MB, free: 6.805 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006037/0.4013, allocations: 455.1 kB / 475.9 MB, free: 6.312 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001752/0.4015, allocations: 134.7 kB / 476 MB, free: 6.145 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.294e-05/0.4015, allocations: 51.5 kB / 476.1 MB, free: 6.082 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.508e-05/0.4016, allocations: 12 kB / 476.1 MB, free: 6.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001522/0.4017, allocations: 101 kB / 476.2 MB, free: 5.953 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.463e-06/0.4018, allocations: 0 / 476.2 MB, free: 5.953 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003098/0.4021, allocations: 129.3 kB / 476.3 MB, free: 5.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.991e-05/0.4022, allocations: 192 kB / 476.5 MB, free: 5.59 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003002/0.4025, allocations: 290.3 kB / 476.8 MB, free: 5.305 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.204e-05/0.4025, allocations: 25.7 kB / 476.8 MB, free: 5.273 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.085e-05/0.4026, allocations: 120.4 kB / 476.9 MB, free: 5.148 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.777e-05/0.4026, allocations: 27.64 kB / 476.9 MB, free: 5.121 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.251e-06/0.4027, allocations: 0 / 476.9 MB, free: 5.121 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.4028, allocations: 330.8 kB / 477.3 MB, free: 4.789 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.758e-05/0.4028, allocations: 35.92 kB / 477.3 MB, free: 4.754 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.4029, allocations: 87.72 kB / 477.4 MB, free: 4.641 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.755e-05/0.403, allocations: 39.92 kB / 477.4 MB, free: 4.602 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.403, allocations: 0 / 477.4 MB, free: 4.602 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001917/0.4032, allocations: 113.4 kB / 477.5 MB, free: 4.484 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.4033, allocations: 13.23 kB / 477.6 MB, free: 4.473 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.4033, allocations: 0 / 477.6 MB, free: 4.473 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.4033, allocations: 11.89 kB / 477.6 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.4034, allocations: 23.98 kB / 477.6 MB, free: 4.438 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.4034, allocations: 0 / 477.6 MB, free: 4.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.206e-05/0.4035, allocations: 16.06 kB / 477.6 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.4035, allocations: 4 kB / 477.6 MB, free: 4.418 MB / 346.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 8.149e-05/0.4036, allocations: 116.8 kB / 477.7 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001973/0.4038, allocations: 129.3 kB / 477.8 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.323e-05/0.4039, allocations: 23.77 kB / 477.9 MB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001928/0.4041, allocations: 119.5 kB / 478 MB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.4041, allocations: 8.094 kB / 478 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.4041, allocations: 3.938 kB / 478 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.4041, allocations: 7.984 kB / 478 MB, free: 4 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000203/0.4043, allocations: 218.1 kB / 478.2 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.4043, allocations: 0 / 478.2 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.849e-05/0.4044, allocations: 20.17 kB / 478.2 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.4044, allocations: 8 kB / 478.2 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.4045, allocations: 0 / 478.2 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.4045, allocations: 11.89 kB / 478.3 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.4045, allocations: 0 / 478.3 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.4047, allocations: 212.4 kB / 478.5 MB, free: 3.457 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.4048, allocations: 124.8 kB / 478.6 MB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.594e-05/0.4049, allocations: 3.984 kB / 478.6 MB, free: 3.312 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.364e-05/0.405, allocations: 8 kB / 478.6 MB, free: 3.305 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.385e-05/0.405, allocations: 12.03 kB / 478.6 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.405, allocations: 7.984 kB / 478.6 MB, free: 3.285 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002155/0.4053, allocations: 226 kB / 478.8 MB, free: 3.062 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4053, allocations: 0 / 478.8 MB, free: 3.062 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002984/0.4056, allocations: 59.86 kB / 478.9 MB, free: 3.004 MB / 346.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.001312/0.4069, allocations: 1.216 MB / 480.1 MB, free: 1.828 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001827/0.4071, allocations: 83.91 kB / 480.2 MB, free: 1.746 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4071, allocations: 0 / 480.2 MB, free: 1.746 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.772e-05/0.4072, allocations: 47.84 kB / 480.2 MB, free: 1.699 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003377/0.4075, allocations: 68.3 kB / 480.3 MB, free: 1.633 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006582/0.4082, allocations: 366.2 kB / 480.7 MB, free: 1.23 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.4085, allocations: 0.7438 MB / 481.4 MB, free: 472 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001032/0.4086, allocations: 38 kB / 481.4 MB, free: 432 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.435e-05/0.4087, allocations: 59.41 kB / 481.5 MB, free: 372 kB / 346.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4087, allocations: 0 / 481.5 MB, free: 372 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02401/0.4327, allocations: 4.411 MB / 485.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/0.433, allocations: 187.5 kB / 486.1 MB, free: 11.78 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/2.097, allocations: 0 / 486.1 MB, free: 11.78 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