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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 94.08 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009857/0.0009855, allocations: 183.5 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.636/1.636, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002883/0.0002883, allocations: 10.75 kB / 300.8 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.145, allocations: 50.43 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002655/0.1477, allocations: 1.542 MB / 352.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001877/0.1496, allocations: 1.026 MB / 353.8 MB, free: 9.059 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.1498, allocations: 3.938 kB / 353.8 MB, free: 9.055 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003329/0.1502, allocations: 51.86 kB / 353.9 MB, free: 9.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002497/0.1504, allocations: 75.7 kB / 353.9 MB, free: 8.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007634/0.1512, allocations: 217.8 kB / 354.1 MB, free: 8.719 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002144/0.1514, allocations: 103.8 kB / 354.2 MB, free: 8.617 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.1516, allocations: 25.48 kB / 354.3 MB, free: 8.594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.1517, allocations: 59.75 kB / 354.3 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.1518, allocations: 63.69 kB / 354.4 MB, free: 8.473 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.1518, allocations: 4 kB / 354.4 MB, free: 8.469 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.152, allocations: 35.98 kB / 354.4 MB, free: 8.434 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.499e-05/0.1521, allocations: 51.83 kB / 354.5 MB, free: 8.383 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.465e-05/0.1521, allocations: 49.64 kB / 354.5 MB, free: 8.328 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002467/0.1524, allocations: 167.6 kB / 354.7 MB, free: 8.164 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1524, allocations: 4 kB / 354.7 MB, free: 8.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.78e-06/0.1524, allocations: 4 kB / 354.7 MB, free: 8.156 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.1524, allocations: 0 / 354.7 MB, free: 8.156 MB / 286.1 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.000808/0.1532, allocations: 0.496 MB / 355.2 MB, free: 7.605 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.1533, allocations: 8.031 kB / 355.2 MB, free: 7.598 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.776e-05/0.1534, allocations: 38.56 kB / 355.2 MB, free: 7.551 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.812e-05/0.1534, allocations: 31.67 kB / 355.3 MB, free: 7.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.1538, allocations: 274.5 kB / 355.5 MB, free: 7.215 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.1538, allocations: 4 kB / 355.5 MB, free: 7.211 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.035e-05/0.1539, allocations: 11.98 kB / 355.6 MB, free: 7.199 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003673/0.1542, allocations: 159.1 kB / 355.7 MB, free: 7.02 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.1543, allocations: 0 / 355.7 MB, free: 7.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.1543, allocations: 0 / 355.7 MB, free: 7.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.1543, allocations: 7.953 kB / 355.7 MB, free: 7.012 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.1544, allocations: 39.84 kB / 355.8 MB, free: 6.973 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005634/0.155, allocations: 378.4 kB / 356.1 MB, free: 6.547 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002306/0.1552, allocations: 115.9 kB / 356.2 MB, free: 6.406 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.116e-05/0.1553, allocations: 7.938 kB / 356.3 MB, free: 6.398 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002248/0.1555, allocations: 87.45 kB / 356.3 MB, free: 6.301 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.1555, allocations: 0 / 356.3 MB, free: 6.301 MB / 286.1 MB Notification: Performance of matching and sorting (n=9): time 0.000393/0.1559, allocations: 153.3 kB / 356.5 MB, free: 6.145 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.156, allocations: 162.2 kB / 356.6 MB, free: 5.949 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003404/0.1564, allocations: 326.9 kB / 357 MB, free: 5.617 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.1564, allocations: 29.7 kB / 357 MB, free: 5.582 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.1565, allocations: 128 kB / 357.1 MB, free: 5.453 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.348e-05/0.1566, allocations: 19.88 kB / 357.1 MB, free: 5.434 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.741e-06/0.1566, allocations: 0 / 357.1 MB, free: 5.434 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.1567, allocations: 334.8 kB / 357.5 MB, free: 5.098 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.282e-05/0.1568, allocations: 20 kB / 357.5 MB, free: 5.078 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001083/0.1569, allocations: 90.83 kB / 357.6 MB, free: 4.965 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.025e-05/0.157, allocations: 35.92 kB / 357.6 MB, free: 4.93 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.157, allocations: 0 / 357.6 MB, free: 4.93 MB / 286.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002055/0.1572, allocations: 121.4 kB / 357.7 MB, free: 4.805 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.1573, allocations: 13.83 kB / 357.7 MB, free: 4.793 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-06/0.1573, allocations: 0 / 357.7 MB, free: 4.793 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.1573, allocations: 4 kB / 357.7 MB, free: 4.789 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.1574, allocations: 19.92 kB / 357.8 MB, free: 4.77 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.1574, allocations: 4 kB / 357.8 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.725e-05/0.1575, allocations: 11.94 kB / 357.8 MB, free: 4.754 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.1575, allocations: 4 kB / 357.8 MB, free: 4.75 MB / 286.1 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,table.y,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.0001409/0.1577, allocations: 153.9 kB / 357.9 MB, free: 4.59 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.583e-05/0.1578, allocations: 65.36 kB / 358 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.95e-05/0.1578, allocations: 29.66 kB / 358 MB, free: 4.492 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.1578, allocations: 4 kB / 358 MB, free: 4.488 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.1578, allocations: 0 / 358 MB, free: 4.488 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.1579, allocations: 3.984 kB / 358 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002427/0.1581, allocations: 233.6 kB / 358.3 MB, free: 4.207 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1581, allocations: 0 / 358.3 MB, free: 4.207 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.755e-05/0.1582, allocations: 15.94 kB / 358.3 MB, free: 4.191 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.1582, allocations: 0 / 358.3 MB, free: 4.191 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.1582, allocations: 12.36 kB / 358.3 MB, free: 4.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.1582, allocations: 7.953 kB / 358.3 MB, free: 4.172 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1582, allocations: 4 kB / 358.3 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002663/0.1585, allocations: 189.8 kB / 358.5 MB, free: 3.945 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.1586, allocations: 128.6 kB / 358.6 MB, free: 3.801 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.986e-05/0.1587, allocations: 0 / 358.6 MB, free: 3.801 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.261e-05/0.1588, allocations: 8 kB / 358.6 MB, free: 3.793 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.21e-05/0.1588, allocations: 7.984 kB / 358.6 MB, free: 3.785 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.1589, allocations: 4 kB / 358.6 MB, free: 3.781 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002342/0.1591, allocations: 241.9 kB / 358.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1591, allocations: 0 / 358.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002829/0.1594, allocations: 32 kB / 358.9 MB, free: 3.516 MB / 286.1 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001593/0.161, allocations: 1.179 MB / 360.1 MB, free: 2.453 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002337/0.1612, allocations: 75.84 kB / 360.2 MB, free: 2.379 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.1613, allocations: 0 / 360.2 MB, free: 2.379 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.242e-05/0.1613, allocations: 31.98 kB / 360.2 MB, free: 2.348 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003769/0.1617, allocations: 61.16 kB / 360.2 MB, free: 2.289 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001997/0.1637, allocations: 1.739 MB / 362 MB, free: 480 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.1641, allocations: 0.7438 MB / 362.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001087/0.1642, allocations: 29.55 kB / 362.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.1644, allocations: 55.41 kB / 362.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1644, allocations: 0 / 362.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02/0.1844, allocations: 4.673 MB / 367.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/0.1846, allocations: 240.9 kB / 367.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.941/2.126, allocations: 0 / 367.7 MB, free: 10.88 MB / 302.1 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