Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001126/0.001126, allocations: 184.4 kB / 16.45 MB, free: 5.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.4 MB / 222.6 MB, free: 9.102 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007453/0.0007452, allocations: 92.92 kB / 270.9 MB, free: 8.344 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06888/0.06888, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004131/0.0004133, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06976/0.07019, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2): time 0.001469/0.0717, allocations: 1.422 MB / 443.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008428/0.07256, allocations: 0.6325 MB / 444.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.07268, allocations: 3.938 kB / 444.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001481/0.07284, allocations: 19.86 kB / 444.5 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001918/0.07304, allocations: 27.84 kB / 444.5 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003277/0.07337, allocations: 111.8 kB / 444.6 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001306/0.07351, allocations: 127.7 kB / 444.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.07363, allocations: 21.55 kB / 444.7 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.07374, allocations: 59.77 kB / 444.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.07389, allocations: 99.64 kB / 444.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.591e-05/0.07393, allocations: 8 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.297e-05/0.07395, allocations: 4 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.27e-05/0.07402, allocations: 51.83 kB / 445 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.476e-05/0.07407, allocations: 61.56 kB / 445 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001127/0.07419, allocations: 135.9 kB / 445.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.0742, allocations: 4 kB / 445.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.07421, allocations: 0 / 445.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.07422, allocations: 0 / 445.2 MB, free: 13.65 MB / 298.7 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.0006228/0.07485, allocations: 482.5 kB / 445.6 MB, free: 13.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.07489, allocations: 8.031 kB / 445.6 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.555e-05/0.07494, allocations: 23.72 kB / 445.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001947/0.07514, allocations: 246.5 kB / 445.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.763e-05/0.07517, allocations: 15.94 kB / 445.9 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.78e-05/0.07521, allocations: 23.98 kB / 445.9 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008634/0.07608, allocations: 0.6451 MB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.0761, allocations: 0 / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.07612, allocations: 8 kB / 446.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.126e-05/0.07615, allocations: 11.98 kB / 446.6 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003307/0.07649, allocations: 183.8 kB / 446.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003081/0.0768, allocations: 370.2 kB / 447.1 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000353/0.07717, allocations: 251.6 kB / 447.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.0774, allocations: 156.1 kB / 447.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.296e-05/0.07745, allocations: 20.12 kB / 447.6 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.506e-05/0.07747, allocations: 38.56 kB / 447.6 MB, free: 10.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 2.525e-06/0.07748, allocations: 0 / 447.6 MB, free: 10.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.0007116/0.07819, allocations: 421.2 kB / 448 MB, free: 10.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.43e-05/0.07828, allocations: 138.8 kB / 448.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.07841, allocations: 171.3 kB / 448.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.07844, allocations: 33.64 kB / 448.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.779e-05/0.07848, allocations: 105 kB / 448.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.303e-05/0.07852, allocations: 43.61 kB / 448.5 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.097e-05/0.07854, allocations: 12 kB / 448.5 MB, free: 10.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.698e-05/0.0786, allocations: 330.8 kB / 448.8 MB, free: 9.703 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.07873, allocations: 76.83 kB / 448.9 MB, free: 9.629 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.07892, allocations: 326.7 kB / 449.2 MB, free: 9.188 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/0.07909, allocations: 131.8 kB / 449.3 MB, free: 9.059 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.0791, allocations: 8 kB / 449.4 MB, free: 9.051 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004595/0.07956, allocations: 409.5 kB / 449.8 MB, free: 8.645 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.07959, allocations: 8 kB / 449.8 MB, free: 8.637 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.0796, allocations: 12.12 kB / 449.8 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.07963, allocations: 16 kB / 449.8 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002179/0.07985, allocations: 79.78 kB / 449.9 MB, free: 8.531 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.07988, allocations: 19.92 kB / 449.9 MB, free: 8.512 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001446/0.08003, allocations: 39.7 kB / 449.9 MB, free: 8.473 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.043e-05/0.08005, allocations: 24 kB / 449.9 MB, free: 8.449 MB / 298.7 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 (superSampleIpo.ticks,$CLKPRE.superSampleIpo.ticks,superSampleIpo.usedFactor,FIR1.first,$CLKPRE.FIR1.first,FIR2.first,$CLKPRE.FIR2.first,upSample.b_super,$CLKPRE.upSample.b_super,superSampleIpo.first,$CLKPRE.superSampleIpo.first,upSample.b,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001225/0.08018, allocations: 177.6 kB / 450.1 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004006/0.08059, allocations: 286.4 kB / 450.4 MB, free: 7.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.319e-05/0.08066, allocations: 38.66 kB / 450.4 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.08067, allocations: 7.938 kB / 450.4 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.08068, allocations: 0 / 450.4 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.08069, allocations: 7.969 kB / 450.5 MB, free: 7.926 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001626/0.08086, allocations: 245.2 kB / 450.7 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.08087, allocations: 0 / 450.7 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002422/0.08112, allocations: 71.89 kB / 450.8 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/0.08113, allocations: 3.938 kB / 450.8 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/0.08115, allocations: 8 kB / 450.8 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.08116, allocations: 4 kB / 450.8 MB, free: 7.551 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.08117, allocations: 4 kB / 450.8 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004719/0.08164, allocations: 447.9 kB / 451.2 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.347e-05/0.08174, allocations: 128.8 kB / 451.3 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.285e-05/0.08179, allocations: 23.98 kB / 451.4 MB, free: 6.922 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.08193, allocations: 16 kB / 451.4 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.999e-05/0.08197, allocations: 7.922 kB / 451.4 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.08199, allocations: 8 kB / 451.4 MB, free: 6.891 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.46e-05/0.08206, allocations: 131.2 kB / 451.5 MB, free: 6.762 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08207, allocations: 0 / 451.5 MB, free: 6.762 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003301/0.0824, allocations: 44 kB / 451.6 MB, free: 6.719 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001007/0.08251, allocations: 119.2 kB / 451.7 MB, free: 6.594 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004011/0.08292, allocations: 293.8 kB / 452 MB, free: 6.309 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.08293, allocations: 0 / 452 MB, free: 6.309 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.427e-05/0.08297, allocations: 8 kB / 452 MB, free: 6.301 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005576/0.08353, allocations: 216.1 kB / 452.2 MB, free: 6.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.08458, allocations: 0.6432 MB / 452.8 MB, free: 5.414 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001727/0.08477, allocations: 0.7803 MB / 453.6 MB, free: 4.609 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.895e-05/0.08483, allocations: 27.42 kB / 453.6 MB, free: 4.582 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.08484, allocations: 0 / 453.6 MB, free: 4.582 MB / 298.7 MB Notification: Performance of Templates: time 0.003508/0.08835, allocations: 2.909 MB / 456.6 MB, free: 1.672 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches