Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",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.00107/0.001069, allocations: 95.09 kB / 16.65 MB, free: 6.586 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.001244/0.001245, allocations: 184 kB / 17.56 MB, free: 6.203 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.671/1.671, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003425/0.0003425, allocations: 8 kB / 301.5 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1623, allocations: 50.41 MB / 351.9 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003335/0.1657, allocations: 1.609 MB / 353.6 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002652/0.1684, allocations: 1.115 MB / 354.7 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002642/0.1687, allocations: 0 / 354.7 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006088/0.1693, allocations: 63.8 kB / 354.7 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004151/0.1697, allocations: 87.64 kB / 354.8 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001246/0.171, allocations: 238.5 kB / 355.1 MB, free: 496 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002909/0.1713, allocations: 167.5 kB / 355.2 MB, free: 328 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.1715, allocations: 29.56 kB / 355.2 MB, free: 300 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001302/0.1716, allocations: 67.64 kB / 355.3 MB, free: 232 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001467/0.1718, allocations: 79.61 kB / 355.4 MB, free: 152 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.1718, allocations: 0 / 355.4 MB, free: 152 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001936/0.172, allocations: 51.97 kB / 355.4 MB, free: 100 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.1721, allocations: 51.77 kB / 355.5 MB, free: 48 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.1723, allocations: 97.12 kB / 355.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003601/0.1726, allocations: 231.5 kB / 355.8 MB, free: 15.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.1727, allocations: 3.938 kB / 355.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1727, allocations: 4 kB / 355.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.343e-06/0.1727, allocations: 0 / 355.8 MB, free: 15.71 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009116/0.1736, allocations: 0.504 MB / 356.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.1737, allocations: 8.031 kB / 356.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.055e-05/0.1737, allocations: 42.69 kB / 356.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.475e-05/0.1738, allocations: 24.66 kB / 356.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/0.1742, allocations: 299.5 kB / 356.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.1742, allocations: 4.375 kB / 356.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.326e-05/0.1743, allocations: 15.94 kB / 356.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004344/0.1747, allocations: 183.4 kB / 356.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.1747, allocations: 0 / 356.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.1747, allocations: 4 kB / 356.9 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.1748, allocations: 4 kB / 356.9 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001301/0.1749, allocations: 39.92 kB / 356.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006145/0.1755, allocations: 391.2 kB / 357.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003137/0.1758, allocations: 150.5 kB / 357.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.176, allocations: 59.42 kB / 357.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.472e-05/0.176, allocations: 4.062 kB / 357.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002469/0.1763, allocations: 83.31 kB / 357.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 3.747e-06/0.1763, allocations: 0 / 357.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004462/0.1767, allocations: 173.6 kB / 357.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001453/0.1769, allocations: 187.9 kB / 358 MB, free: 13.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004163/0.1773, allocations: 338.6 kB / 358.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.118e-05/0.1774, allocations: 29.7 kB / 358.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.1775, allocations: 124.4 kB / 358.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.426e-05/0.1775, allocations: 23.73 kB / 358.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.561e-05/0.1776, allocations: 17.91 kB / 358.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1777, allocations: 338.8 kB / 358.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.268e-05/0.1778, allocations: 23.98 kB / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.1779, allocations: 100.5 kB / 358.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001826/0.1781, allocations: 106 kB / 359 MB, free: 12.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1781, allocations: 0 / 359 MB, free: 12.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002458/0.1784, allocations: 141.3 kB / 359.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.1784, allocations: 7.984 kB / 359.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1784, allocations: 3.938 kB / 359.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.1785, allocations: 4 kB / 359.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.1786, allocations: 16 kB / 359.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.1786, allocations: 7.984 kB / 359.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.382e-05/0.1787, allocations: 7.938 kB / 359.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.1787, allocations: 8 kB / 359.2 MB, free: 11.9 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,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 (13): * Single equations (assignments): 13 * 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.0001625/0.1789, allocations: 161.9 kB / 359.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.179, allocations: 77.34 kB / 359.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.171e-05/0.1791, allocations: 29.7 kB / 359.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.1791, allocations: 4 kB / 359.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.1791, allocations: 0 / 359.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.1791, allocations: 7.922 kB / 359.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002593/0.1794, allocations: 249.4 kB / 359.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1794, allocations: 4.094 kB / 359.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.576e-05/0.1795, allocations: 15.98 kB / 359.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.1795, allocations: 0 / 359.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.1795, allocations: 7.938 kB / 359.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1795, allocations: 0 / 359.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/0.1795, allocations: 7.938 kB / 359.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003098/0.1798, allocations: 179.4 kB / 360 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.18, allocations: 120.8 kB / 360.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.923e-05/0.18, allocations: 15.98 kB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.963e-05/0.1801, allocations: 4 kB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.998e-05/0.1802, allocations: 11.92 kB / 360.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.1802, allocations: 8 kB / 360.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002587/0.1805, allocations: 241.9 kB / 360.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1805, allocations: 4 kB / 360.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002874/0.1808, allocations: 40 kB / 360.4 MB, free: 10.63 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (11): * Single equations (assignments): 9 * 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.001618/0.1824, allocations: 1.048 MB / 361.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002436/0.1827, allocations: 87.78 kB / 361.5 MB, free: 9.621 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.1827, allocations: 0 / 361.5 MB, free: 9.621 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.307e-05/0.1828, allocations: 27.98 kB / 361.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005308/0.1833, allocations: 76.77 kB / 361.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003067/0.1864, allocations: 2.324 MB / 364 MB, free: 7.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.1868, allocations: 0.744 MB / 364.7 MB, free: 6.285 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001248/0.1869, allocations: 33.45 kB / 364.7 MB, free: 6.254 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.1871, allocations: 63.42 kB / 364.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of SimCode: time 8.51e-07/0.1871, allocations: 0 / 364.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01915/0.2062, allocations: 5.023 MB / 369.8 MB, free: 1.352 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002541/0.2065, allocations: 264 kB / 370.1 MB, free: 1.062 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.262/2.468, allocations: 4.062 kB / 370.1 MB, free: 1.059 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches