Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 199.4 kB / 18.07 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 226.5 MB / 245.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000723/0.0007231, allocations: 96.42 kB / 297.4 MB, free: 6.703 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002647/0.0002648, allocations: 8 kB / 357.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1896/0.1899, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09711/0.287, allocations: 82.42 MB / 491.1 MB, free: 9.188 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002197/0.2873, allocations: 92.42 kB / 491.2 MB, free: 9.098 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01804/0.3054, allocations: 6.882 MB / 498 MB, free: 2.227 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3054, allocations: 0 / 498 MB, free: 2.227 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.8e-05/0.3054, allocations: 4 kB / 498.1 MB, free: 2.223 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.0007705/0.3062, allocations: 0.5315 MB / 498.6 MB, free: 1.633 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.3063, allocations: 8.031 kB / 498.6 MB, free: 1.625 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.867e-05/0.3063, allocations: 24.66 kB / 498.6 MB, free: 1.602 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004456/0.3068, allocations: 278.8 kB / 498.9 MB, free: 1.289 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.3068, allocations: 12.36 kB / 498.9 MB, free: 1.277 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.3069, allocations: 12.25 kB / 498.9 MB, free: 1.266 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003375/0.3072, allocations: 172.1 kB / 499.1 MB, free: 1.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.3072, allocations: 192 / 499.1 MB, free: 1.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.3073, allocations: 11.92 kB / 499.1 MB, free: 1.059 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3073, allocations: 0 / 499.1 MB, free: 1.059 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001055/0.3074, allocations: 35.92 kB / 499.1 MB, free: 1.023 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004997/0.3079, allocations: 391.2 kB / 499.5 MB, free: 0.582 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002329/0.3081, allocations: 134.5 kB / 499.6 MB, free: 424 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.982e-05/0.3082, allocations: 55.42 kB / 499.7 MB, free: 356 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.3083, allocations: 4 kB / 499.7 MB, free: 352 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001346/0.3084, allocations: 79.31 kB / 499.8 MB, free: 260 kB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.783e-06/0.3084, allocations: 0 / 499.8 MB, free: 260 kB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003695/0.3088, allocations: 165.3 kB / 499.9 MB, free: 88 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.178e-05/0.3089, allocations: 162.2 kB / 0.4884 GB, free: 15.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003128/0.3092, allocations: 286.9 kB / 0.4886 GB, free: 15.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.3093, allocations: 29.7 kB / 0.4887 GB, free: 15.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.347e-05/0.3093, allocations: 116.4 kB / 0.4888 GB, free: 15.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.3094, allocations: 27.8 kB / 0.4888 GB, free: 15.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.63e-06/0.3094, allocations: 0 / 0.4888 GB, free: 15.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.3095, allocations: 334.8 kB / 0.4891 GB, free: 15.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.862e-05/0.3096, allocations: 23.98 kB / 0.4892 GB, free: 15.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.3097, allocations: 91.64 kB / 0.4892 GB, free: 14.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001505/0.3099, allocations: 101.9 kB / 0.4893 GB, free: 14.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3099, allocations: 0 / 0.4893 GB, free: 14.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002306/0.3101, allocations: 125.3 kB / 0.4895 GB, free: 14.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.3101, allocations: 8 kB / 0.4895 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3101, allocations: 0 / 0.4895 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.3102, allocations: 4 kB / 0.4895 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.565e-05/0.3102, allocations: 24.17 kB / 0.4895 GB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3103, allocations: 0 / 0.4895 GB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.917e-05/0.3103, allocations: 11.91 kB / 0.4895 GB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.3104, allocations: 4 kB / 0.4895 GB, free: 14.64 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.0001213/0.3105, allocations: 149.7 kB / 0.4897 GB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.715e-05/0.3106, allocations: 73.44 kB / 0.4897 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002421/0.3108, allocations: 115.5 kB / 0.4898 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.3109, allocations: 7.938 kB / 0.4898 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3109, allocations: 0 / 0.4898 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.3109, allocations: 7.984 kB / 0.4898 GB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.3111, allocations: 245.3 kB / 0.4901 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3111, allocations: 0 / 0.4901 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.602e-05/0.3111, allocations: 11.98 kB / 0.4901 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.3111, allocations: 0 / 0.4901 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.3112, allocations: 8 kB / 0.4901 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.3112, allocations: 320 / 0.4901 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3112, allocations: 0 / 0.4901 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002607/0.3114, allocations: 194.1 kB / 0.4903 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.3116, allocations: 120.8 kB / 0.4904 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.117e-05/0.3116, allocations: 0 / 0.4904 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.327e-05/0.3117, allocations: 19.98 kB / 0.4904 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.655e-05/0.3117, allocations: 4 kB / 0.4904 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.3117, allocations: 4 kB / 0.4904 GB, free: 13.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002376/0.312, allocations: 209.9 kB / 0.4906 GB, free: 13.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.312, allocations: 3.938 kB / 0.4906 GB, free: 13.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002634/0.3123, allocations: 36 kB / 0.4907 GB, free: 13.33 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.0008683/0.3131, allocations: 423.5 kB / 0.4911 GB, free: 13.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002415/0.3134, allocations: 91.83 kB / 0.4912 GB, free: 12.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3134, allocations: 0 / 0.4912 GB, free: 12.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.892e-05/0.3135, allocations: 35.97 kB / 0.4912 GB, free: 12.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004272/0.3139, allocations: 87.81 kB / 0.4913 GB, free: 12.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005882/0.3145, allocations: 411.7 kB / 0.4917 GB, free: 12.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002772/0.3148, allocations: 0.7362 MB / 0.4924 GB, free: 11.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.675e-05/0.3149, allocations: 19.44 kB / 0.4924 GB, free: 11.63 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3149, allocations: 0 / 0.4924 GB, free: 11.63 MB / 378.7 MB Notification: Performance of Templates: time 0.005341/0.3202, allocations: 2.849 MB / 0.4952 GB, free: 8.797 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches