Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002075/0.00208, allocations: 179.4 kB / 8.407 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.045/2.045, allocations: 205.3 MB / 214.1 MB, free: 1.73 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.001189/0.001189, allocations: 90.22 kB / 262.2 MB, free: 1.68 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.1014/0.1014, allocations: 12.59 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.548e-05/1.554e-05, allocations: 0 / 378.9 MB, free: 6.891 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3522/0.3523, allocations: 50.36 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1551/0.5074, allocations: 81.28 MB / 0.4986 GB, free: 1.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003342/0.5078, allocations: 87.92 kB / 0.4987 GB, free: 0.9336 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02758/0.5354, allocations: 6.006 MB / 0.5045 GB, free: 10.92 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5355, allocations: 4 kB / 0.5045 GB, free: 10.92 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.002e-05/0.5355, allocations: 0 / 0.5045 GB, free: 10.92 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.0008557/0.5364, allocations: 0.4928 MB / 0.505 GB, free: 10.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.5365, allocations: 8.031 kB / 0.505 GB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.736e-05/0.5365, allocations: 23.72 kB / 0.5051 GB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006759/0.5372, allocations: 290.4 kB / 0.5053 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.5373, allocations: 7.953 kB / 0.5053 GB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.752e-05/0.5373, allocations: 7.984 kB / 0.5053 GB, free: 10 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001666/0.5375, allocations: 43.94 kB / 0.5054 GB, free: 9.961 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003908/0.5379, allocations: 161.7 kB / 0.5055 GB, free: 9.773 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.5379, allocations: 4 kB / 0.5055 GB, free: 9.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.36e-05/0.538, allocations: 3.984 kB / 0.5055 GB, free: 9.766 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.538, allocations: 0 / 0.5055 GB, free: 9.766 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008367/0.5388, allocations: 463.1 kB / 0.506 GB, free: 9.266 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002687/0.5391, allocations: 130.5 kB / 0.5061 GB, free: 9.102 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001161/0.5393, allocations: 59.55 kB / 0.5062 GB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.029e-05/0.5393, allocations: 0 / 0.5062 GB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00023/0.5395, allocations: 97.09 kB / 0.5063 GB, free: 8.918 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 2.284e-06/0.5396, allocations: 3.938 kB / 0.5063 GB, free: 8.914 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004455/0.54, allocations: 129.3 kB / 0.5064 GB, free: 8.781 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/0.5402, allocations: 187.9 kB / 0.5066 GB, free: 8.555 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005558/0.5407, allocations: 286.3 kB / 0.5068 GB, free: 8.273 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.874e-05/0.5408, allocations: 29.7 kB / 0.5069 GB, free: 8.238 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.5409, allocations: 182.8 kB / 0.507 GB, free: 8.055 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.936e-05/0.541, allocations: 15.81 kB / 0.5071 GB, free: 8.039 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.104e-05/0.541, allocations: 0 / 0.5071 GB, free: 8.039 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.5412, allocations: 322.9 kB / 0.5074 GB, free: 7.715 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.66e-05/0.5413, allocations: 24 kB / 0.5074 GB, free: 7.691 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.5415, allocations: 99.64 kB / 0.5075 GB, free: 7.566 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.5416, allocations: 39.94 kB / 0.5075 GB, free: 7.527 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.5416, allocations: 0 / 0.5075 GB, free: 7.527 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002991/0.5419, allocations: 105.5 kB / 0.5076 GB, free: 7.418 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.5419, allocations: 4 kB / 0.5076 GB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.542, allocations: 0 / 0.5076 GB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.542, allocations: 4 kB / 0.5076 GB, free: 7.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/0.5422, allocations: 28.14 kB / 0.5077 GB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.749e-06/0.5422, allocations: 4.125 kB / 0.5077 GB, free: 7.379 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001683/0.5424, allocations: 15.84 kB / 0.5077 GB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/0.5425, allocations: 4 kB / 0.5077 GB, free: 7.359 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample.u,shiftSample.y,hold.u,hold.y,shiftSample.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.0001356/0.5426, allocations: 116.9 kB / 0.5078 GB, free: 7.238 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.5428, allocations: 65.42 kB / 0.5079 GB, free: 7.168 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003634/0.5431, allocations: 123.5 kB / 0.508 GB, free: 7.039 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.5432, allocations: 4 kB / 0.508 GB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.5432, allocations: 0 / 0.508 GB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.5432, allocations: 0 / 0.508 GB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003294/0.5435, allocations: 226.1 kB / 0.5082 GB, free: 6.777 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.5435, allocations: 0 / 0.5082 GB, free: 6.777 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001472/0.5437, allocations: 15.98 kB / 0.5082 GB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.256e-05/0.5437, allocations: 7.953 kB / 0.5082 GB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.5438, allocations: 0 / 0.5082 GB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.538e-06/0.5438, allocations: 11.92 kB / 0.5082 GB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.5438, allocations: 3.938 kB / 0.5082 GB, free: 6.738 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003946/0.5442, allocations: 208.5 kB / 0.5084 GB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001925/0.5444, allocations: 124.8 kB / 0.5086 GB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.05e-05/0.5445, allocations: 8 kB / 0.5086 GB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.5446, allocations: 4 kB / 0.5086 GB, free: 6.336 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.145e-05/0.5447, allocations: 7.984 kB / 0.5086 GB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.241e-05/0.5447, allocations: 8 kB / 0.5086 GB, free: 6.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000363/0.5451, allocations: 230 kB / 0.5088 GB, free: 6.094 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5451, allocations: 3.938 kB / 0.5088 GB, free: 6.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004658/0.5456, allocations: 55.88 kB / 0.5089 GB, free: 6.035 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,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample.u,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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.001127/0.5467, allocations: 373.9 kB / 0.5092 GB, free: 5.672 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000362/0.5471, allocations: 87.84 kB / 0.5093 GB, free: 5.586 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.5471, allocations: 0 / 0.5093 GB, free: 5.586 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.5473, allocations: 35.92 kB / 0.5093 GB, free: 5.551 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005723/0.5479, allocations: 60.48 kB / 0.5094 GB, free: 5.496 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008811/0.5488, allocations: 337.9 kB / 0.5097 GB, free: 5.125 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004262/0.5492, allocations: 0.7438 MB / 0.5104 GB, free: 4.352 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.5493, allocations: 23.42 kB / 0.5105 GB, free: 4.332 MB / 362.7 MB Notification: Performance of SimCode: time 2.345e-06/0.5493, allocations: 8 kB / 0.5105 GB, free: 4.324 MB / 362.7 MB Notification: Performance of Templates: time 0.008759/0.5581, allocations: 3.012 MB / 0.5134 GB, free: 1.309 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches