Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 176.6 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 223.3 MB / 241.4 MB, free: 11.71 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008416/0.0008414, allocations: 98.95 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002913/0.0002911, allocations: 11.94 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2458, allocations: 50.41 MB / 402.8 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1118/0.3576, allocations: 81.74 MB / 484.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/0.358, allocations: 83.95 kB / 484.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03559/0.3936, allocations: 9.086 MB / 493.7 MB, free: 5.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.3936, allocations: 0 / 493.7 MB, free: 5.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.132e-05/0.3937, allocations: 15.94 kB / 493.7 MB, free: 5.414 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001386/0.3951, allocations: 0.5663 MB / 494.2 MB, free: 4.789 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.867e-05/0.3952, allocations: 8.031 kB / 494.2 MB, free: 4.781 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001664/0.3954, allocations: 32.56 kB / 494.3 MB, free: 4.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007787/0.3962, allocations: 315.5 kB / 494.6 MB, free: 4.402 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.652e-05/0.3962, allocations: 12.38 kB / 494.6 MB, free: 4.391 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.348e-05/0.3963, allocations: 12.38 kB / 494.6 MB, free: 4.379 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.3973, allocations: 320.7 kB / 494.9 MB, free: 4.039 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.3974, allocations: 8.109 kB / 494.9 MB, free: 4.031 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.246e-05/0.3974, allocations: 15.94 kB / 494.9 MB, free: 4.016 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.3974, allocations: 0 / 494.9 MB, free: 4.016 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002908/0.3977, allocations: 71.95 kB / 495 MB, free: 3.945 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.3988, allocations: 430.2 kB / 495.4 MB, free: 3.469 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005266/0.3993, allocations: 196 kB / 495.6 MB, free: 3.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/0.3996, allocations: 94.53 kB / 495.7 MB, free: 3.148 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.46e-05/0.3996, allocations: 7.938 kB / 495.7 MB, free: 3.141 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002508/0.3999, allocations: 87.31 kB / 495.8 MB, free: 3.043 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 3.246e-06/0.3999, allocations: 0 / 495.8 MB, free: 3.043 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008833/0.4008, allocations: 253.4 kB / 496.1 MB, free: 2.789 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001452/0.401, allocations: 170.1 kB / 496.2 MB, free: 2.586 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006673/0.4016, allocations: 343 kB / 496.6 MB, free: 2.242 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.468e-05/0.4017, allocations: 33.7 kB / 496.6 MB, free: 2.203 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.4019, allocations: 140.5 kB / 496.7 MB, free: 2.062 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.305e-05/0.4019, allocations: 27.64 kB / 496.8 MB, free: 2.035 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.649e-05/0.402, allocations: 4 kB / 496.8 MB, free: 2.031 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002721/0.4022, allocations: 342.8 kB / 497.1 MB, free: 1.688 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.4024, allocations: 48.38 kB / 497.1 MB, free: 1.637 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003377/0.4028, allocations: 188.6 kB / 497.3 MB, free: 1.391 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004923/0.4033, allocations: 219.6 kB / 497.5 MB, free: 1.121 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.4033, allocations: 0 / 497.5 MB, free: 1.121 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000666/0.404, allocations: 233.5 kB / 497.8 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.348e-05/0.404, allocations: 8 kB / 497.8 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.132e-05/0.4041, allocations: 12.02 kB / 497.8 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.364e-05/0.4041, allocations: 4 kB / 497.8 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002642/0.4044, allocations: 39.92 kB / 497.8 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.378e-05/0.4044, allocations: 7.938 kB / 497.8 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002683/0.4047, allocations: 16.22 kB / 497.9 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.177e-05/0.4047, allocations: 19.98 kB / 497.9 MB, free: 0.7812 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * 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 (28): * Single equations (assignments): 28 * 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.000345/0.4051, allocations: 180.7 kB / 498.1 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003632/0.4055, allocations: 149.3 kB / 498.2 MB, free: 456 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004728/0.406, allocations: 123.9 kB / 498.3 MB, free: 320 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.406, allocations: 4 kB / 498.3 MB, free: 316 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/0.406, allocations: 7.922 kB / 498.3 MB, free: 308 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.406, allocations: 3.938 kB / 498.3 MB, free: 304 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004438/0.4065, allocations: 277.4 kB / 498.6 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.4065, allocations: 3.984 kB / 498.6 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001996/0.4067, allocations: 31.97 kB / 498.6 MB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.992e-06/0.4067, allocations: 0 / 498.6 MB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.574e-05/0.4068, allocations: 12 kB / 498.7 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/0.4068, allocations: 4 kB / 498.7 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.4068, allocations: 0 / 498.7 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006042/0.4074, allocations: 255.5 kB / 498.9 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002147/0.4076, allocations: 132.7 kB / 499 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.183e-05/0.4077, allocations: 11.98 kB / 499.1 MB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.4079, allocations: 12 kB / 499.1 MB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.37e-05/0.4079, allocations: 7.984 kB / 499.1 MB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.941e-05/0.408, allocations: 12 kB / 499.1 MB, free: 15.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004408/0.4084, allocations: 245.9 kB / 499.3 MB, free: 15.22 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4085, allocations: 0 / 499.3 MB, free: 15.22 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006654/0.4091, allocations: 67.86 kB / 499.4 MB, free: 15.15 MB / 378.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: 20 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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 (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001572/0.4107, allocations: 461.8 kB / 499.8 MB, free: 14.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006107/0.4113, allocations: 167.6 kB / 0.4883 GB, free: 14.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4114, allocations: 0 / 0.4883 GB, free: 14.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.4115, allocations: 40.97 kB / 0.4883 GB, free: 14.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008131/0.4123, allocations: 120.7 kB / 0.4884 GB, free: 14.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.4138, allocations: 0.5042 MB / 0.4889 GB, free: 14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007718/0.4146, allocations: 0.7718 MB / 0.4897 GB, free: 13.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002094/0.4149, allocations: 38.66 kB / 0.4897 GB, free: 13.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.415, allocations: 27.44 kB / 0.4897 GB, free: 13.14 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/0.415, allocations: 4 kB / 0.4898 GB, free: 13.14 MB / 378.7 MB Notification: Performance of Templates: time 0.01193/0.427, allocations: 3.371 MB / 0.493 GB, free: 9.785 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches