Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00134/0.00134, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.533/1.533, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001367, allocations: 67.7 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1345, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.004549/0.1391, allocations: 1.761 MB / 359.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.1407, allocations: 0.6778 MB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001987/0.1409, allocations: 11.88 kB / 360 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002021/0.1412, allocations: 19.8 kB / 360.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004098/0.1416, allocations: 39.72 kB / 360.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006666/0.1423, allocations: 135.6 kB / 360.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003413/0.1426, allocations: 163.6 kB / 360.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001981/0.1428, allocations: 33.53 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000306/0.1431, allocations: 71.7 kB / 360.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000339/0.1435, allocations: 107.6 kB / 360.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.441e-05/0.1436, allocations: 12 kB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.582e-05/0.1437, allocations: 24 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.1438, allocations: 63.81 kB / 360.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001389/0.1439, allocations: 91.45 kB / 360.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003497/0.1443, allocations: 211.5 kB / 361 MB, free: 10.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1443, allocations: 4 kB / 361 MB, free: 10.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1443, allocations: 0 / 361 MB, free: 10.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.1443, allocations: 0 / 361 MB, free: 10.6 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001078/0.1454, allocations: 0.5142 MB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.1455, allocations: 11.97 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.738e-05/0.1456, allocations: 50.73 kB / 361.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002087/0.1458, allocations: 36.55 kB / 361.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.1461, allocations: 247.9 kB / 361.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.155e-05/0.1462, allocations: 16.31 kB / 361.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.143e-05/0.1462, allocations: 20.38 kB / 361.9 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.1474, allocations: 0.6301 MB / 362.5 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.1474, allocations: 3.984 kB / 362.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.122e-05/0.1475, allocations: 4 kB / 362.5 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.701e-05/0.1475, allocations: 12 kB / 362.5 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004177/0.1479, allocations: 187.8 kB / 362.7 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005441/0.1485, allocations: 366.2 kB / 363.1 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004513/0.1489, allocations: 247.6 kB / 363.3 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002787/0.1492, allocations: 162.6 kB / 363.5 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.571e-05/0.1493, allocations: 4 kB / 363.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.1493, allocations: 42.5 kB / 363.5 MB, free: 7.848 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 1.654e-06/0.1493, allocations: 4 kB / 363.5 MB, free: 7.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.0009214/0.1503, allocations: 417.8 kB / 363.9 MB, free: 7.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.1504, allocations: 138.7 kB / 364.1 MB, free: 7.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001996/0.1506, allocations: 174.1 kB / 364.2 MB, free: 7.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.1507, allocations: 29.7 kB / 364.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.746e-05/0.1507, allocations: 97.14 kB / 364.4 MB, free: 6.953 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.352e-05/0.1508, allocations: 47.53 kB / 364.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.1509, allocations: 78.16 kB / 364.5 MB, free: 6.824 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.1511, allocations: 342.8 kB / 364.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.1513, allocations: 76.77 kB / 364.9 MB, free: 6.406 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003395/0.1516, allocations: 326.7 kB / 365.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005006/0.1521, allocations: 409 kB / 365.6 MB, free: 5.445 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.1521, allocations: 7.984 kB / 365.6 MB, free: 5.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006158/0.1528, allocations: 405.4 kB / 366 MB, free: 5.035 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.1528, allocations: 12 kB / 366 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/0.1528, allocations: 11.98 kB / 366 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/0.1528, allocations: 12 kB / 366.1 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000248/0.1531, allocations: 79.84 kB / 366.1 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.516e-05/0.1531, allocations: 15.94 kB / 366.1 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.1533, allocations: 31.83 kB / 366.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/0.1534, allocations: 28 kB / 366.2 MB, free: 4.848 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 13 ($CLKPRE.superSampleIpo.ticks,superSampleIpo.ticks,superSampleIpo.usedFactor,$CLKPRE.FIR1.first,FIR1.first,$CLKPRE.FIR2.first,FIR2.first,$CLKPRE.upSample.b_super,upSample.b_super,$CLKPRE.superSampleIpo.first,superSampleIpo.first,$CLKPRE.upSample.b,upSample.b) * Number of discrete states: 0 () * Number of clocked states: 13 (superSampleIpo.ticks,FIR1.first,FIR1.u_buffer[2],FIR1.u_buffer[1],FIR2.first,FIR2.u_buffer[4],FIR2.u_buffer[3],FIR2.u_buffer[2],FIR2.u_buffer[1],upSample.b_super,superSampleIpo.first,superSampleIpo.uu,upSample.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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.0001968/0.1536, allocations: 179.7 kB / 366.4 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005348/0.1541, allocations: 293.2 kB / 366.7 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.212e-05/0.1542, allocations: 46.58 kB / 366.7 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.1542, allocations: 4 kB / 366.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1542, allocations: 0 / 366.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.1542, allocations: 3.938 kB / 366.7 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002791/0.1545, allocations: 253.2 kB / 367 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1545, allocations: 4 kB / 367 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.1548, allocations: 63.91 kB / 367 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.1548, allocations: 4 kB / 367 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.755e-05/0.1549, allocations: 11.98 kB / 367.1 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.1549, allocations: 0 / 367.1 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.1549, allocations: 3.938 kB / 367.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000622/0.1555, allocations: 436.7 kB / 367.5 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.1556, allocations: 136.7 kB / 367.6 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.031e-05/0.1557, allocations: 12 kB / 367.6 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.1558, allocations: 19.98 kB / 367.6 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.75e-05/0.1559, allocations: 0 / 367.6 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-05/0.1559, allocations: 11.98 kB / 367.7 MB, free: 3.293 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000115/0.156, allocations: 132.3 kB / 367.8 MB, free: 3.164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.156, allocations: 0 / 367.8 MB, free: 3.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004137/0.1565, allocations: 48 kB / 367.8 MB, free: 3.117 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 (upSample.b_super,FIR2.first,FIR1.first,superSampleIpo.usedFactor,superSampleIpo.ticks,upSample.b,superSampleIpo.first) * Number of discrete states: 0 () * Number of clocked states: 13 (upSample.b_super,FIR2.u_buffer[1],FIR2.u_buffer[2],FIR2.u_buffer[3],FIR2.u_buffer[4],FIR2.first,FIR1.u_buffer[1],FIR1.u_buffer[2],FIR1.first,superSampleIpo.ticks,upSample.b,superSampleIpo.uu,superSampleIpo.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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 Backend phase and start with SimCode phase: time 0.001305/0.1578, allocations: 1.192 MB / 369 MB, free: 1.895 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006518/0.1584, allocations: 333.5 kB / 369.4 MB, free: 1.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1585, allocations: 0 / 369.4 MB, free: 1.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.326e-05/0.1585, allocations: 11.98 kB / 369.4 MB, free: 1.559 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007057/0.1592, allocations: 219.4 kB / 369.6 MB, free: 1.348 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2234/0.3827, allocations: 2.933 MB / 372.5 MB, free: 18.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004104/0.3832, allocations: 0.7804 MB / 373.3 MB, free: 17.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.3833, allocations: 21.66 kB / 373.3 MB, free: 17.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000207/0.3835, allocations: 73.75 kB / 373.4 MB, free: 17.91 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3835, allocations: 3.625 kB / 373.4 MB, free: 17.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02907/0.4126, allocations: 4.982 MB / 378.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.19/8.603, allocations: 7.859 kB / 378.4 MB, free: 17.45 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.csv --start-time 0 --stop-time 0.06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.4e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample2/UpSample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches