Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.00112/0.00112, allocations: 92.83 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.00121/0.00121, allocations: 174.7 kB / 17.56 MB, free: 6.184 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.702/1.702, allocations: 223.3 MB / 241.6 MB, free: 224 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003627, allocations: 8 kB / 301.5 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1508, allocations: 50.42 MB / 352 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003034/0.1539, allocations: 1.656 MB / 353.6 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002759/0.1567, allocations: 1.146 MB / 354.8 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003029/0.157, allocations: 0 / 354.8 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005026/0.1576, allocations: 67.73 kB / 354.8 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004337/0.158, allocations: 83.64 kB / 354.9 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00131/0.1593, allocations: 266.5 kB / 355.2 MB, free: 392 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004877/0.1598, allocations: 199.5 kB / 355.4 MB, free: 192 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002056/0.1601, allocations: 45.64 kB / 355.4 MB, free: 148 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002423/0.1603, allocations: 79.56 kB / 355.5 MB, free: 68 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002666/0.1606, allocations: 95.59 kB / 355.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.257e-05/0.1606, allocations: 4 kB / 355.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002537/0.1609, allocations: 51.92 kB / 355.6 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.161, allocations: 59.75 kB / 355.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000166/0.1612, allocations: 125 kB / 355.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005417/0.1617, allocations: 263.3 kB / 356.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1618, allocations: 4 kB / 356.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.548e-06/0.1618, allocations: 0 / 356.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.1618, allocations: 3.938 kB / 356.1 MB, free: 15.46 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001294/0.1631, allocations: 0.5322 MB / 356.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.2e-05/0.1632, allocations: 8.031 kB / 356.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001053/0.1633, allocations: 50.73 kB / 356.7 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.1634, allocations: 32.56 kB / 356.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005847/0.164, allocations: 299.5 kB / 357 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.871e-05/0.164, allocations: 20.31 kB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.527e-05/0.1641, allocations: 15.94 kB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007672/0.1649, allocations: 327.2 kB / 357.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.1649, allocations: 4 kB / 357.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.1649, allocations: 0 / 357.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.165, allocations: 4 kB / 357.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002254/0.1652, allocations: 71.89 kB / 357.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009513/0.1661, allocations: 418.2 kB / 357.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004524/0.1666, allocations: 196 kB / 358 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001903/0.1668, allocations: 98.52 kB / 358.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.497e-05/0.1669, allocations: 240 / 358.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002274/0.1671, allocations: 87.3 kB / 358.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.723e-06/0.1671, allocations: 0 / 358.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006677/0.1678, allocations: 253.4 kB / 358.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001708/0.168, allocations: 170.4 kB / 358.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004471/0.1684, allocations: 346.9 kB / 359 MB, free: 12.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.689e-05/0.1685, allocations: 29.7 kB / 359 MB, free: 12.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.1686, allocations: 136.6 kB / 359.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.971e-05/0.1687, allocations: 27.7 kB / 359.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.132e-05/0.1687, allocations: 33.7 kB / 359.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002195/0.169, allocations: 338.8 kB / 359.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.1691, allocations: 40.45 kB / 359.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/0.1693, allocations: 191.8 kB / 359.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003471/0.1697, allocations: 207.2 kB / 359.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/0.1697, allocations: 4 kB / 359.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004548/0.1702, allocations: 237 kB / 360.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.1702, allocations: 4 kB / 360.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.1702, allocations: 4 kB / 360.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.1702, allocations: 11.94 kB / 360.2 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.1704, allocations: 40.17 kB / 360.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.819e-05/0.1705, allocations: 16.44 kB / 360.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.1706, allocations: 31.84 kB / 360.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.252e-05/0.1707, allocations: 12 kB / 360.3 MB, free: 10.8 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.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],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.0002398/0.1709, allocations: 176.5 kB / 360.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002442/0.1712, allocations: 137.3 kB / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.1713, allocations: 33.73 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.1713, allocations: 7.938 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.1713, allocations: 0 / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.1713, allocations: 4 kB / 360.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003218/0.1716, allocations: 265.4 kB / 360.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.1717, allocations: 0 / 360.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001415/0.1718, allocations: 27.92 kB / 360.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.774e-06/0.1718, allocations: 4 kB / 360.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.1719, allocations: 7.984 kB / 360.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.935e-06/0.1719, allocations: 7.938 kB / 360.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.1719, allocations: 0 / 360.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004855/0.1724, allocations: 245.6 kB / 361.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.1725, allocations: 132.6 kB / 361.3 MB, free: 9.676 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.011e-05/0.1726, allocations: 8 kB / 361.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.1727, allocations: 11.98 kB / 361.3 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.214e-05/0.1728, allocations: 15.86 kB / 361.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.954e-05/0.1728, allocations: 8 kB / 361.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003077/0.1732, allocations: 249.9 kB / 361.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1732, allocations: 4 kB / 361.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003983/0.1736, allocations: 48 kB / 361.7 MB, free: 9.336 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.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.00235/0.1759, allocations: 1.202 MB / 362.9 MB, free: 8.254 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000414/0.1764, allocations: 151.7 kB / 363 MB, free: 8.105 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/0.1764, allocations: 0 / 363 MB, free: 8.105 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.734e-05/0.1765, allocations: 32.98 kB / 363 MB, free: 8.074 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006524/0.1771, allocations: 116.8 kB / 363.1 MB, free: 7.957 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00292/0.1801, allocations: 1.534 MB / 364.7 MB, free: 6.312 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005236/0.1806, allocations: 0.7755 MB / 365.5 MB, free: 5.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001675/0.1808, allocations: 34.77 kB / 365.5 MB, free: 5.477 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.181, allocations: 79.39 kB / 365.6 MB, free: 5.398 MB / 302.1 MB Notification: Performance of SimCode: time 1.553e-06/0.181, allocations: 0 / 365.6 MB, free: 5.398 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3117/0.4927, allocations: 5.625 MB / 371.2 MB, free: 24.59 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001665/0.4929, allocations: 253.8 kB / 371.4 MB, free: 24.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.282/2.775, allocations: 0 / 371.4 MB, free: 24.34 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches