Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001025/0.001025, allocations: 192.3 kB / 17.37 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 226.5 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001004/0.001004, allocations: 106.1 kB / 296.8 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003106/0.0003108, allocations: 4 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2565, allocations: 51.3 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.001724/0.2583, allocations: 1.444 MB / 409.5 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009114/0.2592, allocations: 0.595 MB / 410.1 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.2593, allocations: 3.938 kB / 410.1 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.2595, allocations: 16.7 kB / 410.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001854/0.2597, allocations: 33.78 kB / 410.1 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003551/0.26, allocations: 111 kB / 410.2 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001586/0.2602, allocations: 135.6 kB / 410.4 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.2604, allocations: 32.47 kB / 410.4 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.2605, allocations: 59.77 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001751/0.2607, allocations: 104.6 kB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.475e-05/0.2607, allocations: 11.94 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.714e-05/0.2608, allocations: 8 kB / 410.6 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.218e-05/0.2608, allocations: 58.84 kB / 410.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.39e-05/0.2609, allocations: 109.2 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001355/0.2611, allocations: 140.7 kB / 410.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.2611, allocations: 4 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.2611, allocations: 0 / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.2611, allocations: 0 / 410.9 MB, free: 24.82 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.0006462/0.2618, allocations: 480.4 kB / 411.4 MB, free: 24.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.2618, allocations: 11.5 kB / 411.4 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.262, allocations: 36.64 kB / 411.4 MB, free: 24.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000224/0.2622, allocations: 247.8 kB / 411.7 MB, free: 23.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.26e-05/0.2622, allocations: 16.33 kB / 411.7 MB, free: 23.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.706e-05/0.2623, allocations: 20.38 kB / 411.7 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009256/0.2632, allocations: 0.634 MB / 412.3 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.2632, allocations: 4 kB / 412.3 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.2633, allocations: 4 kB / 412.3 MB, free: 23.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.648e-05/0.2633, allocations: 11.98 kB / 412.3 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003476/0.2636, allocations: 195.8 kB / 412.5 MB, free: 23.08 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003585/0.264, allocations: 366.3 kB / 412.9 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003643/0.2644, allocations: 247.6 kB / 413.1 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002234/0.2646, allocations: 154.6 kB / 413.3 MB, free: 22.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.2647, allocations: 11.98 kB / 413.3 MB, free: 22.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.039e-05/0.2647, allocations: 42.66 kB / 413.3 MB, free: 22.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.603e-06/0.2647, allocations: 0 / 413.3 MB, free: 22.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.0007484/0.2654, allocations: 426.6 kB / 413.8 MB, free: 21.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.349e-05/0.2655, allocations: 138.7 kB / 413.9 MB, free: 21.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.2657, allocations: 180.1 kB / 414.1 MB, free: 21.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.2657, allocations: 29.7 kB / 414.1 MB, free: 21.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.126e-05/0.2657, allocations: 101.1 kB / 414.2 MB, free: 21.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.2658, allocations: 43.53 kB / 414.2 MB, free: 21.22 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.298e-05/0.2658, allocations: 12 kB / 414.3 MB, free: 21.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.522e-05/0.2659, allocations: 330.8 kB / 414.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.266, allocations: 76.83 kB / 414.6 MB, free: 20.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.2662, allocations: 322.7 kB / 415 MB, free: 20.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002973/0.2665, allocations: 424.9 kB / 415.4 MB, free: 19.83 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.2665, allocations: 4 kB / 415.4 MB, free: 19.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004889/0.267, allocations: 401.5 kB / 415.8 MB, free: 19.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.267, allocations: 16.11 kB / 415.8 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.267, allocations: 16 kB / 415.8 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.2671, allocations: 12 kB / 415.8 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002228/0.2673, allocations: 83.84 kB / 415.9 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.52e-05/0.2673, allocations: 23.86 kB / 415.9 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001392/0.2675, allocations: 27.75 kB / 416 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/0.2675, allocations: 24 kB / 416 MB, free: 19.23 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.0001214/0.2676, allocations: 182.4 kB / 416.2 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004019/0.268, allocations: 297.2 kB / 416.4 MB, free: 18.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.321e-05/0.2681, allocations: 34.64 kB / 416.5 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.2681, allocations: 7.984 kB / 416.5 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2681, allocations: 0 / 416.5 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.2681, allocations: 4 kB / 416.5 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.2683, allocations: 249.2 kB / 416.7 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.2684, allocations: 4 kB / 416.7 MB, free: 18.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002333/0.2686, allocations: 63.84 kB / 416.8 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.2686, allocations: 0 / 416.8 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.2686, allocations: 15.98 kB / 416.8 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2686, allocations: 4 kB / 416.8 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2686, allocations: 0 / 416.8 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004684/0.2691, allocations: 440.1 kB / 417.2 MB, free: 17.87 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.125e-05/0.2692, allocations: 136.7 kB / 417.4 MB, free: 17.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.425e-05/0.2693, allocations: 16 kB / 417.4 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.2694, allocations: 15.98 kB / 417.4 MB, free: 17.69 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.995e-05/0.2694, allocations: 0 / 417.4 MB, free: 17.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.2695, allocations: 15.98 kB / 417.4 MB, free: 17.67 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.558e-05/0.2696, allocations: 127.2 kB / 417.6 MB, free: 17.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2696, allocations: 0 / 417.6 MB, free: 17.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003404/0.2699, allocations: 52 kB / 417.6 MB, free: 17.5 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.0001195/0.27, allocations: 119.2 kB / 417.7 MB, free: 17.37 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004185/0.2705, allocations: 289.8 kB / 418 MB, free: 17.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2705, allocations: 0 / 418 MB, free: 17.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.705e-05/0.2705, allocations: 11.98 kB / 418 MB, free: 17.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000615/0.2711, allocations: 223.8 kB / 418.2 MB, free: 16.86 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.2722, allocations: 0.6394 MB / 418.9 MB, free: 16.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001748/0.2724, allocations: 0.7764 MB / 419.6 MB, free: 15.38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.3e-05/0.2725, allocations: 27.44 kB / 419.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2725, allocations: 0 / 419.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of Templates: time 0.003828/0.2763, allocations: 2.931 MB / 422.6 MB, free: 12.45 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches