Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",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.001342/0.001342, allocations: 181 kB / 16.39 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.373/1.373, 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.0008911/0.0008911, allocations: 93.34 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002974/0.0002974, allocations: 15.94 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.2803, allocations: 50.41 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1069/0.3872, allocations: 81.24 MB / 482.8 MB, free: 15.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/0.3876, allocations: 83.95 kB / 482.9 MB, free: 15.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01685/0.4044, allocations: 6.245 MB / 489.1 MB, free: 8.906 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4045, allocations: 0 / 489.1 MB, free: 8.906 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.937e-05/0.4045, allocations: 4 kB / 489.2 MB, free: 8.902 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.0007912/0.4053, allocations: 0.5466 MB / 489.7 MB, free: 8.301 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.4054, allocations: 12.03 kB / 489.7 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.207e-05/0.4055, allocations: 34.56 kB / 489.7 MB, free: 8.246 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.672e-05/0.4055, allocations: 23.72 kB / 489.8 MB, free: 8.223 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004943/0.406, allocations: 302.3 kB / 490.1 MB, free: 7.887 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.4061, allocations: 8 kB / 490.1 MB, free: 7.879 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.196e-05/0.4061, allocations: 8 kB / 490.1 MB, free: 7.871 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003959/0.4065, allocations: 176.4 kB / 490.3 MB, free: 7.668 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.4065, allocations: 0 / 490.3 MB, free: 7.668 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.4065, allocations: 7.891 kB / 490.3 MB, free: 7.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.4066, allocations: 4 kB / 490.3 MB, free: 7.656 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000122/0.4067, allocations: 43.97 kB / 490.3 MB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006247/0.4073, allocations: 411.1 kB / 490.7 MB, free: 7.152 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002744/0.4076, allocations: 150.5 kB / 490.9 MB, free: 6.969 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.069e-05/0.4077, allocations: 8.016 kB / 490.9 MB, free: 6.961 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000179/0.4078, allocations: 91.42 kB / 491 MB, free: 6.859 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.553e-06/0.4078, allocations: 0 / 491 MB, free: 6.859 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004324/0.4083, allocations: 173.2 kB / 491.1 MB, free: 6.684 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/0.4084, allocations: 187.9 kB / 491.3 MB, free: 6.457 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003515/0.4088, allocations: 306.2 kB / 491.6 MB, free: 6.148 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.4088, allocations: 29.7 kB / 491.6 MB, free: 6.113 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.4089, allocations: 132.3 kB / 491.8 MB, free: 5.977 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.805e-05/0.409, allocations: 23.73 kB / 491.8 MB, free: 5.953 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.14e-06/0.409, allocations: 0 / 491.8 MB, free: 5.953 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.4091, allocations: 330.8 kB / 492.1 MB, free: 5.621 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.146e-05/0.4092, allocations: 31.92 kB / 492.1 MB, free: 5.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.4093, allocations: 106.2 kB / 492.2 MB, free: 5.457 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.901e-05/0.4094, allocations: 44.17 kB / 492.3 MB, free: 5.414 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4094, allocations: 4 kB / 492.3 MB, free: 5.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002488/0.4097, allocations: 137.3 kB / 492.4 MB, free: 5.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.4097, allocations: 7.953 kB / 492.4 MB, free: 5.262 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.4097, allocations: 3.984 kB / 492.4 MB, free: 5.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.4098, allocations: 4 kB / 492.4 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.4099, allocations: 20 kB / 492.5 MB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.4099, allocations: 15.86 kB / 492.5 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.409e-05/0.41, allocations: 12.09 kB / 492.5 MB, free: 5.207 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.41, allocations: 8 kB / 492.5 MB, free: 5.199 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.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.0001497/0.4102, allocations: 149.8 kB / 492.6 MB, free: 5.043 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.4103, allocations: 81.34 kB / 492.7 MB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000285/0.4106, allocations: 135.2 kB / 492.9 MB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.4106, allocations: 0 / 492.9 MB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.4106, allocations: 8.094 kB / 492.9 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.4106, allocations: 0 / 492.9 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002362/0.4108, allocations: 253.5 kB / 493.1 MB, free: 4.512 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4109, allocations: 0 / 493.1 MB, free: 4.512 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.937e-05/0.4109, allocations: 15.98 kB / 493.1 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.411, allocations: 4 kB / 493.1 MB, free: 4.492 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.411, allocations: 0 / 493.1 MB, free: 4.492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.411, allocations: 7.953 kB / 493.1 MB, free: 4.484 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.411, allocations: 3.984 kB / 493.1 MB, free: 4.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003196/0.4113, allocations: 231.2 kB / 493.4 MB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.4115, allocations: 128.7 kB / 493.5 MB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.4115, allocations: 4 kB / 493.5 MB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.48e-05/0.4116, allocations: 11.98 kB / 493.5 MB, free: 4.051 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.486e-05/0.4117, allocations: 11.98 kB / 493.5 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.4117, allocations: 8.062 kB / 493.5 MB, free: 4.031 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002453/0.4119, allocations: 241.9 kB / 493.8 MB, free: 3.793 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4119, allocations: 0 / 493.8 MB, free: 3.793 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003065/0.4123, allocations: 44 kB / 493.8 MB, free: 3.75 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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.001607/0.4139, allocations: 1.313 MB / 495.1 MB, free: 2.555 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002894/0.4142, allocations: 103.8 kB / 495.2 MB, free: 2.453 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4142, allocations: 0 / 495.2 MB, free: 2.453 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.818e-05/0.4143, allocations: 35.97 kB / 495.3 MB, free: 2.418 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.4147, allocations: 71.7 kB / 495.3 MB, free: 2.348 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002158/0.4168, allocations: 2.127 MB / 497.5 MB, free: 144 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.4172, allocations: 0.7595 MB / 498.2 MB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001054/0.4173, allocations: 41.73 kB / 498.3 MB, free: 15.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.4175, allocations: 63.41 kB / 498.3 MB, free: 15.25 MB / 378.7 MB Notification: Performance of SimCode: time 4.649e-06/0.4175, allocations: 0 / 498.3 MB, free: 15.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01857/0.436, allocations: 5.078 MB / 0.4916 GB, free: 10.36 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001929/0.4363, allocations: 239.2 kB / 0.4918 GB, free: 10.11 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.918/2.354, allocations: 0 / 0.4918 GB, free: 10.11 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat does not exist to compare? outputFormat=mat