Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001556/0.001556, allocations: 181 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.012/2.012, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001145/0.001145, allocations: 85.94 kB / 267.6 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1053/0.1053, allocations: 12.6 MB / 328.2 MB, free: 11.15 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.631e-05/3.65e-05, allocations: 4 kB / 386 MB, free: 1.297 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3399, allocations: 50.37 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1487/0.4886, allocations: 81.87 MB / 0.5061 GB, free: 12.17 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003404/0.489, allocations: 79.95 kB / 0.5062 GB, free: 12.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02748/0.5165, allocations: 6.055 MB / 0.5121 GB, free: 6.027 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.179e-06/0.5166, allocations: 0 / 0.5121 GB, free: 6.027 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.927e-05/0.5166, allocations: 11.94 kB / 0.5121 GB, free: 6.016 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.0008929/0.5175, allocations: 0.4916 MB / 0.5126 GB, free: 5.473 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.5176, allocations: 15.97 kB / 0.5126 GB, free: 5.457 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.788e-05/0.5177, allocations: 19.72 kB / 0.5126 GB, free: 5.438 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006524/0.5184, allocations: 294.4 kB / 0.5129 GB, free: 5.109 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/0.5184, allocations: 11.95 kB / 0.5129 GB, free: 5.098 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.308e-05/0.5185, allocations: 12 kB / 0.5129 GB, free: 5.086 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004833/0.519, allocations: 172.4 kB / 0.5131 GB, free: 4.887 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.519, allocations: 4 kB / 0.5131 GB, free: 4.883 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.355e-05/0.519, allocations: 7.938 kB / 0.5131 GB, free: 4.875 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.519, allocations: 0 / 0.5131 GB, free: 4.875 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000144/0.5192, allocations: 43.92 kB / 0.5131 GB, free: 4.832 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008134/0.52, allocations: 411.2 kB / 0.5135 GB, free: 4.371 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002918/0.5203, allocations: 138.5 kB / 0.5136 GB, free: 4.199 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001338/0.5205, allocations: 63.55 kB / 0.5137 GB, free: 4.125 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.175e-05/0.5205, allocations: 3.984 kB / 0.5137 GB, free: 4.121 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002063/0.5207, allocations: 79.33 kB / 0.5138 GB, free: 4.031 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 2.716e-06/0.5208, allocations: 0 / 0.5138 GB, free: 4.031 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004528/0.5212, allocations: 141.3 kB / 0.5139 GB, free: 3.887 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.5214, allocations: 191.9 kB / 0.5141 GB, free: 3.656 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005514/0.5219, allocations: 295.1 kB / 0.5144 GB, free: 3.359 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.179e-05/0.522, allocations: 33.7 kB / 0.5144 GB, free: 3.32 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.5221, allocations: 182.8 kB / 0.5146 GB, free: 3.137 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.848e-05/0.5222, allocations: 15.8 kB / 0.5146 GB, free: 3.121 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.828e-06/0.5222, allocations: 4 kB / 0.5146 GB, free: 3.117 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.5223, allocations: 322.9 kB / 0.5149 GB, free: 2.793 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.184e-05/0.5224, allocations: 27.98 kB / 0.5149 GB, free: 2.766 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.5226, allocations: 96.58 kB / 0.515 GB, free: 2.641 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001213/0.5228, allocations: 47.09 kB / 0.5151 GB, free: 2.598 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.5228, allocations: 0 / 0.5151 GB, free: 2.598 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003398/0.5231, allocations: 125.4 kB / 0.5152 GB, free: 2.469 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.5232, allocations: 8.188 kB / 0.5152 GB, free: 2.461 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.5232, allocations: 4 kB / 0.5152 GB, free: 2.457 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.5232, allocations: 0 / 0.5152 GB, free: 2.457 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002241/0.5234, allocations: 27.92 kB / 0.5152 GB, free: 2.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.397e-06/0.5235, allocations: 0 / 0.5152 GB, free: 2.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/0.5236, allocations: 11.94 kB / 0.5152 GB, free: 2.418 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.5237, allocations: 4 kB / 0.5152 GB, free: 2.414 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.0001408/0.5238, allocations: 120.7 kB / 0.5154 GB, free: 2.289 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001735/0.524, allocations: 81.34 kB / 0.5154 GB, free: 2.203 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003847/0.5244, allocations: 127.5 kB / 0.5156 GB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.5244, allocations: 4 kB / 0.5156 GB, free: 2.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.5245, allocations: 0 / 0.5156 GB, free: 2.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.5245, allocations: 0 / 0.5156 GB, free: 2.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003861/0.5249, allocations: 265.3 kB / 0.5158 GB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.5249, allocations: 4 kB / 0.5158 GB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.5251, allocations: 15.98 kB / 0.5158 GB, free: 1.742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.5251, allocations: 0 / 0.5158 GB, free: 1.742 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.964e-05/0.5251, allocations: 8.094 kB / 0.5158 GB, free: 1.734 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.5251, allocations: 3.938 kB / 0.5158 GB, free: 1.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.5251, allocations: 7.938 kB / 0.5159 GB, free: 1.723 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004556/0.5256, allocations: 216.5 kB / 0.5161 GB, free: 1.465 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001955/0.5258, allocations: 120.8 kB / 0.5162 GB, free: 1.328 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.936e-05/0.5259, allocations: 8 kB / 0.5162 GB, free: 1.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.5261, allocations: 11.92 kB / 0.5162 GB, free: 1.309 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.023e-05/0.5261, allocations: 11.94 kB / 0.5162 GB, free: 1.297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.498e-05/0.5262, allocations: 12.06 kB / 0.5162 GB, free: 1.285 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004362/0.5266, allocations: 239.1 kB / 0.5164 GB, free: 1.051 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5266, allocations: 0 / 0.5164 GB, free: 1.051 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004958/0.5271, allocations: 59.92 kB / 0.5165 GB, free: 0.9922 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.001211/0.5284, allocations: 388.4 kB / 0.5169 GB, free: 0.6055 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003945/0.5288, allocations: 95.84 kB / 0.517 GB, free: 0.5117 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.5288, allocations: 0 / 0.517 GB, free: 0.5117 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.5289, allocations: 28 kB / 0.517 GB, free: 496 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00062/0.5296, allocations: 73.42 kB / 0.5171 GB, free: 420 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008773/0.5305, allocations: 332 kB / 0.5174 GB, free: 56 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2722/0.8026, allocations: 0.7518 MB / 0.5181 GB, free: 85.22 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.8029, allocations: 24.47 kB / 0.5181 GB, free: 85.21 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/0.8029, allocations: 1.344 kB / 0.5181 GB, free: 85.21 MB / 362.7 MB Notification: Performance of Templates: time 0.008875/0.8118, allocations: 3.127 MB / 0.5212 GB, free: 85.07 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches