Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002241/0.002241, allocations: 179.2 kB / 8.406 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.099/2.099, allocations: 205.3 MB / 214.1 MB, free: 1.66 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00113/0.00113, allocations: 78.72 kB / 262.1 MB, free: 1.613 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1052/0.1052, allocations: 12.6 MB / 322.7 MB, free: 15.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.817e-05/2.835e-05, allocations: 4 kB / 378.9 MB, free: 6.879 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3117, allocations: 50.36 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1468/0.4586, allocations: 81.19 MB / 0.4985 GB, free: 1.113 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003307/0.459, allocations: 79.95 kB / 0.4986 GB, free: 1.035 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02715/0.4861, allocations: 5.868 MB / 0.5043 GB, free: 11.17 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4862, allocations: 0 / 0.5043 GB, free: 11.17 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.932e-05/0.4862, allocations: 4 kB / 0.5043 GB, free: 11.16 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.0007571/0.487, allocations: 487.7 kB / 0.5048 GB, free: 10.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.4871, allocations: 8.031 kB / 0.5048 GB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.282e-05/0.4872, allocations: 23.72 kB / 0.5048 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005856/0.4877, allocations: 269.6 kB / 0.5051 GB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/0.4878, allocations: 3.938 kB / 0.5051 GB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.077e-05/0.4878, allocations: 7.953 kB / 0.5051 GB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001608/0.488, allocations: 43.98 kB / 0.5051 GB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003813/0.4884, allocations: 156.8 kB / 0.5053 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.4884, allocations: 3.938 kB / 0.5053 GB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.715e-05/0.4884, allocations: 0 / 0.5053 GB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.4885, allocations: 4 kB / 0.5053 GB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006741/0.4892, allocations: 347.9 kB / 0.5056 GB, free: 9.672 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002684/0.4894, allocations: 122.5 kB / 0.5057 GB, free: 9.516 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.4896, allocations: 51.56 kB / 0.5058 GB, free: 9.453 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.4896, allocations: 11.98 kB / 0.5058 GB, free: 9.441 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001738/0.4898, allocations: 75.33 kB / 0.5059 GB, free: 9.355 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 2.875e-06/0.4898, allocations: 0 / 0.5059 GB, free: 9.355 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.000389/0.4902, allocations: 121.3 kB / 0.506 GB, free: 9.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.4903, allocations: 162.2 kB / 0.5061 GB, free: 9.035 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003917/0.4907, allocations: 232.6 kB / 0.5063 GB, free: 8.805 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.143e-05/0.4908, allocations: 29.7 kB / 0.5064 GB, free: 8.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.4909, allocations: 178.8 kB / 0.5065 GB, free: 8.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.57e-05/0.491, allocations: 19.75 kB / 0.5066 GB, free: 8.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.013e-06/0.491, allocations: 0 / 0.5066 GB, free: 8.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.4911, allocations: 310.8 kB / 0.5069 GB, free: 8.258 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.738e-05/0.4912, allocations: 23.98 kB / 0.5069 GB, free: 8.234 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.4914, allocations: 75.8 kB / 0.507 GB, free: 8.133 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.441e-05/0.4915, allocations: 39.98 kB / 0.507 GB, free: 8.094 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.4915, allocations: 3.953 kB / 0.507 GB, free: 8.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002758/0.4918, allocations: 109.5 kB / 0.5071 GB, free: 7.977 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.4918, allocations: 4 kB / 0.5071 GB, free: 7.973 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.4918, allocations: 0 / 0.5071 GB, free: 7.973 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.476e-05/0.4919, allocations: 4 kB / 0.5071 GB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.492, allocations: 15.98 kB / 0.5071 GB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.492, allocations: 0 / 0.5071 GB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001397/0.4922, allocations: 8 kB / 0.5071 GB, free: 7.945 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.4922, allocations: 8.188 kB / 0.5071 GB, free: 7.938 MB / 362.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,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete 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.0001195/0.4923, allocations: 116.9 kB / 0.5073 GB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001526/0.4925, allocations: 73.31 kB / 0.5073 GB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000295/0.4928, allocations: 107.4 kB / 0.5074 GB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-06/0.4928, allocations: 0 / 0.5074 GB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/0.4929, allocations: 4 kB / 0.5074 GB, free: 7.621 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.4929, allocations: 0 / 0.5074 GB, free: 7.621 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000281/0.4932, allocations: 214.1 kB / 0.5076 GB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.4932, allocations: 8.094 kB / 0.5076 GB, free: 7.367 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.867e-05/0.4932, allocations: 7.938 kB / 0.5076 GB, free: 7.359 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.278e-06/0.4933, allocations: 7.953 kB / 0.5077 GB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.252e-05/0.4933, allocations: 0 / 0.5077 GB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.4933, allocations: 4 kB / 0.5077 GB, free: 7.348 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.4933, allocations: 0 / 0.5077 GB, free: 7.348 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003478/0.4937, allocations: 200.5 kB / 0.5079 GB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.4939, allocations: 112.9 kB / 0.508 GB, free: 6.977 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.923e-05/0.4939, allocations: 8 kB / 0.508 GB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.4941, allocations: 7.984 kB / 0.508 GB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.39e-05/0.4941, allocations: 4.062 kB / 0.508 GB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/0.4942, allocations: 15.94 kB / 0.508 GB, free: 6.941 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002765/0.4945, allocations: 192.4 kB / 0.5082 GB, free: 6.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4945, allocations: 0 / 0.5082 GB, free: 6.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004126/0.4949, allocations: 39.92 kB / 0.5082 GB, free: 6.711 MB / 362.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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.001094/0.496, allocations: 345.1 kB / 0.5085 GB, free: 6.379 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002863/0.4963, allocations: 75.91 kB / 0.5086 GB, free: 6.305 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.4963, allocations: 7.938 kB / 0.5086 GB, free: 6.297 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.703e-05/0.4964, allocations: 20 kB / 0.5086 GB, free: 6.277 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000559/0.497, allocations: 64.45 kB / 0.5087 GB, free: 6.215 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000775/0.4978, allocations: 286.5 kB / 0.509 GB, free: 5.895 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004404/0.4982, allocations: 0.7399 MB / 0.5097 GB, free: 5.125 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.618e-05/0.4983, allocations: 23.44 kB / 0.5097 GB, free: 5.102 MB / 362.7 MB Notification: Performance of SimCode: time 9.21e-07/0.4984, allocations: 0 / 0.5097 GB, free: 5.102 MB / 362.7 MB Notification: Performance of Templates: time 0.008154/0.5065, allocations: 2.796 MB / 0.5125 GB, free: 2.312 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches