Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",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.00153/0.001529, allocations: 113.6 kB / 16.51 MB, free: 6.652 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.001744/0.001744, allocations: 199.9 kB / 17.43 MB, free: 6.035 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.608/1.608, allocations: 222.9 MB / 241.1 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001577, allocations: 51.41 kB / 300.1 MB, free: 6.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1659/0.1675, allocations: 49.45 MB / 349.5 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.004061/0.1716, allocations: 2.035 MB / 351.5 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002461/0.1741, allocations: 1.087 MB / 352.6 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002331/0.1744, allocations: 7.938 kB / 352.6 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001063/0.1755, allocations: 135.6 kB / 352.8 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004972/0.1761, allocations: 104.9 kB / 352.9 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009462/0.177, allocations: 219.2 kB / 353.1 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003718/0.1774, allocations: 223.4 kB / 353.3 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001887/0.1776, allocations: 40.3 kB / 353.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.1778, allocations: 83.56 kB / 353.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.1779, allocations: 83.61 kB / 353.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.308e-05/0.178, allocations: 8 kB / 353.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001791/0.1782, allocations: 47.97 kB / 353.6 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.1783, allocations: 59.7 kB / 353.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.1784, allocations: 83.45 kB / 353.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003794/0.1788, allocations: 235.5 kB / 353.9 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/0.1788, allocations: 0 / 353.9 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1788, allocations: 0 / 353.9 MB, free: 288 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.1788, allocations: 4 kB / 353.9 MB, free: 284 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001238/0.1801, allocations: 0.5429 MB / 354.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.037e-05/0.1801, allocations: 12.03 kB / 354.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.726e-05/0.1802, allocations: 42.75 kB / 354.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.142e-05/0.1803, allocations: 32.58 kB / 354.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000476/0.1808, allocations: 274.8 kB / 354.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.19e-05/0.1808, allocations: 12.38 kB / 354.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.028e-05/0.1809, allocations: 23.81 kB / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008107/0.1817, allocations: 304.2 kB / 355.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1817, allocations: 7.875 kB / 355.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.043e-05/0.1817, allocations: 4 kB / 355.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.1818, allocations: 4 kB / 355.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001656/0.1819, allocations: 55.97 kB / 355.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005844/0.1825, allocations: 398.2 kB / 355.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003555/0.1829, allocations: 164 kB / 355.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.1831, allocations: 86.55 kB / 355.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.231e-05/0.1831, allocations: 12 kB / 355.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000179/0.1833, allocations: 71.38 kB / 356 MB, free: 14.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.664e-06/0.1833, allocations: 0 / 356 MB, free: 14.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.000505/0.1838, allocations: 225.2 kB / 356.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.1839, allocations: 144.5 kB / 356.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003013/0.1843, allocations: 272.8 kB / 356.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.1843, allocations: 33.7 kB / 356.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.884e-05/0.1844, allocations: 116.7 kB / 356.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.647e-05/0.1845, allocations: 35.61 kB / 356.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.034e-05/0.1845, allocations: 49.94 kB / 356.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1847, allocations: 338.8 kB / 357.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.002e-05/0.1848, allocations: 44.39 kB / 357.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001737/0.1849, allocations: 162.1 kB / 357.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.1852, allocations: 207.2 kB / 357.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1852, allocations: 0 / 357.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004342/0.1857, allocations: 225.5 kB / 357.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/0.1857, allocations: 4 kB / 357.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.1857, allocations: 4 kB / 357.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.1858, allocations: 8 kB / 357.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.1859, allocations: 27.92 kB / 357.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.1859, allocations: 8.312 kB / 357.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.186, allocations: 19.84 kB / 357.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.339e-05/0.186, allocations: 16.34 kB / 357.9 MB, free: 11.95 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0002042/0.1862, allocations: 172.4 kB / 358 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002001/0.1865, allocations: 125.3 kB / 358.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.137e-05/0.1865, allocations: 29.7 kB / 358.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.1866, allocations: 0 / 358.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.1866, allocations: 4 kB / 358.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.1866, allocations: 7.922 kB / 358.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002859/0.1869, allocations: 249.4 kB / 358.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.1869, allocations: 4 kB / 358.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.148e-05/0.1869, allocations: 11.94 kB / 358.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.187, allocations: 4 kB / 358.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.187, allocations: 7.984 kB / 358.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.187, allocations: 4 kB / 358.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.187, allocations: 0 / 358.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003862/0.1874, allocations: 226.8 kB / 358.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.1875, allocations: 116.8 kB / 358.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.527e-05/0.1876, allocations: 4 kB / 358.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.521e-05/0.1877, allocations: 4 kB / 358.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.954e-05/0.1877, allocations: 7.984 kB / 358.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.731e-05/0.1878, allocations: 12 kB / 358.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002346/0.188, allocations: 200.4 kB / 359 MB, free: 10.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.188, allocations: 0 / 359 MB, free: 10.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000349/0.1884, allocations: 47.91 kB / 359.1 MB, free: 10.62 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: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.001978/0.1904, allocations: 1.158 MB / 360.2 MB, free: 9.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003606/0.1907, allocations: 137.3 kB / 360.4 MB, free: 9.457 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.1908, allocations: 0 / 360.4 MB, free: 9.457 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.533e-05/0.1908, allocations: 31.92 kB / 360.4 MB, free: 9.426 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005955/0.1915, allocations: 108.3 kB / 360.5 MB, free: 9.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002418/0.1939, allocations: 1.296 MB / 361.8 MB, free: 7.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/0.1943, allocations: 0.7485 MB / 362.5 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001209/0.1945, allocations: 37.92 kB / 362.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.1946, allocations: 63.42 kB / 362.6 MB, free: 7.031 MB / 302.1 MB Notification: Performance of SimCode: time 1.012e-06/0.1946, allocations: 288 / 362.6 MB, free: 7.031 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01848/0.2131, allocations: 5.081 MB / 367.7 MB, free: 2.105 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002445/0.2134, allocations: 258.3 kB / 368 MB, free: 1.852 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.113/2.326, allocations: 4 kB / 368 MB, free: 1.848 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches