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.001669/0.001669, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.389/1.389, allocations: 221.3 MB / 235.5 MB, free: 2.953 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.00104/0.00104, allocations: 103.6 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.011e-05/3.014e-05, allocations: 0 / 343.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1008, allocations: 50.41 MB / 394.3 MB, free: 1.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3156/0.4165, allocations: 81.01 MB / 475.3 MB, free: 6.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.4167, allocations: 83.94 kB / 475.4 MB, free: 6.418 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01678/0.4335, allocations: 6.092 MB / 481.5 MB, free: 344 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.4335, allocations: 0 / 481.5 MB, free: 344 kB / 346.7 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.4336, allocations: 4 kB / 481.5 MB, free: 340 kB / 346.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.0006165/0.4342, allocations: 0.5002 MB / 482 MB, free: 15.78 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.4343, allocations: 11.97 kB / 482 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.982e-05/0.4343, allocations: 38.56 kB / 482.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.13e-05/0.4344, allocations: 27.64 kB / 482.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004135/0.4348, allocations: 290.4 kB / 482.4 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.4348, allocations: 4 kB / 482.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.785e-05/0.4348, allocations: 8 kB / 482.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002961/0.4351, allocations: 155.6 kB / 482.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.4352, allocations: 3.938 kB / 482.6 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.4352, allocations: 3.953 kB / 482.6 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.4352, allocations: 4 kB / 482.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.373e-05/0.4353, allocations: 35.98 kB / 482.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005567/0.4359, allocations: 394.4 kB / 483 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.436, allocations: 115.8 kB / 483.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.656e-05/0.4361, allocations: 50.7 kB / 483.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.4361, allocations: 0 / 483.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001547/0.4363, allocations: 87.3 kB / 483.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.4363, allocations: 0 / 483.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002558/0.4366, allocations: 117.5 kB / 483.3 MB, free: 14.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.27e-05/0.4367, allocations: 158.2 kB / 483.5 MB, free: 14.08 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003158/0.437, allocations: 303 kB / 483.8 MB, free: 13.78 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.437, allocations: 25.7 kB / 483.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.046e-05/0.4371, allocations: 136 kB / 484 MB, free: 13.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.4372, allocations: 15.81 kB / 484 MB, free: 13.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/0.4372, allocations: 0 / 484 MB, free: 13.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.4373, allocations: 334.8 kB / 484.3 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.352e-05/0.4374, allocations: 28 kB / 484.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.964e-05/0.4375, allocations: 86.8 kB / 484.4 MB, free: 13.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.914e-05/0.4375, allocations: 31.98 kB / 484.4 MB, free: 13.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.4375, allocations: 0 / 484.4 MB, free: 13.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001816/0.4377, allocations: 125.3 kB / 484.6 MB, free: 12.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.4377, allocations: 4.938 kB / 484.6 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.4378, allocations: 3.984 kB / 484.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.4378, allocations: 4 kB / 484.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.4379, allocations: 16 kB / 484.6 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.4379, allocations: 0 / 484.6 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.518e-05/0.438, allocations: 20.02 kB / 484.6 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.438, allocations: 4 kB / 484.6 MB, free: 12.91 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 () * 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 8.454e-05/0.4381, allocations: 120.9 kB / 484.7 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.162e-05/0.4382, allocations: 65.45 kB / 484.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002145/0.4384, allocations: 119.5 kB / 484.9 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.4384, allocations: 4 kB / 484.9 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.4384, allocations: 4 kB / 484.9 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.4385, allocations: 11.94 kB / 484.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002113/0.4387, allocations: 253.5 kB / 485.2 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.4387, allocations: 0 / 485.2 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.692e-05/0.4388, allocations: 12 kB / 485.2 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.4388, allocations: 0 / 485.2 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.4388, allocations: 11.94 kB / 485.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.4388, allocations: 0 / 485.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4388, allocations: 3.938 kB / 485.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002324/0.439, allocations: 198 kB / 485.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001226/0.4392, allocations: 120.8 kB / 485.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.837e-05/0.4392, allocations: 0 / 485.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.076e-05/0.4393, allocations: 8 kB / 485.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.473e-05/0.4393, allocations: 7.984 kB / 485.5 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.4394, allocations: 4 kB / 485.5 MB, free: 11.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002385/0.4396, allocations: 247.1 kB / 485.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4396, allocations: 0 / 485.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003219/0.4399, allocations: 51.84 kB / 485.8 MB, free: 11.57 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) * 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.001301/0.4412, allocations: 1.151 MB / 487 MB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001999/0.4415, allocations: 87.83 kB / 487.1 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4415, allocations: 4 kB / 487.1 MB, free: 10.4 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.025e-05/0.4415, allocations: 27.98 kB / 487.1 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.4419, allocations: 64.94 kB / 487.2 MB, free: 10.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000632/0.4425, allocations: 357.9 kB / 487.5 MB, free: 9.914 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.4428, allocations: 0.74 MB / 488.2 MB, free: 9.148 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.222e-05/0.4429, allocations: 29.33 kB / 488.3 MB, free: 9.121 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.601e-05/0.443, allocations: 63.41 kB / 488.3 MB, free: 9.059 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.443, allocations: 0 / 488.3 MB, free: 9.059 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0168/0.4599, allocations: 4.755 MB / 493.1 MB, free: 4.426 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000163/0.4601, allocations: 212 kB / 493.3 MB, free: 4.195 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.659/2.12, allocations: 3.938 kB / 493.3 MB, free: 4.191 MB / 362.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