Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="FIR1.y|FIR2.y|Time|sample.y|superSampleIpo.y|upSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="FIR1.y|FIR2.y|Time|sample.y|superSampleIpo.y|upSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.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.001618/0.001618, allocations: 107.7 kB / 16.45 MB, free: 6.449 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.0012/0.001199, allocations: 189.5 kB / 17.39 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.722/1.722, allocations: 205.1 MB / 223.3 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08527/0.08527, allocations: 12.58 MB / 283.2 MB, free: 15.4 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002662/0.002662, allocations: 93.09 kB / 394.2 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1383, allocations: 49.4 MB / 443.6 MB, free: 472 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2): time 0.004795/0.1432, allocations: 1.734 MB / 445.3 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001807/0.145, allocations: 0.6631 MB / 446 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002818/0.1454, allocations: 3.938 kB / 446 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002779/0.1457, allocations: 19.8 kB / 446 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003231/0.146, allocations: 43.7 kB / 446 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005414/0.1466, allocations: 127.7 kB / 446.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003298/0.1469, allocations: 155.6 kB / 446.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.1471, allocations: 41.45 kB / 446.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002028/0.1473, allocations: 71.75 kB / 446.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002611/0.1476, allocations: 103.6 kB / 446.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.635e-05/0.1476, allocations: 16 kB / 446.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.189e-05/0.1477, allocations: 12 kB / 446.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.1478, allocations: 75.8 kB / 446.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.1479, allocations: 83.47 kB / 446.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004145/0.1483, allocations: 203.2 kB / 446.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1484, allocations: 0 / 446.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1484, allocations: 0 / 446.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.069e-05/0.1484, allocations: 0 / 446.9 MB, free: 13.11 MB / 334.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.001176/0.1496, allocations: 0.5063 MB / 447.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.193e-05/0.1497, allocations: 12.03 kB / 447.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.1498, allocations: 24.66 kB / 447.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00041/0.1502, allocations: 243.8 kB / 447.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.234e-05/0.1502, allocations: 20.31 kB / 447.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.575e-05/0.1503, allocations: 16.38 kB / 447.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.1515, allocations: 0.6342 MB / 448.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.1516, allocations: 3.938 kB / 448.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.1516, allocations: 8 kB / 448.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.713e-05/0.1517, allocations: 19.94 kB / 448.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004819/0.1522, allocations: 183.8 kB / 448.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005996/0.1528, allocations: 370.2 kB / 448.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000502/0.1533, allocations: 243.7 kB / 449.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003503/0.1536, allocations: 154.6 kB / 449.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.284e-05/0.1537, allocations: 12.14 kB / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.1538, allocations: 38.5 kB / 449.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 2.104e-06/0.1538, allocations: 4 kB / 449.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.0009194/0.1547, allocations: 415 kB / 449.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/0.1548, allocations: 142.9 kB / 449.9 MB, free: 9.859 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/0.155, allocations: 170.4 kB / 450.1 MB, free: 9.684 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.155, allocations: 33.7 kB / 450.1 MB, free: 9.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.114e-05/0.1551, allocations: 101 kB / 450.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.635e-05/0.1552, allocations: 47.56 kB / 450.3 MB, free: 9.496 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.1553, allocations: 74.27 kB / 450.3 MB, free: 9.418 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1555, allocations: 342.8 kB / 450.7 MB, free: 9.074 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.1556, allocations: 68.83 kB / 450.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003869/0.156, allocations: 322.7 kB / 451.1 MB, free: 8.566 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006069/0.1567, allocations: 420.9 kB / 451.5 MB, free: 8.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.626e-05/0.1567, allocations: 4 kB / 451.5 MB, free: 8.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006513/0.1574, allocations: 405.4 kB / 451.9 MB, free: 7.629 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.1574, allocations: 8 kB / 451.9 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.1574, allocations: 8 kB / 451.9 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.289e-05/0.1574, allocations: 12 kB / 451.9 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002654/0.1577, allocations: 83.84 kB / 452 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.37e-05/0.1578, allocations: 19.92 kB / 452 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002049/0.158, allocations: 31.69 kB / 452 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.105e-05/0.158, allocations: 27.94 kB / 452.1 MB, free: 7.441 MB / 334.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.0002023/0.1582, allocations: 185.8 kB / 452.2 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000522/0.1587, allocations: 289.3 kB / 452.5 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.507e-05/0.1589, allocations: 34.64 kB / 452.6 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.1589, allocations: 4 kB / 452.6 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.1589, allocations: 4 kB / 452.6 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.1589, allocations: 0 / 452.6 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003658/0.1593, allocations: 253.2 kB / 452.8 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.1593, allocations: 0 / 452.8 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/0.1595, allocations: 63.91 kB / 452.9 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.1596, allocations: 0 / 452.9 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.1596, allocations: 19.98 kB / 452.9 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.1596, allocations: 4 kB / 452.9 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1596, allocations: 7.875 kB / 452.9 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006172/0.1602, allocations: 441.2 kB / 453.3 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.1604, allocations: 132.8 kB / 453.5 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.745e-05/0.1604, allocations: 16 kB / 453.5 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.1606, allocations: 11.98 kB / 453.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.591e-05/0.1606, allocations: 4 kB / 453.5 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.503e-05/0.1606, allocations: 15.98 kB / 453.5 MB, free: 5.883 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001104/0.1608, allocations: 127.2 kB / 453.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1608, allocations: 0 / 453.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003967/0.1612, allocations: 48 kB / 453.7 MB, free: 5.711 MB / 334.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.0001413/0.1613, allocations: 119.2 kB / 453.8 MB, free: 5.582 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005331/0.1619, allocations: 297.7 kB / 454.1 MB, free: 5.293 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1619, allocations: 4.125 kB / 454.1 MB, free: 5.289 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.644e-05/0.1619, allocations: 8 kB / 454.1 MB, free: 5.281 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006698/0.1626, allocations: 216 kB / 454.3 MB, free: 5.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.1639, allocations: 0.5265 MB / 454.8 MB, free: 4.508 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004069/0.1643, allocations: 0.784 MB / 455.6 MB, free: 3.699 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.242e-05/0.1644, allocations: 22.28 kB / 455.6 MB, free: 3.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.019e-05/0.1645, allocations: 31.38 kB / 455.7 MB, free: 3.648 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1645, allocations: 0 / 455.7 MB, free: 3.648 MB / 334.1 MB Notification: Performance of Templates: time 0.008149/0.1727, allocations: 2.673 MB / 458.3 MB, free: 0.9727 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches