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.001071/0.001071, allocations: 115.2 kB / 16.63 MB, free: 6.812 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.001083/0.001083, allocations: 190 kB / 17.55 MB, free: 5.934 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.478/1.478, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 43.06 kB / 300.1 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1232, allocations: 49.44 MB / 349.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.003715/0.1269, allocations: 1.803 MB / 351.4 MB, free: 2.938 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001218/0.1282, allocations: 0.6078 MB / 352 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.1284, allocations: 7.938 kB / 352 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001739/0.1286, allocations: 15.86 kB / 352 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000213/0.1288, allocations: 35.84 kB / 352 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000417/0.1292, allocations: 107.8 kB / 352.1 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000241/0.1295, allocations: 159.6 kB / 352.3 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.1296, allocations: 29.55 kB / 352.3 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.1298, allocations: 71.75 kB / 352.4 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000232/0.13, allocations: 107.6 kB / 352.5 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.1301, allocations: 12 kB / 352.5 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.821e-05/0.1301, allocations: 12 kB / 352.5 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.392e-05/0.1302, allocations: 71.8 kB / 352.6 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.1303, allocations: 91.47 kB / 352.7 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002533/0.1306, allocations: 207.5 kB / 352.9 MB, free: 1.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1306, allocations: 3.984 kB / 352.9 MB, free: 1.406 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1306, allocations: 0 / 352.9 MB, free: 1.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.1306, allocations: 0 / 352.9 MB, free: 1.406 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.0009017/0.1315, allocations: 0.5025 MB / 353.4 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.1316, allocations: 11.89 kB / 353.4 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.563e-05/0.1317, allocations: 24.66 kB / 353.4 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003075/0.132, allocations: 251.8 kB / 353.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.54e-05/0.132, allocations: 24.33 kB / 353.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.263e-05/0.1321, allocations: 16.38 kB / 353.7 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.1332, allocations: 0.6343 MB / 354.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.1332, allocations: 3.938 kB / 354.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.1332, allocations: 7.984 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.028e-05/0.1332, allocations: 12 kB / 354.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004154/0.1337, allocations: 187.8 kB / 354.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00044/0.1341, allocations: 374.1 kB / 354.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004514/0.1346, allocations: 242.8 kB / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002713/0.1349, allocations: 158.6 kB / 355.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.088e-05/0.1349, allocations: 8 kB / 355.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.1349, allocations: 42.5 kB / 355.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 1.944e-06/0.135, allocations: 0 / 355.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.0008533/0.1358, allocations: 414.9 kB / 355.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.1359, allocations: 139.1 kB / 355.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.1361, allocations: 174.4 kB / 356.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.1361, allocations: 37.7 kB / 356.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.169e-05/0.1362, allocations: 97.12 kB / 356.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.499e-05/0.1362, allocations: 47.53 kB / 356.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.004e-05/0.1363, allocations: 74.12 kB / 356.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.1364, allocations: 334.8 kB / 356.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.1366, allocations: 72.83 kB / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002965/0.1369, allocations: 322.7 kB / 357 MB, free: 12.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004151/0.1373, allocations: 412.9 kB / 357.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.1373, allocations: 4 kB / 357.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005876/0.1379, allocations: 404.8 kB / 357.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.138, allocations: 8 kB / 357.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.138, allocations: 8.844 kB / 357.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.339e-05/0.138, allocations: 12 kB / 357.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.1383, allocations: 91.83 kB / 358 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.72e-05/0.1383, allocations: 19.88 kB / 358 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001618/0.1385, allocations: 35.73 kB / 358 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.656e-05/0.1385, allocations: 24 kB / 358 MB, free: 11.75 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.0001766/0.1387, allocations: 186.2 kB / 358.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005076/0.1392, allocations: 294.3 kB / 358.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.836e-05/0.1393, allocations: 38.64 kB / 358.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.1393, allocations: 8 kB / 358.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.1393, allocations: 4 kB / 358.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1393, allocations: 0 / 358.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002342/0.1396, allocations: 245.3 kB / 358.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1396, allocations: 0 / 358.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.1398, allocations: 67.91 kB / 358.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.1399, allocations: 3.938 kB / 358.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-05/0.1399, allocations: 11.98 kB / 358.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.1399, allocations: 4 kB / 358.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1399, allocations: 3.938 kB / 358.9 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005911/0.1405, allocations: 435.3 kB / 359.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.1406, allocations: 128.8 kB / 359.4 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.334e-05/0.1407, allocations: 16 kB / 359.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.1409, allocations: 15.97 kB / 359.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.029e-05/0.1409, allocations: 8 kB / 359.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.397e-05/0.1409, allocations: 11.98 kB / 359.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.377e-05/0.141, allocations: 127.5 kB / 359.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.282e-06/0.141, allocations: 4 kB / 359.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004244/0.1415, allocations: 51.94 kB / 359.7 MB, free: 10.01 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.0001398/0.1416, allocations: 123.2 kB / 359.8 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006152/0.1422, allocations: 332 kB / 360.1 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1423, allocations: 1.812 kB / 360.1 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.33e-05/0.1423, allocations: 8 kB / 360.1 MB, free: 9.547 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006792/0.143, allocations: 224.9 kB / 360.3 MB, free: 9.332 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.1443, allocations: 0.6242 MB / 361 MB, free: 8.676 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.1446, allocations: 0.7722 MB / 361.7 MB, free: 7.875 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.536e-05/0.1447, allocations: 30.22 kB / 361.8 MB, free: 7.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.159e-05/0.1448, allocations: 31.36 kB / 361.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1448, allocations: 0 / 361.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of Templates: time 0.005905/0.1507, allocations: 2.567 MB / 364.4 MB, free: 5.25 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