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.001297/0.001297, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.382/1.382, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.001076/0.001076, allocations: 92.39 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002608/0.0002611, allocations: 11.94 kB / 351.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2534, allocations: 50.41 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1053/0.3588, allocations: 81.68 MB / 483.2 MB, free: 14.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.3591, allocations: 83.95 kB / 483.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02525/0.3843, allocations: 9.092 MB / 492.3 MB, free: 5.656 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3844, allocations: 0 / 492.3 MB, free: 5.656 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.407e-05/0.3844, allocations: 8 kB / 492.4 MB, free: 5.648 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.0008199/0.3853, allocations: 0.566 MB / 492.9 MB, free: 5.027 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.3853, allocations: 15.97 kB / 492.9 MB, free: 5.012 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.757e-05/0.3854, allocations: 31.62 kB / 493 MB, free: 4.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005109/0.3859, allocations: 306.5 kB / 493.3 MB, free: 4.641 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.03e-05/0.386, allocations: 15.94 kB / 493.3 MB, free: 4.625 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/0.386, allocations: 16 kB / 493.3 MB, free: 4.609 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005877/0.3866, allocations: 314.2 kB / 493.6 MB, free: 4.277 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.3866, allocations: 0 / 493.6 MB, free: 4.277 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/0.3866, allocations: 7.953 kB / 493.6 MB, free: 4.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.3867, allocations: 0 / 493.6 MB, free: 4.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001699/0.3868, allocations: 71.89 kB / 493.7 MB, free: 4.199 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005947/0.3874, allocations: 430.4 kB / 494.1 MB, free: 3.723 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/0.3878, allocations: 207.9 kB / 494.3 MB, free: 3.492 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.3878, allocations: 7.984 kB / 494.3 MB, free: 3.484 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001617/0.388, allocations: 71.52 kB / 494.4 MB, free: 3.402 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.733e-06/0.388, allocations: 0 / 494.4 MB, free: 3.402 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.00052/0.3885, allocations: 261.1 kB / 494.6 MB, free: 3.141 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.3886, allocations: 166.4 kB / 494.8 MB, free: 2.941 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003371/0.389, allocations: 322 kB / 495.1 MB, free: 2.617 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.389, allocations: 29.7 kB / 495.1 MB, free: 2.582 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.396e-05/0.3891, allocations: 140.6 kB / 495.3 MB, free: 2.441 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.225e-05/0.3892, allocations: 31.64 kB / 495.3 MB, free: 2.41 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.546e-06/0.3892, allocations: 4 kB / 495.3 MB, free: 2.406 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.3893, allocations: 339.2 kB / 495.6 MB, free: 2.066 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.333e-05/0.3894, allocations: 40.44 kB / 495.7 MB, free: 2.023 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.3896, allocations: 193.1 kB / 495.9 MB, free: 1.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.3898, allocations: 68.33 kB / 495.9 MB, free: 1.703 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3898, allocations: 3.938 kB / 495.9 MB, free: 1.699 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003513/0.3901, allocations: 241 kB / 496.2 MB, free: 1.457 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.3902, allocations: 8 kB / 496.2 MB, free: 1.449 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.3902, allocations: 4 kB / 496.2 MB, free: 1.445 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.3902, allocations: 4 kB / 496.2 MB, free: 1.441 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.3904, allocations: 51.84 kB / 496.3 MB, free: 1.391 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.3904, allocations: 4 kB / 496.3 MB, free: 1.387 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/0.3905, allocations: 16.36 kB / 496.3 MB, free: 1.371 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.3905, allocations: 19.98 kB / 496.3 MB, free: 1.352 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.0001764/0.3907, allocations: 180.2 kB / 496.5 MB, free: 1.168 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000234/0.3909, allocations: 141.2 kB / 496.6 MB, free: 1.023 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002872/0.3912, allocations: 139.3 kB / 496.7 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3913, allocations: 4 kB / 496.7 MB, free: 0.875 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.3913, allocations: 0 / 496.7 MB, free: 0.875 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3913, allocations: 7.922 kB / 496.8 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002326/0.3915, allocations: 265.5 kB / 497 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3915, allocations: 0 / 497 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001302/0.3917, allocations: 35.91 kB / 497 MB, free: 0.5234 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.3917, allocations: 4 kB / 497 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.3917, allocations: 7.953 kB / 497.1 MB, free: 0.5117 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.3917, allocations: 4 kB / 497.1 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3917, allocations: 0 / 497.1 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003929/0.3921, allocations: 277.3 kB / 497.3 MB, free: 208 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001455/0.3923, allocations: 132.8 kB / 497.5 MB, free: 56 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.022e-05/0.3923, allocations: 11.94 kB / 497.5 MB, free: 44 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.921e-05/0.3924, allocations: 7.984 kB / 497.5 MB, free: 36 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.499e-05/0.3925, allocations: 11.98 kB / 497.5 MB, free: 24 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.3925, allocations: 8 kB / 497.5 MB, free: 16 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002574/0.3928, allocations: 253.9 kB / 497.7 MB, free: 15.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3928, allocations: 0 / 497.7 MB, free: 15.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003663/0.3932, allocations: 71.83 kB / 497.8 MB, free: 15.7 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.0009818/0.3941, allocations: 462.6 kB / 498.3 MB, free: 15.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003576/0.3945, allocations: 176 kB / 498.4 MB, free: 15.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3945, allocations: 0 / 498.4 MB, free: 15.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.472e-05/0.3946, allocations: 31.98 kB / 498.5 MB, free: 15.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004724/0.3951, allocations: 116.4 kB / 498.6 MB, free: 15.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007761/0.3959, allocations: 0.5134 MB / 499.1 MB, free: 14.53 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.3962, allocations: 0.7719 MB / 499.9 MB, free: 13.73 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.3964, allocations: 38.27 kB / 499.9 MB, free: 13.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.975e-05/0.3964, allocations: 27.44 kB / 499.9 MB, free: 13.68 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3964, allocations: 0 / 499.9 MB, free: 13.68 MB / 378.7 MB Notification: Performance of Templates: time 0.007406/0.4039, allocations: 3.313 MB / 0.4915 GB, free: 10.38 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/jenkins/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