Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.002043/0.002048, allocations: 180.6 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.401/1.401, 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.0009533/0.0009533, allocations: 86.8 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002602/0.0002602, allocations: 7.938 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2638, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1089/0.3728, allocations: 81.07 MB / 482.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.3731, allocations: 88.47 kB / 482.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01806/0.3912, allocations: 6.121 MB / 488.9 MB, free: 9.215 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3912, allocations: 0 / 488.9 MB, free: 9.215 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.574e-05/0.3913, allocations: 7.984 kB / 488.9 MB, free: 9.207 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001042/0.3923, allocations: 0.5311 MB / 489.4 MB, free: 8.621 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.3924, allocations: 12.03 kB / 489.4 MB, free: 8.609 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.76e-05/0.3925, allocations: 46.48 kB / 489.4 MB, free: 8.555 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.882e-05/0.3926, allocations: 23.8 kB / 489.5 MB, free: 8.531 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005606/0.3932, allocations: 286.4 kB / 489.8 MB, free: 8.211 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.3932, allocations: 4 kB / 489.8 MB, free: 8.207 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.456e-05/0.3932, allocations: 4 kB / 489.8 MB, free: 8.203 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004062/0.3936, allocations: 163.5 kB / 489.9 MB, free: 8.016 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.3937, allocations: 0 / 489.9 MB, free: 8.016 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.314e-05/0.3937, allocations: 15.89 kB / 489.9 MB, free: 8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.3937, allocations: 0 / 489.9 MB, free: 8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001332/0.3939, allocations: 35.98 kB / 490 MB, free: 7.965 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006969/0.3946, allocations: 398.3 kB / 490.4 MB, free: 7.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002622/0.3948, allocations: 127.8 kB / 490.5 MB, free: 7.367 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.3949, allocations: 4 kB / 490.5 MB, free: 7.363 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002071/0.3951, allocations: 83.44 kB / 490.6 MB, free: 7.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.943e-06/0.3951, allocations: 4 kB / 490.6 MB, free: 7.266 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004447/0.3956, allocations: 157.2 kB / 490.7 MB, free: 7.105 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001473/0.3957, allocations: 166.5 kB / 490.9 MB, free: 6.906 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004626/0.3962, allocations: 297.8 kB / 491.2 MB, free: 6.605 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.3962, allocations: 29.7 kB / 491.2 MB, free: 6.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.697e-05/0.3963, allocations: 128 kB / 491.3 MB, free: 6.441 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.667e-05/0.3964, allocations: 11.91 kB / 491.3 MB, free: 6.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.51e-06/0.3964, allocations: 0 / 491.3 MB, free: 6.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.3965, allocations: 330.8 kB / 491.7 MB, free: 6.098 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.436e-05/0.3966, allocations: 27.98 kB / 491.7 MB, free: 6.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.3968, allocations: 102.7 kB / 491.8 MB, free: 5.945 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.971e-05/0.3969, allocations: 27.98 kB / 491.8 MB, free: 5.918 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.3969, allocations: 0 / 491.8 MB, free: 5.918 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002803/0.3972, allocations: 137.2 kB / 492 MB, free: 5.777 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.3972, allocations: 7.938 kB / 492 MB, free: 5.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.3972, allocations: 0 / 492 MB, free: 5.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.3972, allocations: 7.984 kB / 492 MB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.3974, allocations: 16 kB / 492 MB, free: 5.746 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.3974, allocations: 0 / 492 MB, free: 5.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.3975, allocations: 15.92 kB / 492 MB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.3975, allocations: 4 kB / 492 MB, free: 5.727 MB / 362.7 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 () * Number of clocked 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 0.000232/0.3978, allocations: 153.9 kB / 492.2 MB, free: 5.566 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.3979, allocations: 69.36 kB / 492.2 MB, free: 5.492 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003423/0.3982, allocations: 131.4 kB / 492.4 MB, free: 5.355 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3982, allocations: 0 / 492.4 MB, free: 5.355 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3983, allocations: 4 kB / 492.4 MB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3983, allocations: 0 / 492.4 MB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002653/0.3985, allocations: 245.5 kB / 492.6 MB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.3986, allocations: 8.062 kB / 492.6 MB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.65e-05/0.3986, allocations: 11.98 kB / 492.6 MB, free: 5.043 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.573e-06/0.3987, allocations: 4 kB / 492.6 MB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.3987, allocations: 3.953 kB / 492.6 MB, free: 5.035 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.3987, allocations: 3.938 kB / 492.6 MB, free: 5.031 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3987, allocations: 4.312 kB / 492.6 MB, free: 5.027 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003305/0.399, allocations: 190 kB / 492.8 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001682/0.3992, allocations: 128.9 kB / 492.9 MB, free: 4.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.66e-05/0.3993, allocations: 11.94 kB / 493 MB, free: 4.648 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.746e-05/0.3993, allocations: 4 kB / 493 MB, free: 4.645 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.173e-05/0.3994, allocations: 19.95 kB / 493 MB, free: 4.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.3994, allocations: 4 kB / 493 MB, free: 4.621 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002833/0.3997, allocations: 241.9 kB / 493.2 MB, free: 4.383 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3997, allocations: 4 kB / 493.2 MB, free: 4.379 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003259/0.4001, allocations: 47.94 kB / 493.3 MB, free: 4.332 MB / 362.7 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) * Number of clocked states: 0 () * 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.001757/0.4018, allocations: 1.199 MB / 494.5 MB, free: 3.258 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003019/0.4021, allocations: 87.89 kB / 494.6 MB, free: 3.172 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4022, allocations: 3.938 kB / 494.6 MB, free: 3.168 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.893e-05/0.4023, allocations: 31.98 kB / 494.6 MB, free: 3.137 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.4027, allocations: 60.94 kB / 494.7 MB, free: 3.078 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002345/0.405, allocations: 1.775 MB / 496.4 MB, free: 1.227 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004519/0.4055, allocations: 0.7477 MB / 497.2 MB, free: 464 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001407/0.4056, allocations: 33.67 kB / 497.2 MB, free: 428 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.4058, allocations: 55.42 kB / 497.3 MB, free: 376 kB / 362.7 MB Notification: Performance of SimCode: time 8.41e-07/0.4058, allocations: 3.938 kB / 497.3 MB, free: 372 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03832/0.4441, allocations: 4.804 MB / 0.4903 GB, free: 11.74 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002696/0.4444, allocations: 235.3 kB / 0.4905 GB, free: 11.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.824/2.269, allocations: 4 kB / 0.4905 GB, free: 11.5 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat