Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 203.7 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.27/1.27, allocations: 226.5 MB / 245.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007388/0.0007387, allocations: 111.2 kB / 297.4 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002412/0.0002413, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2229, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09599/0.319, allocations: 82.26 MB / 490.9 MB, free: 9.352 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.3192, allocations: 80.48 kB / 491 MB, free: 9.273 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01799/0.3372, allocations: 6.913 MB / 497.9 MB, free: 2.363 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3373, allocations: 4 kB / 497.9 MB, free: 2.359 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.142e-05/0.3373, allocations: 11.94 kB / 497.9 MB, free: 2.348 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006427/0.338, allocations: 0.5507 MB / 498.5 MB, free: 1.738 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.338, allocations: 12.03 kB / 498.5 MB, free: 1.727 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.939e-05/0.3381, allocations: 20.66 kB / 498.5 MB, free: 1.707 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003983/0.3385, allocations: 299.7 kB / 498.8 MB, free: 1.375 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.3385, allocations: 8.375 kB / 498.8 MB, free: 1.367 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.79e-05/0.3385, allocations: 4.375 kB / 498.8 MB, free: 1.363 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003261/0.3389, allocations: 160.6 kB / 499 MB, free: 1.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.3389, allocations: 192 / 499 MB, free: 1.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.3389, allocations: 3.938 kB / 499 MB, free: 1.176 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.3389, allocations: 3.938 kB / 499 MB, free: 1.172 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001135/0.339, allocations: 43.97 kB / 499 MB, free: 1.129 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004964/0.3395, allocations: 406.3 kB / 499.4 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002408/0.3398, allocations: 123.9 kB / 499.5 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.032e-05/0.3399, allocations: 46.56 kB / 499.6 MB, free: 484 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.3399, allocations: 0 / 499.6 MB, free: 484 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001552/0.3401, allocations: 87.31 kB / 499.7 MB, free: 384 kB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.423e-06/0.3401, allocations: 0 / 499.7 MB, free: 384 kB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003728/0.3405, allocations: 157.3 kB / 499.8 MB, free: 220 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.062e-05/0.3406, allocations: 154.2 kB / 500 MB, free: 28 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003496/0.3409, allocations: 334.8 kB / 0.4886 GB, free: 15.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.341, allocations: 33.89 kB / 0.4886 GB, free: 15.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.212e-05/0.341, allocations: 140 kB / 0.4887 GB, free: 15.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.302e-05/0.3411, allocations: 19.73 kB / 0.4888 GB, free: 15.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-06/0.3411, allocations: 4 kB / 0.4888 GB, free: 15.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3412, allocations: 334.8 kB / 0.4891 GB, free: 15.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.809e-05/0.3413, allocations: 23.98 kB / 0.4891 GB, free: 15.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.3414, allocations: 94.83 kB / 0.4892 GB, free: 15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000149/0.3416, allocations: 92.41 kB / 0.4893 GB, free: 14.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3416, allocations: 0 / 0.4893 GB, free: 14.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002226/0.3418, allocations: 129.3 kB / 0.4894 GB, free: 14.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.3418, allocations: 11.98 kB / 0.4894 GB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.3418, allocations: 0 / 0.4894 GB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.3419, allocations: 0 / 0.4894 GB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.866e-05/0.342, allocations: 16 kB / 0.4894 GB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.342, allocations: 3.984 kB / 0.4894 GB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.697e-05/0.3421, allocations: 15.91 kB / 0.4895 GB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.3421, allocations: 4 kB / 0.4895 GB, free: 14.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001305/0.3422, allocations: 157.8 kB / 0.4896 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.052e-05/0.3423, allocations: 69.44 kB / 0.4897 GB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002592/0.3426, allocations: 127.2 kB / 0.4898 GB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3426, allocations: 0 / 0.4898 GB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3426, allocations: 0 / 0.4898 GB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.3426, allocations: 8.031 kB / 0.4898 GB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002061/0.3428, allocations: 249.5 kB / 0.49 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.3428, allocations: 4 kB / 0.49 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.452e-05/0.3429, allocations: 12.06 kB / 0.4901 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.3429, allocations: 4 kB / 0.4901 GB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.3429, allocations: 7.984 kB / 0.4901 GB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.075e-06/0.3429, allocations: 3.938 kB / 0.4901 GB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3429, allocations: 4 kB / 0.4901 GB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002647/0.3432, allocations: 174.5 kB / 0.4902 GB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.3433, allocations: 128.7 kB / 0.4904 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.093e-05/0.3434, allocations: 4 kB / 0.4904 GB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.008e-05/0.3435, allocations: 11.98 kB / 0.4904 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.374e-05/0.3435, allocations: 4 kB / 0.4904 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.3435, allocations: 12.05 kB / 0.4904 GB, free: 13.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002334/0.3438, allocations: 245.9 kB / 0.4906 GB, free: 13.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3438, allocations: 0 / 0.4906 GB, free: 13.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002677/0.344, allocations: 52 kB / 0.4907 GB, free: 13.35 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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.0009009/0.345, allocations: 438.8 kB / 0.4911 GB, free: 13.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002453/0.3452, allocations: 91.81 kB / 0.4912 GB, free: 12.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3452, allocations: 4 kB / 0.4912 GB, free: 12.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.345e-05/0.3453, allocations: 27.98 kB / 0.4912 GB, free: 12.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003856/0.3457, allocations: 66.06 kB / 0.4913 GB, free: 12.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005955/0.3463, allocations: 457.9 kB / 0.4917 GB, free: 12.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.3466, allocations: 0.74 MB / 0.4924 GB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.926e-05/0.3467, allocations: 31.42 kB / 0.4925 GB, free: 11.59 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3467, allocations: 0 / 0.4925 GB, free: 11.59 MB / 378.7 MB Notification: Performance of Templates: time 0.004611/0.3513, allocations: 2.997 MB / 0.4954 GB, free: 8.609 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches