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.001127/0.001127, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.00125/0.00125, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.698/1.698, allocations: 223.3 MB / 241.6 MB, free: 188 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003968/0.0003971, allocations: 4 kB / 301.5 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1504, allocations: 50.4 MB / 351.9 MB, free: 3.586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003553/0.154, allocations: 1.586 MB / 353.5 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002725/0.1568, allocations: 1.095 MB / 354.6 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002731/0.1571, allocations: 4 kB / 354.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005297/0.1576, allocations: 59.8 kB / 354.7 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000434/0.1581, allocations: 79.72 kB / 354.8 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00102/0.1591, allocations: 224.3 kB / 355 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000353/0.1595, allocations: 159.5 kB / 355.1 MB, free: 380 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.1597, allocations: 33.53 kB / 355.2 MB, free: 348 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.1599, allocations: 63.64 kB / 355.2 MB, free: 284 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002066/0.1601, allocations: 75.69 kB / 355.3 MB, free: 208 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.645e-05/0.1601, allocations: 0 / 355.3 MB, free: 208 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002149/0.1603, allocations: 59.95 kB / 355.4 MB, free: 148 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.1605, allocations: 43.78 kB / 355.4 MB, free: 104 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.1606, allocations: 97.17 kB / 355.5 MB, free: 0 / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004714/0.1611, allocations: 219.5 kB / 355.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.1611, allocations: 0 / 355.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.1611, allocations: 0 / 355.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.1611, allocations: 0 / 355.7 MB, free: 15.79 MB / 302.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.001084/0.1622, allocations: 0.5001 MB / 356.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.509e-05/0.1623, allocations: 11.97 kB / 356.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.438e-05/0.1624, allocations: 38.75 kB / 356.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.884e-05/0.1625, allocations: 28.66 kB / 356.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005355/0.163, allocations: 283.5 kB / 356.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.845e-05/0.1631, allocations: 8.375 kB / 356.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.843e-05/0.1631, allocations: 7.938 kB / 356.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004524/0.1636, allocations: 155.6 kB / 356.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.1636, allocations: 0 / 356.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.1636, allocations: 4 kB / 356.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.1636, allocations: 7.938 kB / 356.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001334/0.1638, allocations: 31.97 kB / 356.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006767/0.1645, allocations: 386.4 kB / 357.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002805/0.1647, allocations: 115.9 kB / 357.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.1649, allocations: 46.56 kB / 357.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.407e-05/0.1649, allocations: 0 / 357.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002453/0.1651, allocations: 87.22 kB / 357.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.124e-06/0.1652, allocations: 0 / 357.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004435/0.1656, allocations: 149.4 kB / 357.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.1657, allocations: 162.2 kB / 357.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004065/0.1661, allocations: 338.5 kB / 358 MB, free: 13.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.1662, allocations: 25.7 kB / 358.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.1663, allocations: 124.1 kB / 358.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.862e-05/0.1663, allocations: 19.8 kB / 358.2 MB, free: 13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-05/0.1664, allocations: 13.97 kB / 358.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.1666, allocations: 338.8 kB / 358.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.177e-05/0.1667, allocations: 23.98 kB / 358.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.1668, allocations: 86.73 kB / 358.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001641/0.167, allocations: 92.2 kB / 358.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.167, allocations: 0 / 358.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002565/0.1672, allocations: 117.4 kB / 358.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.1673, allocations: 8 kB / 358.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.1673, allocations: 128 / 358.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.1673, allocations: 4.312 kB / 358.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.1674, allocations: 19.98 kB / 358.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.1675, allocations: 4 kB / 358.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.533e-05/0.1676, allocations: 19.84 kB / 358.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.1676, allocations: 4 kB / 358.9 MB, free: 12.22 MB / 302.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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001736/0.1678, allocations: 157.7 kB / 359.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.729e-05/0.1679, allocations: 57.52 kB / 359.1 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.994e-05/0.1679, allocations: 33.8 kB / 359.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.299e-06/0.168, allocations: 4 kB / 359.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.173e-05/0.168, allocations: 0 / 359.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.168, allocations: 7.875 kB / 359.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002539/0.1683, allocations: 241.5 kB / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.1683, allocations: 0 / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.592e-05/0.1683, allocations: 11.94 kB / 359.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.1684, allocations: 4 kB / 359.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.1684, allocations: 7.984 kB / 359.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.1684, allocations: 4 kB / 359.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1684, allocations: 0 / 359.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002933/0.1687, allocations: 166.5 kB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.1688, allocations: 112.9 kB / 359.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.604e-05/0.1689, allocations: 3.984 kB / 359.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.859e-05/0.1689, allocations: 4 kB / 359.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.013e-05/0.169, allocations: 19.92 kB / 359.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.169, allocations: 4 kB / 359.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002567/0.1693, allocations: 241.9 kB / 360 MB, free: 11.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1693, allocations: 0 / 360 MB, free: 11.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003006/0.1696, allocations: 35.98 kB / 360 MB, free: 11.02 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001676/0.1713, allocations: 1.031 MB / 361 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002527/0.1716, allocations: 71.89 kB / 361.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1716, allocations: 0 / 361.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.773e-05/0.1717, allocations: 27.98 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004914/0.1722, allocations: 78.73 kB / 361.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002877/0.1751, allocations: 2.226 MB / 363.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.1754, allocations: 0.7439 MB / 364.2 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001153/0.1755, allocations: 29.78 kB / 364.2 MB, free: 6.805 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.1757, allocations: 59.41 kB / 364.3 MB, free: 6.746 MB / 302.1 MB Notification: Performance of SimCode: time 1.252e-06/0.1757, allocations: 3.938 kB / 364.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02076/0.1964, allocations: 4.726 MB / 369 MB, free: 2.188 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002619/0.1968, allocations: 257.8 kB / 369.3 MB, free: 1.895 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.298/2.494, allocations: 0 / 369.3 MB, free: 1.895 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/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) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches