Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001406/0.001406, allocations: 198.8 kB / 18.07 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.279/1.279, allocations: 226.5 MB / 245.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008088/0.0008087, allocations: 100.3 kB / 297.4 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002298/0.0002298, allocations: 8 kB / 357.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2025/0.2027, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09527/0.298, allocations: 82.87 MB / 491.5 MB, free: 8.754 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.2983, allocations: 87.94 kB / 491.6 MB, free: 8.668 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0262/0.3245, allocations: 9.888 MB / 0.4898 GB, free: 14.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3245, allocations: 0 / 0.4898 GB, free: 14.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.092e-05/0.3246, allocations: 4 kB / 0.4898 GB, free: 14.77 MB / 378.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.0007254/0.3253, allocations: 0.5896 MB / 0.4903 GB, free: 14.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.3253, allocations: 8.031 kB / 0.4903 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.965e-05/0.3254, allocations: 32.56 kB / 0.4904 GB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004284/0.3258, allocations: 327.4 kB / 0.4907 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.3259, allocations: 16.38 kB / 0.4907 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.74e-05/0.3259, allocations: 12.38 kB / 0.4907 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005192/0.3264, allocations: 313.2 kB / 0.491 GB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.3265, allocations: 192 / 0.491 GB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.3265, allocations: 7.938 kB / 0.491 GB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3265, allocations: 4 kB / 0.491 GB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001638/0.3267, allocations: 71.89 kB / 0.4911 GB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005405/0.3272, allocations: 450 kB / 0.4915 GB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003376/0.3276, allocations: 200.9 kB / 0.4917 GB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.3277, allocations: 98.47 kB / 0.4918 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.332e-05/0.3278, allocations: 0 / 0.4918 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001531/0.3279, allocations: 83.31 kB / 0.4919 GB, free: 12.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 1.663e-06/0.3279, allocations: 0 / 0.4919 GB, free: 12.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005104/0.3284, allocations: 253.7 kB / 0.4921 GB, free: 12.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.975e-05/0.3285, allocations: 178.2 kB / 0.4923 GB, free: 11.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003486/0.3289, allocations: 350.9 kB / 0.4926 GB, free: 11.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.3289, allocations: 29.7 kB / 0.4927 GB, free: 11.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.818e-05/0.329, allocations: 140.6 kB / 0.4928 GB, free: 11.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.3291, allocations: 19.8 kB / 0.4928 GB, free: 11.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.183e-05/0.3291, allocations: 8 kB / 0.4928 GB, free: 11.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.3292, allocations: 346.8 kB / 0.4932 GB, free: 11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.13e-05/0.3293, allocations: 40.44 kB / 0.4932 GB, free: 10.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.3295, allocations: 198.9 kB / 0.4934 GB, free: 10.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002439/0.3297, allocations: 211.2 kB / 0.4936 GB, free: 10.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.3297, allocations: 4 kB / 0.4936 GB, free: 10.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003576/0.3301, allocations: 240.9 kB / 0.4938 GB, free: 10.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.3301, allocations: 4 kB / 0.4938 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.3301, allocations: 4.312 kB / 0.4938 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.3302, allocations: 8 kB / 0.4938 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.3303, allocations: 40.44 kB / 0.4939 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.3303, allocations: 8 kB / 0.4939 GB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.3305, allocations: 27.84 kB / 0.4939 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.79e-05/0.3305, allocations: 12 kB / 0.4939 GB, free: 10.09 MB / 378.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.0001622/0.3307, allocations: 187.8 kB / 0.4941 GB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001888/0.3308, allocations: 133.6 kB / 0.4942 GB, free: 9.766 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002987/0.3312, allocations: 135.5 kB / 0.4943 GB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3312, allocations: 8 kB / 0.4944 GB, free: 9.617 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.3312, allocations: 4 kB / 0.4944 GB, free: 9.613 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.3312, allocations: 3.984 kB / 0.4944 GB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002259/0.3314, allocations: 277.4 kB / 0.4946 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3314, allocations: 0 / 0.4946 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.3316, allocations: 31.92 kB / 0.4947 GB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3316, allocations: 0 / 0.4947 GB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.3316, allocations: 11.98 kB / 0.4947 GB, free: 9.246 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.3316, allocations: 0 / 0.4947 GB, free: 9.246 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3316, allocations: 4 kB / 0.4947 GB, free: 9.242 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003852/0.332, allocations: 262 kB / 0.4949 GB, free: 8.961 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.3321, allocations: 132.8 kB / 0.4951 GB, free: 8.812 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.04e-05/0.3322, allocations: 11.94 kB / 0.4951 GB, free: 8.801 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.736e-05/0.3323, allocations: 8 kB / 0.4951 GB, free: 8.793 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.775e-05/0.3323, allocations: 7.984 kB / 0.4951 GB, free: 8.785 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.3324, allocations: 12 kB / 0.4951 GB, free: 8.773 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002425/0.3326, allocations: 257.9 kB / 0.4953 GB, free: 8.516 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3326, allocations: 0 / 0.4953 GB, free: 8.516 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003319/0.333, allocations: 71.78 kB / 0.4954 GB, free: 8.445 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.0008655/0.3338, allocations: 444.7 kB / 0.4958 GB, free: 8.148 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003464/0.3342, allocations: 172.2 kB / 0.496 GB, free: 7.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.3342, allocations: 0 / 0.496 GB, free: 7.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.407e-05/0.3343, allocations: 35.97 kB / 0.496 GB, free: 7.945 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004924/0.3348, allocations: 115.1 kB / 0.4961 GB, free: 7.832 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007345/0.3355, allocations: 0.5503 MB / 0.4967 GB, free: 7.238 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.3358, allocations: 0.7641 MB / 0.4974 GB, free: 6.449 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.319e-05/0.3359, allocations: 35.42 kB / 0.4975 GB, free: 6.414 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3359, allocations: 0 / 0.4975 GB, free: 6.414 MB / 378.7 MB Notification: Performance of Templates: time 0.005154/0.3411, allocations: 3.694 MB / 0.5011 GB, free: 2.73 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches