Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",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.00116/0.00116, allocations: 176.9 kB / 8.349 MB, free: 0.6953 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.395/1.395, allocations: 221.5 MB / 230.3 MB, free: 3.371 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009686/0.0009686, allocations: 103 kB / 281.2 MB, free: 1.32 MB / 218.8 MB Notification: Performance of FrontEnd - loaded program: time 2.044e-05/2.045e-05, allocations: 0 / 337.1 MB, free: 9.328 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2625, allocations: 50.4 MB / 387.5 MB, free: 38.11 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.3662, allocations: 80.32 MB / 467.9 MB, free: 6.441 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.3665, allocations: 84.91 kB / 468 MB, free: 6.359 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.01619/0.3827, allocations: 5.913 MB / 473.9 MB, free: 484 kB / 346.8 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3828, allocations: 0 / 473.9 MB, free: 484 kB / 346.8 MB Notification: Performance of Transformations before backend: time 2.084e-05/0.3828, allocations: 4 kB / 473.9 MB, free: 480 kB / 346.8 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.000587/0.3834, allocations: 479.6 kB / 474.3 MB, free: 15.95 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.3834, allocations: 8.031 kB / 474.3 MB, free: 15.94 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.713e-05/0.3835, allocations: 19.81 kB / 474.4 MB, free: 15.92 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003896/0.3839, allocations: 265.6 kB / 474.6 MB, free: 15.62 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.3839, allocations: 0 / 474.6 MB, free: 15.62 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.3839, allocations: 4 kB / 474.6 MB, free: 15.62 MB / 362.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001037/0.3841, allocations: 43.92 kB / 474.7 MB, free: 15.57 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000243/0.3843, allocations: 138.7 kB / 474.8 MB, free: 15.41 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.3843, allocations: 3.953 kB / 474.8 MB, free: 15.41 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.3843, allocations: 0 / 474.8 MB, free: 15.41 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.3844, allocations: 0.75 kB / 474.8 MB, free: 15.41 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004534/0.3848, allocations: 335.1 kB / 475.1 MB, free: 15.04 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001442/0.385, allocations: 103.9 kB / 475.2 MB, free: 14.91 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.212e-05/0.385, allocations: 38.7 kB / 475.3 MB, free: 14.86 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.3851, allocations: 7.984 kB / 475.3 MB, free: 14.86 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001158/0.3852, allocations: 75.5 kB / 475.4 MB, free: 14.77 MB / 362.8 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.3852, allocations: 4 kB / 475.4 MB, free: 14.77 MB / 362.8 MB Notification: Performance of matching and sorting (n=9): time 0.0002439/0.3855, allocations: 113.3 kB / 475.5 MB, free: 14.65 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.889e-05/0.3855, allocations: 132.5 kB / 475.6 MB, free: 14.49 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002506/0.3858, allocations: 232.4 kB / 475.8 MB, free: 14.25 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.3858, allocations: 25.7 kB / 475.9 MB, free: 14.22 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.192e-05/0.3859, allocations: 116.1 kB / 476 MB, free: 14.11 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/0.3859, allocations: 15.81 kB / 476 MB, free: 14.09 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.509e-06/0.386, allocations: 0 / 476 MB, free: 14.09 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.3861, allocations: 334.9 kB / 476.3 MB, free: 13.75 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.374e-05/0.3861, allocations: 12 kB / 476.3 MB, free: 13.74 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.733e-05/0.3862, allocations: 71.31 kB / 476.4 MB, free: 13.65 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.199e-05/0.3863, allocations: 27.97 kB / 476.4 MB, free: 13.62 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3863, allocations: 0 / 476.4 MB, free: 13.62 MB / 362.8 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001622/0.3864, allocations: 105.4 kB / 476.5 MB, free: 13.52 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.3865, allocations: 5.562 kB / 476.5 MB, free: 13.51 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.3865, allocations: 3.953 kB / 476.5 MB, free: 13.51 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.3865, allocations: 4 kB / 476.5 MB, free: 13.5 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.602e-05/0.3866, allocations: 15.92 kB / 476.5 MB, free: 13.49 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.3866, allocations: 4 kB / 476.6 MB, free: 13.48 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.28e-05/0.3867, allocations: 12.06 kB / 476.6 MB, free: 13.47 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.407e-06/0.3867, allocations: 4.125 kB / 476.6 MB, free: 13.47 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 7.728e-05/0.3868, allocations: 109 kB / 476.7 MB, free: 13.36 MB / 362.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001704/0.387, allocations: 117.3 kB / 476.8 MB, free: 13.23 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.896e-05/0.387, allocations: 19.77 kB / 476.8 MB, free: 13.21 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001723/0.3872, allocations: 112.2 kB / 476.9 MB, free: 13.1 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3872, allocations: 3.984 kB / 476.9 MB, free: 13.1 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3872, allocations: 4.062 kB / 476.9 MB, free: 13.09 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.3872, allocations: 4 kB / 476.9 MB, free: 13.09 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.3874, allocations: 198.1 kB / 477.1 MB, free: 12.86 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3874, allocations: 0 / 477.1 MB, free: 12.86 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.597e-05/0.3874, allocations: 11.98 kB / 477.1 MB, free: 12.85 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.3874, allocations: 4 kB / 477.1 MB, free: 12.84 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.3875, allocations: 3.953 kB / 477.1 MB, free: 12.84 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.3875, allocations: 0 / 477.1 MB, free: 12.84 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.3875, allocations: 7.938 kB / 477.2 MB, free: 12.83 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001906/0.3877, allocations: 173.9 kB / 477.3 MB, free: 12.62 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 9.743e-05/0.3878, allocations: 112.9 kB / 477.4 MB, free: 12.5 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.3878, allocations: 8 kB / 477.4 MB, free: 12.49 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.097e-05/0.3879, allocations: 8.078 kB / 477.4 MB, free: 12.48 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.594e-05/0.3879, allocations: 3.938 kB / 477.5 MB, free: 12.48 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.388, allocations: 8 kB / 477.5 MB, free: 12.47 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0001706/0.3881, allocations: 184.5 kB / 477.6 MB, free: 12.29 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.583e-06/0.3881, allocations: 0 / 477.6 MB, free: 12.29 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0002534/0.3884, allocations: 43.86 kB / 477.7 MB, free: 12.24 MB / 362.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,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 (10): * Single equations (assignments): 8 * 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.001172/0.3896, allocations: 1.094 MB / 478.8 MB, free: 11.21 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0001571/0.3898, allocations: 59.94 kB / 478.8 MB, free: 11.15 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3898, allocations: 4.25 kB / 478.8 MB, free: 11.14 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 5.05e-05/0.3898, allocations: 31.92 kB / 478.9 MB, free: 11.11 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.3902, allocations: 50.27 kB / 478.9 MB, free: 11.07 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005593/0.3907, allocations: 281.7 kB / 479.2 MB, free: 10.75 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.391, allocations: 0.736 MB / 479.9 MB, free: 9.984 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 7.573e-05/0.3911, allocations: 24.98 kB / 480 MB, free: 9.961 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.95e-05/0.3912, allocations: 51.42 kB / 480 MB, free: 9.91 MB / 362.8 MB Notification: Performance of SimCode: time 2.535e-06/0.3912, allocations: 3.938 kB / 480 MB, free: 9.906 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02575/0.417, allocations: 3.683 MB / 483.7 MB, free: 6.254 MB / 362.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003315/0.4174, allocations: 180.1 kB / 483.9 MB, free: 6.066 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/2.124, allocations: 0 / 483.9 MB, free: 6.066 MB / 362.8 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat