Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|upSample.y|superSampleIpo.y|FIR1.y|FIR2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|upSample.y|superSampleIpo.y|FIR1.y|FIR2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001481/0.00148, allocations: 104 kB / 16.51 MB, free: 6.645 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.001726/0.001726, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.424/1.424, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 46.75 kB / 300 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1222, allocations: 49.44 MB / 349.4 MB, free: 4.648 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.003645/0.1259, allocations: 1.807 MB / 351.2 MB, free: 2.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001162/0.1271, allocations: 0.6077 MB / 351.8 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.1272, allocations: 3.938 kB / 351.8 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001789/0.1274, allocations: 11.92 kB / 351.8 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002152/0.1277, allocations: 39.78 kB / 351.9 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004082/0.1281, allocations: 114.4 kB / 352 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001977/0.1283, allocations: 143.7 kB / 352.1 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.1284, allocations: 37.47 kB / 352.2 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000124/0.1286, allocations: 55.83 kB / 352.2 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002257/0.1288, allocations: 111.5 kB / 352.3 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.615e-05/0.1288, allocations: 8 kB / 352.3 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.766e-05/0.1289, allocations: 8 kB / 352.3 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.81e-05/0.129, allocations: 59.81 kB / 352.4 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.1291, allocations: 95.45 kB / 352.5 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002187/0.1293, allocations: 191.5 kB / 352.7 MB, free: 1.348 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1293, allocations: 0 / 352.7 MB, free: 1.348 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1293, allocations: 0 / 352.7 MB, free: 1.348 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.1293, allocations: 0 / 352.7 MB, free: 1.348 MB / 286.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.0008913/0.1302, allocations: 0.5141 MB / 353.2 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.1303, allocations: 8.031 kB / 353.2 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.052e-05/0.1304, allocations: 24.66 kB / 353.2 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.1306, allocations: 243.8 kB / 353.5 MB, free: 488 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.318e-05/0.1307, allocations: 20.33 kB / 353.5 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.046e-05/0.1307, allocations: 16.38 kB / 353.5 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/0.1318, allocations: 0.6266 MB / 354.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.1318, allocations: 4 kB / 354.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.338e-05/0.1319, allocations: 11.92 kB / 354.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.157e-05/0.1319, allocations: 8 kB / 354.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003793/0.1323, allocations: 187.8 kB / 354.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004939/0.1328, allocations: 370.2 kB / 354.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004355/0.1333, allocations: 247.6 kB / 354.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00027/0.1335, allocations: 162.6 kB / 355.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.852e-05/0.1336, allocations: 4 kB / 355.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/0.1336, allocations: 38.56 kB / 355.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 1.583e-06/0.1336, allocations: 0 / 355.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.0008413/0.1345, allocations: 422.6 kB / 355.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.1346, allocations: 139 kB / 355.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000152/0.1347, allocations: 170.4 kB / 355.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.125e-05/0.1348, allocations: 33.7 kB / 355.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.359e-05/0.1349, allocations: 93.14 kB / 356 MB, free: 13.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.812e-05/0.1349, allocations: 51.53 kB / 356 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.279e-05/0.135, allocations: 74.12 kB / 356.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1351, allocations: 330.8 kB / 356.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.1353, allocations: 80.83 kB / 356.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/0.1356, allocations: 322.7 kB / 356.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004674/0.1361, allocations: 416.8 kB / 357.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1361, allocations: 0 / 357.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006446/0.1367, allocations: 405.5 kB / 357.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.1368, allocations: 8.219 kB / 357.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/0.1368, allocations: 12 kB / 357.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.78e-05/0.1368, allocations: 12 kB / 357.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004106/0.1373, allocations: 87.83 kB / 357.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.803e-05/0.1373, allocations: 15.94 kB / 357.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001614/0.1375, allocations: 43.67 kB / 357.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.1375, allocations: 24 kB / 357.8 MB, free: 11.69 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.0001777/0.1377, allocations: 182.3 kB / 358 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004951/0.1382, allocations: 301.2 kB / 358.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.407e-05/0.1383, allocations: 38.64 kB / 358.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1383, allocations: 4 kB / 358.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.1383, allocations: 0 / 358.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1383, allocations: 7.938 kB / 358.3 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002832/0.1386, allocations: 249.3 kB / 358.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1386, allocations: 0 / 358.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002599/0.1389, allocations: 63.91 kB / 358.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1389, allocations: 0 / 358.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.1389, allocations: 11.98 kB / 358.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.1389, allocations: 4 kB / 358.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.1389, allocations: 4 kB / 358.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005713/0.1395, allocations: 436.5 kB / 359.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.1396, allocations: 124.8 kB / 359.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.358e-05/0.1397, allocations: 19.98 kB / 359.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.1398, allocations: 19.97 kB / 359.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.917e-05/0.1399, allocations: 4 kB / 359.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.558e-05/0.1399, allocations: 8 kB / 359.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.856e-05/0.14, allocations: 131.2 kB / 359.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.14, allocations: 0 / 359.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003713/0.1404, allocations: 52 kB / 359.4 MB, free: 9.961 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.0001425/0.1405, allocations: 122.8 kB / 359.6 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004725/0.141, allocations: 289.2 kB / 359.8 MB, free: 9.551 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.141, allocations: 0 / 359.8 MB, free: 9.551 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.715e-05/0.1411, allocations: 12.55 kB / 359.8 MB, free: 9.539 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006885/0.1418, allocations: 226.5 kB / 360.1 MB, free: 9.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.1431, allocations: 0.6179 MB / 360.7 MB, free: 8.668 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.1434, allocations: 0.7803 MB / 361.5 MB, free: 7.863 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.805e-05/0.1435, allocations: 18.3 kB / 361.5 MB, free: 7.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.043e-05/0.1436, allocations: 31.42 kB / 361.5 MB, free: 7.816 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1436, allocations: 4 kB / 361.5 MB, free: 7.812 MB / 302.1 MB Notification: Performance of Templates: time 0.005391/0.149, allocations: 2.425 MB / 363.9 MB, free: 5.391 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample2/UpSample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches