Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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/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/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.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002008/0.002008, allocations: 180.5 kB / 17.46 MB, free: 4.359 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.686/2.686, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.001206/0.001206, allocations: 78.42 kB / 272 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1648/0.1648, allocations: 12.2 MB / 332.4 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006503/0.0006504, allocations: 23.98 kB / 392.7 MB, free: 67.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1861, allocations: 50.28 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6812/0.8675, allocations: 78.5 MB / 0.5093 GB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003258/0.8679, allocations: 81.83 kB / 0.5094 GB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008612/0.8765, allocations: 2.107 MB / 0.5114 GB, free: 12.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.517e-06/0.8766, allocations: 0 / 0.5114 GB, free: 12.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.8766, allocations: 7.844 kB / 0.5114 GB, free: 12.34 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006321/0.8772, allocations: 374.9 kB / 0.5118 GB, free: 11.95 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.334e-05/0.8773, allocations: 11.66 kB / 0.5118 GB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.288e-05/0.8774, allocations: 8.719 kB / 0.5118 GB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003134/0.8777, allocations: 200.2 kB / 0.512 GB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.8778, allocations: 4.344 kB / 0.512 GB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.762e-05/0.8778, allocations: 4.188 kB / 0.512 GB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000551/0.8784, allocations: 145.1 kB / 0.5122 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.8784, allocations: 0 / 0.5122 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.8785, allocations: 3.938 kB / 0.5122 GB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.8785, allocations: 0 / 0.5122 GB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.8787, allocations: 39.11 kB / 0.5122 GB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006399/0.8793, allocations: 374.3 kB / 0.5126 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001972/0.8796, allocations: 97.23 kB / 0.5126 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/0.8797, allocations: 47.89 kB / 0.5127 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.655e-05/0.8798, allocations: 7.859 kB / 0.5127 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.8798, allocations: 38.38 kB / 0.5127 GB, free: 11.02 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.983e-06/0.8798, allocations: 0 / 0.5127 GB, free: 11.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005419/0.8804, allocations: 100.2 kB / 0.5128 GB, free: 10.97 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.961e-05/0.8805, allocations: 144 kB / 0.513 GB, free: 10.81 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001926/0.8807, allocations: 141.4 kB / 0.5131 GB, free: 10.7 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.8808, allocations: 29.64 kB / 0.5131 GB, free: 10.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.844e-05/0.8808, allocations: 94.09 kB / 0.5132 GB, free: 10.58 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.071e-05/0.8809, allocations: 4.125 kB / 0.5132 GB, free: 10.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-06/0.8809, allocations: 4 kB / 0.5132 GB, free: 10.57 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.635e-05/0.881, allocations: 321.7 kB / 0.5135 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.412e-05/0.8811, allocations: 14.73 kB / 0.5135 GB, free: 10.25 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.786e-05/0.8812, allocations: 43.72 kB / 0.5136 GB, free: 10.21 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.8814, allocations: 67.44 kB / 0.5137 GB, free: 10.16 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.8814, allocations: 0 / 0.5137 GB, free: 10.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002554/0.8817, allocations: 91.02 kB / 0.5137 GB, free: 10.1 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.8817, allocations: 7.531 kB / 0.5137 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.8817, allocations: 4 kB / 0.5138 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.792e-05/0.8818, allocations: 3.844 kB / 0.5138 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.8819, allocations: 15.52 kB / 0.5138 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.882, allocations: 3.938 kB / 0.5138 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.42e-05/0.8821, allocations: 8.125 kB / 0.5138 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.8821, allocations: 7.812 kB / 0.5138 GB, free: 10.08 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.0001351/0.8822, allocations: 129 kB / 0.5139 GB, free: 9.957 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.8824, allocations: 56.11 kB / 0.514 GB, free: 9.918 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.974e-05/0.8825, allocations: 18.77 kB / 0.514 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.8825, allocations: 0 / 0.514 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.8825, allocations: 0 / 0.514 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.8825, allocations: 3.844 kB / 0.514 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003847/0.8829, allocations: 184.8 kB / 0.5142 GB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.8829, allocations: 0 / 0.5142 GB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.8831, allocations: 11.75 kB / 0.5142 GB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.8831, allocations: 3.984 kB / 0.5142 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.8831, allocations: 7.344 kB / 0.5142 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.8831, allocations: 0 / 0.5142 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/0.8832, allocations: 7.797 kB / 0.5142 GB, free: 9.691 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003589/0.8835, allocations: 272.2 kB / 0.5145 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.792e-05/0.8836, allocations: 96.69 kB / 0.5145 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.83e-05/0.8837, allocations: 0 / 0.5145 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.8839, allocations: 3.875 kB / 0.5145 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.465e-05/0.8839, allocations: 11.77 kB / 0.5146 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.884, allocations: 7.938 kB / 0.5146 GB, free: 9.332 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001028/0.8841, allocations: 110 kB / 0.5147 GB, free: 9.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.8841, allocations: 0 / 0.5147 GB, free: 9.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005106/0.8846, allocations: 7.719 kB / 0.5147 GB, free: 9.25 MB / 330.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0001292/0.8848, allocations: 93.94 kB / 0.5148 GB, free: 9.164 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002716/0.8851, allocations: 53.23 kB / 0.5148 GB, free: 9.148 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.8851, allocations: 0 / 0.5148 GB, free: 9.148 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.147e-05/0.8852, allocations: 19.33 kB / 0.5148 GB, free: 9.141 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007625/0.8859, allocations: 30.67 kB / 0.5149 GB, free: 9.133 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005704/0.8865, allocations: 254.3 kB / 0.5151 GB, free: 8.895 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.8869, allocations: 0.6955 MB / 0.5158 GB, free: 8.191 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.455e-05/0.887, allocations: 11.31 kB / 0.5158 GB, free: 8.184 MB / 330.7 MB Notification: Performance of SimCode: time 6.31e-07/0.887, allocations: 0 / 0.5158 GB, free: 8.184 MB / 330.7 MB Notification: Performance of Templates: time 0.003661/0.8907, allocations: 0.9061 MB / 0.5167 GB, free: 7.738 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches