Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001406/0.001406, allocations: 200 kB / 18.06 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 226.5 MB / 245.4 MB, free: 8.074 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007417/0.0007419, allocations: 95.8 kB / 297.4 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002246/0.0002247, allocations: 8 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2233, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09229/0.3156, allocations: 82.43 MB / 491.1 MB, free: 9.168 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/0.3159, allocations: 87.95 kB / 491.2 MB, free: 9.082 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01891/0.3348, allocations: 7.029 MB / 498.2 MB, free: 2.055 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3349, allocations: 0 / 498.2 MB, free: 2.055 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.231e-05/0.3349, allocations: 4 kB / 498.2 MB, free: 2.051 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007406/0.3356, allocations: 0.5546 MB / 498.8 MB, free: 1.438 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.268e-05/0.3357, allocations: 8.031 kB / 498.8 MB, free: 1.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.468e-05/0.3358, allocations: 28.56 kB / 498.8 MB, free: 1.402 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004481/0.3362, allocations: 315.5 kB / 499.1 MB, free: 1.055 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.3363, allocations: 4.375 kB / 499.1 MB, free: 1.051 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.524e-05/0.3363, allocations: 12.36 kB / 499.1 MB, free: 1.039 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003499/0.3367, allocations: 188.8 kB / 499.3 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.3367, allocations: 192 / 499.3 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.3367, allocations: 7.938 kB / 499.3 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.3367, allocations: 0 / 499.3 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000118/0.3368, allocations: 47.91 kB / 499.4 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005497/0.3374, allocations: 419.1 kB / 499.8 MB, free: 308 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/0.3377, allocations: 146.5 kB / 499.9 MB, free: 124 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.591e-05/0.3378, allocations: 59.42 kB / 500 MB, free: 52 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.3378, allocations: 0 / 500 MB, free: 52 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00018/0.338, allocations: 87.31 kB / 0.4883 GB, free: 15.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 1.543e-06/0.338, allocations: 4 kB / 0.4883 GB, free: 15.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004063/0.3384, allocations: 173.2 kB / 0.4885 GB, free: 15.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.532e-05/0.3385, allocations: 191.8 kB / 0.4887 GB, free: 15.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003617/0.3389, allocations: 346.9 kB / 0.489 GB, free: 15.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.3389, allocations: 29.7 kB / 0.4891 GB, free: 15.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.986e-05/0.339, allocations: 132.9 kB / 0.4892 GB, free: 15.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.994e-05/0.339, allocations: 23.78 kB / 0.4892 GB, free: 15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.171e-06/0.3391, allocations: 0 / 0.4892 GB, free: 15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.3392, allocations: 334.8 kB / 0.4895 GB, free: 14.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.064e-05/0.3392, allocations: 27.98 kB / 0.4895 GB, free: 14.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.3394, allocations: 108.6 kB / 0.4897 GB, free: 14.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000159/0.3395, allocations: 113.8 kB / 0.4898 GB, free: 14.37 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3396, allocations: 0 / 0.4898 GB, free: 14.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002791/0.3398, allocations: 133.3 kB / 0.4899 GB, free: 14.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.3399, allocations: 8 kB / 0.4899 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.3399, allocations: 3.984 kB / 0.4899 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.3399, allocations: 4 kB / 0.4899 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.34, allocations: 19.94 kB / 0.4899 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.34, allocations: 8.172 kB / 0.4899 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.191e-05/0.3401, allocations: 12 kB / 0.4899 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/0.3401, allocations: 8 kB / 0.4899 GB, free: 14.17 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,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 (13): * Single equations (assignments): 13 * 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.000137/0.3403, allocations: 161.6 kB / 0.4901 GB, free: 14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.751e-05/0.3404, allocations: 81.34 kB / 0.4902 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002654/0.3407, allocations: 123.4 kB / 0.4903 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.3407, allocations: 4.094 kB / 0.4903 GB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.3407, allocations: 4 kB / 0.4903 GB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3407, allocations: 0 / 0.4903 GB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/0.3409, allocations: 265.4 kB / 0.4906 GB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3409, allocations: 320 / 0.4906 GB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.418e-05/0.341, allocations: 19.94 kB / 0.4906 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.341, allocations: 4 kB / 0.4906 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.603e-05/0.341, allocations: 11.98 kB / 0.4906 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.341, allocations: 0 / 0.4906 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3411, allocations: 0 / 0.4906 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.3413, allocations: 195.2 kB / 0.4908 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.3414, allocations: 124.8 kB / 0.4909 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.434e-05/0.3415, allocations: 8.031 kB / 0.4909 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.269e-05/0.3416, allocations: 11.98 kB / 0.4909 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.495e-05/0.3416, allocations: 7.984 kB / 0.4909 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.3416, allocations: 8 kB / 0.4909 GB, free: 13.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002375/0.3419, allocations: 253.9 kB / 0.4912 GB, free: 12.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3419, allocations: 0 / 0.4912 GB, free: 12.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000302/0.3422, allocations: 59.8 kB / 0.4912 GB, free: 12.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (12): * Single equations (assignments): 10 * 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.0008846/0.3431, allocations: 441.6 kB / 0.4917 GB, free: 12.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002704/0.3434, allocations: 107.9 kB / 0.4918 GB, free: 12.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3434, allocations: 3.938 kB / 0.4918 GB, free: 12.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.311e-05/0.3435, allocations: 31.98 kB / 0.4918 GB, free: 12.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004478/0.3439, allocations: 83.11 kB / 0.4919 GB, free: 12.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006586/0.3446, allocations: 468.4 kB / 0.4923 GB, free: 11.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.3449, allocations: 0.7517 MB / 0.4931 GB, free: 10.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.655e-05/0.345, allocations: 27.42 kB / 0.4931 GB, free: 10.92 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.345, allocations: 0 / 0.4931 GB, free: 10.92 MB / 378.7 MB Notification: Performance of Templates: time 0.005131/0.3501, allocations: 3.164 MB / 0.4962 GB, free: 7.77 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches