Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|add.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|add.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001383/0.001384, allocations: 198.8 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 226.5 MB / 245.3 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007477/0.0007479, allocations: 102.8 kB / 297.4 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001976/0.0001977, allocations: 7.984 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1929/0.1931, allocations: 51.3 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1023/0.2955, allocations: 78.33 MB / 487 MB, free: 13.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.2958, allocations: 83.95 kB / 487.1 MB, free: 13.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0122/0.308, allocations: 4.563 MB / 491.6 MB, free: 8.609 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.308, allocations: 0 / 491.6 MB, free: 8.609 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.308, allocations: 4 kB / 491.6 MB, free: 8.605 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0004827/0.3085, allocations: 411 kB / 492.1 MB, free: 8.152 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.3086, allocations: 8.031 kB / 492.1 MB, free: 8.145 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001561/0.3087, allocations: 28.73 kB / 492.1 MB, free: 8.117 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002584/0.309, allocations: 221.6 kB / 492.3 MB, free: 7.863 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.309, allocations: 12.38 kB / 492.3 MB, free: 7.852 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.755e-05/0.3091, allocations: 4.375 kB / 492.3 MB, free: 7.848 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000477/0.3096, allocations: 269.9 kB / 492.6 MB, free: 7.562 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.3096, allocations: 4.188 kB / 492.6 MB, free: 7.559 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.3096, allocations: 7.938 kB / 492.6 MB, free: 7.551 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.3096, allocations: 4 kB / 492.6 MB, free: 7.547 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/0.3098, allocations: 55.84 kB / 492.7 MB, free: 7.492 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004348/0.3102, allocations: 314.5 kB / 493 MB, free: 7.129 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002239/0.3104, allocations: 139.8 kB / 493.1 MB, free: 6.965 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.3106, allocations: 74.64 kB / 493.2 MB, free: 6.883 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.3106, allocations: 12.14 kB / 493.2 MB, free: 6.871 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.902e-05/0.3106, allocations: 30.56 kB / 493.2 MB, free: 6.832 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 3.577e-06/0.3107, allocations: 3.984 kB / 493.2 MB, free: 6.828 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003983/0.3111, allocations: 181.7 kB / 493.4 MB, free: 6.645 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.989e-05/0.3111, allocations: 122.7 kB / 493.5 MB, free: 6.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.3113, allocations: 150.2 kB / 493.7 MB, free: 6.344 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.3113, allocations: 29.7 kB / 493.7 MB, free: 6.309 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.613e-05/0.3114, allocations: 88.14 kB / 493.8 MB, free: 6.219 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.3114, allocations: 19.8 kB / 493.8 MB, free: 6.199 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.133e-06/0.3114, allocations: 4 kB / 493.8 MB, free: 6.195 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.3115, allocations: 322.8 kB / 494.1 MB, free: 5.871 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.454e-05/0.3116, allocations: 28.02 kB / 494.1 MB, free: 5.844 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001167/0.3117, allocations: 141.3 kB / 494.3 MB, free: 5.656 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001824/0.3119, allocations: 182.3 kB / 494.5 MB, free: 5.426 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3119, allocations: 0 / 494.5 MB, free: 5.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000262/0.3122, allocations: 181.2 kB / 494.6 MB, free: 5.242 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.3122, allocations: 8 kB / 494.6 MB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.3122, allocations: 4.078 kB / 494.6 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.3122, allocations: 4.531 kB / 494.6 MB, free: 5.227 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.3123, allocations: 39.92 kB / 494.7 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.3124, allocations: 7.984 kB / 494.7 MB, free: 5.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.856e-05/0.3124, allocations: 15.84 kB / 494.7 MB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.3125, allocations: 12 kB / 494.7 MB, free: 5.152 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 (upSample2.b_super,$CLKPRE.upSample2.b_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample2.b,$CLKPRE.upSample2.b,upSample1.b,$CLKPRE.upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 9.613e-05/0.3126, allocations: 144.2 kB / 494.9 MB, free: 5.004 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001705/0.3127, allocations: 125.4 kB / 495 MB, free: 4.875 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.495e-05/0.3128, allocations: 16.72 kB / 495 MB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3128, allocations: 0 / 495 MB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3128, allocations: 8 kB / 495 MB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3128, allocations: 0 / 495 MB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001758/0.313, allocations: 201.5 kB / 495.2 MB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.313, allocations: 0 / 495.2 MB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.3131, allocations: 27.92 kB / 495.2 MB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.3131, allocations: 4 kB / 495.2 MB, free: 4.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.3132, allocations: 7.984 kB / 495.2 MB, free: 4.562 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.3132, allocations: 4 kB / 495.3 MB, free: 4.559 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3132, allocations: 0 / 495.3 MB, free: 4.559 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.3135, allocations: 255.6 kB / 495.5 MB, free: 4.289 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.257e-05/0.3136, allocations: 104.9 kB / 495.6 MB, free: 4.168 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.094e-05/0.3136, allocations: 4 kB / 495.6 MB, free: 4.164 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.078e-05/0.3137, allocations: 8 kB / 495.6 MB, free: 4.156 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.3137, allocations: 4 kB / 495.6 MB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/0.3137, allocations: 4 kB / 495.6 MB, free: 4.148 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.39e-05/0.3138, allocations: 116.1 kB / 495.7 MB, free: 4.035 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3138, allocations: 0 / 495.7 MB, free: 4.035 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002634/0.3141, allocations: 35.86 kB / 495.8 MB, free: 4 MB / 362.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: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.000145/0.3142, allocations: 103.2 kB / 495.9 MB, free: 3.891 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002221/0.3145, allocations: 104 kB / 496 MB, free: 3.789 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3145, allocations: 11.88 kB / 496 MB, free: 3.777 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.769e-05/0.3145, allocations: 8 kB / 496 MB, free: 3.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/0.3149, allocations: 76.94 kB / 496.1 MB, free: 3.695 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004488/0.3154, allocations: 321.4 kB / 496.4 MB, free: 3.344 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.3157, allocations: 0.7248 MB / 497.1 MB, free: 2.594 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.852e-05/0.3157, allocations: 19.42 kB / 497.1 MB, free: 2.574 MB / 362.7 MB Notification: Performance of SimCode: time 1.613e-06/0.3157, allocations: 0 / 497.1 MB, free: 2.574 MB / 362.7 MB Notification: Performance of Templates: time 0.002636/0.3184, allocations: 1.447 MB / 498.6 MB, free: 1.133 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches