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.00101/0.00101, allocations: 177.1 kB / 8.348 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.4/1.4, allocations: 221.5 MB / 230.3 MB, free: 7.562 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.0009117/0.0009115, allocations: 94.19 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.689e-05/1.692e-05, allocations: 4 kB / 337.1 MB, free: 9.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1055, allocations: 50.42 MB / 387.6 MB, free: 7.488 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3311/0.4367, allocations: 80.34 MB / 467.9 MB, free: 14.4 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/0.4371, allocations: 83.95 kB / 468 MB, free: 14.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0165/0.4536, allocations: 6.062 MB / 474 MB, free: 8.266 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.4536, allocations: 0 / 474 MB, free: 8.266 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.333e-05/0.4536, allocations: 4 kB / 474 MB, free: 8.262 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000591/0.4542, allocations: 0.4963 MB / 474.5 MB, free: 7.715 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.4543, allocations: 8.031 kB / 474.5 MB, free: 7.707 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.794e-05/0.4544, allocations: 23.72 kB / 474.6 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004296/0.4548, allocations: 286.4 kB / 474.8 MB, free: 7.359 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.4548, allocations: 11.98 kB / 474.9 MB, free: 7.348 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.714e-05/0.4548, allocations: 4 kB / 474.9 MB, free: 7.344 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001006/0.455, allocations: 36 kB / 474.9 MB, free: 7.309 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002521/0.4552, allocations: 151.6 kB / 475 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.4552, allocations: 7.953 kB / 475.1 MB, free: 7.125 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.4553, allocations: 0 / 475.1 MB, free: 7.125 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.4553, allocations: 4 kB / 475.1 MB, free: 7.121 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004637/0.4557, allocations: 371 kB / 475.4 MB, free: 6.715 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.4559, allocations: 107.9 kB / 475.5 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.901e-05/0.456, allocations: 42.7 kB / 475.6 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.456, allocations: 0 / 475.6 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001448/0.4561, allocations: 83.23 kB / 475.6 MB, free: 6.438 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.4562, allocations: 0 / 475.6 MB, free: 6.438 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002431/0.4564, allocations: 113.4 kB / 475.8 MB, free: 6.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.586e-05/0.4565, allocations: 163 kB / 475.9 MB, free: 6.125 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003364/0.4568, allocations: 290.2 kB / 476.2 MB, free: 5.836 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.4569, allocations: 29.7 kB / 476.2 MB, free: 5.801 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.825e-05/0.457, allocations: 124.1 kB / 476.4 MB, free: 5.676 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.632e-05/0.457, allocations: 19.8 kB / 476.4 MB, free: 5.656 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.149e-06/0.457, allocations: 3.938 kB / 476.4 MB, free: 5.652 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.4571, allocations: 334.8 kB / 476.7 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.172e-05/0.4572, allocations: 19.98 kB / 476.7 MB, free: 5.297 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.459e-05/0.4573, allocations: 90.8 kB / 476.8 MB, free: 5.184 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.248e-05/0.4573, allocations: 23.98 kB / 476.8 MB, free: 5.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.4573, allocations: 0 / 476.8 MB, free: 5.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001659/0.4575, allocations: 121.4 kB / 477 MB, free: 5.035 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.4575, allocations: 4 kB / 477 MB, free: 5.031 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.4575, allocations: 7.953 kB / 477 MB, free: 5.023 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.4576, allocations: 0 / 477 MB, free: 5.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001154/0.4577, allocations: 19.98 kB / 477 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.4577, allocations: 0 / 477 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.726e-05/0.4578, allocations: 7.906 kB / 477 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.4578, allocations: 7.984 kB / 477 MB, free: 4.988 MB / 346.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.353e-05/0.4579, allocations: 122.9 kB / 477.1 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001741/0.4581, allocations: 113.5 kB / 477.2 MB, free: 4.746 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.108e-05/0.4581, allocations: 27.73 kB / 477.3 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002139/0.4583, allocations: 123.5 kB / 477.4 MB, free: 4.594 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.4584, allocations: 4 kB / 477.4 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.4584, allocations: 0 / 477.4 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.4584, allocations: 0 / 477.4 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002128/0.4586, allocations: 234 kB / 477.6 MB, free: 4.324 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.4586, allocations: 0 / 477.6 MB, free: 4.324 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.253e-05/0.4587, allocations: 15.94 kB / 477.6 MB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.4587, allocations: 3.984 kB / 477.6 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.4587, allocations: 7.953 kB / 477.6 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.4587, allocations: 0 / 477.6 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4587, allocations: 0 / 477.6 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002217/0.459, allocations: 186 kB / 477.8 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.4591, allocations: 120.8 kB / 477.9 MB, free: 3.941 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.53e-05/0.4591, allocations: 4 kB / 477.9 MB, free: 3.938 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.797e-05/0.4592, allocations: 0 / 477.9 MB, free: 3.938 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.401e-05/0.4593, allocations: 11.98 kB / 478 MB, free: 3.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.4593, allocations: 4 kB / 478 MB, free: 3.922 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002295/0.4595, allocations: 230 kB / 478.2 MB, free: 3.695 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4595, allocations: 4 kB / 478.2 MB, free: 3.691 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003162/0.4599, allocations: 43.94 kB / 478.2 MB, free: 3.648 MB / 346.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.001318/0.4612, allocations: 1.127 MB / 479.4 MB, free: 2.566 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002039/0.4614, allocations: 75.91 kB / 479.4 MB, free: 2.492 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.4614, allocations: 4 kB / 479.4 MB, free: 2.488 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.635e-05/0.4615, allocations: 24 kB / 479.5 MB, free: 2.465 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003507/0.4618, allocations: 64.53 kB / 479.5 MB, free: 2.402 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006376/0.4625, allocations: 349 kB / 479.9 MB, free: 2.02 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.4628, allocations: 0.7475 MB / 480.6 MB, free: 1.246 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.835e-05/0.4629, allocations: 25.52 kB / 480.6 MB, free: 1.219 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.745e-05/0.463, allocations: 59.41 kB / 480.7 MB, free: 1.16 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.463, allocations: 0 / 480.7 MB, free: 1.16 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02259/0.4856, allocations: 4.299 MB / 485 MB, free: 12.88 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001879/0.4859, allocations: 184.1 kB / 485.2 MB, free: 12.69 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.668/2.154, allocations: 7.938 kB / 485.2 MB, free: 12.68 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