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-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.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.001531/0.001531, allocations: 186 kB / 16.44 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.915/1.915, allocations: 205.4 MB / 222.6 MB, free: 9.133 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.001111/0.001111, allocations: 97.47 kB / 270.9 MB, free: 8.367 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.09889/0.09889, allocations: 12.59 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000533/0.0005333, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08836/0.08892, allocations: 50.38 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4339/0.5229, allocations: 78.51 MB / 0.5086 GB, free: 12.72 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.5232, allocations: 76.5 kB / 0.5087 GB, free: 12.72 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005646/0.5289, allocations: 1.551 MB / 0.5102 GB, free: 12.16 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5289, allocations: 0 / 0.5102 GB, free: 12.16 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.529, allocations: 4 kB / 0.5102 GB, free: 12.16 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.000395/0.5294, allocations: 379.8 kB / 0.5106 GB, free: 11.77 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.5294, allocations: 7.188 kB / 0.5106 GB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.911e-05/0.5295, allocations: 11.59 kB / 0.5106 GB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001837/0.5297, allocations: 198.6 kB / 0.5108 GB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.5297, allocations: 3.953 kB / 0.5108 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.5297, allocations: 7.688 kB / 0.5108 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003328/0.5301, allocations: 138.4 kB / 0.511 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.5301, allocations: 0 / 0.511 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.5301, allocations: 0 / 0.511 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.5301, allocations: 0 / 0.511 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001409/0.5303, allocations: 40.2 kB / 0.511 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000422/0.5307, allocations: 368 kB / 0.5113 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.5309, allocations: 92.86 kB / 0.5114 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.5309, allocations: 3.875 kB / 0.5114 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.97e-05/0.5309, allocations: 44.55 kB / 0.5115 GB, free: 10.88 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.5309, allocations: 0 / 0.5115 GB, free: 10.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004084/0.5314, allocations: 104 kB / 0.5116 GB, free: 10.83 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/0.5314, allocations: 140.4 kB / 0.5117 GB, free: 10.67 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.5316, allocations: 129.9 kB / 0.5118 GB, free: 10.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.252e-05/0.5316, allocations: 29.2 kB / 0.5119 GB, free: 10.54 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.816e-05/0.5316, allocations: 154.6 kB / 0.512 GB, free: 10.39 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.5317, allocations: 7.812 kB / 0.512 GB, free: 10.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.581e-06/0.5317, allocations: 3.938 kB / 0.512 GB, free: 10.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.632e-05/0.5317, allocations: 314.2 kB / 0.5123 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.499e-05/0.5318, allocations: 15.7 kB / 0.5123 GB, free: 10.06 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.378e-05/0.5319, allocations: 51.31 kB / 0.5124 GB, free: 10.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.41e-05/0.532, allocations: 19.09 kB / 0.5124 GB, free: 10.01 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.532, allocations: 3.953 kB / 0.5124 GB, free: 10.01 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002179/0.5323, allocations: 78.3 kB / 0.5125 GB, free: 9.965 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.5323, allocations: 7.562 kB / 0.5125 GB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.5323, allocations: 3.844 kB / 0.5125 GB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.5323, allocations: 0 / 0.5125 GB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.5325, allocations: 22.77 kB / 0.5125 GB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.5325, allocations: 0 / 0.5125 GB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.292e-05/0.5326, allocations: 11.56 kB / 0.5125 GB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.5326, allocations: 0 / 0.5125 GB, free: 9.949 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 7.867e-05/0.5327, allocations: 124.4 kB / 0.5126 GB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.5328, allocations: 63.98 kB / 0.5127 GB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.021e-05/0.5329, allocations: 15.27 kB / 0.5127 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.5329, allocations: 3.844 kB / 0.5127 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.5329, allocations: 8 kB / 0.5127 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.5329, allocations: 0 / 0.5127 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002473/0.5332, allocations: 186.7 kB / 0.5129 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.5332, allocations: 0 / 0.5129 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.5333, allocations: 19.28 kB / 0.5129 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.5333, allocations: 0 / 0.5129 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.5333, allocations: 3.875 kB / 0.5129 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.5333, allocations: 3.938 kB / 0.5129 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.5333, allocations: 0 / 0.5129 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002691/0.5336, allocations: 305.2 kB / 0.5132 GB, free: 9.266 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.327e-05/0.5337, allocations: 99.91 kB / 0.5133 GB, free: 9.16 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.5337, allocations: 0 / 0.5133 GB, free: 9.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.5339, allocations: 7.797 kB / 0.5133 GB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.73e-05/0.534, allocations: 3.875 kB / 0.5133 GB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.534, allocations: 0 / 0.5133 GB, free: 9.156 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.741e-05/0.5341, allocations: 117.6 kB / 0.5134 GB, free: 9.07 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5341, allocations: 0 / 0.5134 GB, free: 9.07 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003487/0.5344, allocations: 10.98 kB / 0.5135 GB, free: 9.066 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 8.855e-05/0.5345, allocations: 101.6 kB / 0.5135 GB, free: 8.973 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002051/0.5347, allocations: 45.31 kB / 0.5136 GB, free: 8.961 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.5348, allocations: 0 / 0.5136 GB, free: 8.961 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.075e-05/0.5348, allocations: 11.53 kB / 0.5136 GB, free: 8.961 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003978/0.5352, allocations: 48 kB / 0.5136 GB, free: 8.938 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004346/0.5357, allocations: 248.3 kB / 0.5139 GB, free: 8.707 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001525/0.5359, allocations: 0.6999 MB / 0.5146 GB, free: 7.996 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.869e-05/0.5359, allocations: 11.28 kB / 0.5146 GB, free: 7.988 MB / 330.7 MB Notification: Performance of SimCode: time 6.31e-07/0.5359, allocations: 7.875 kB / 0.5146 GB, free: 7.98 MB / 330.7 MB Notification: Performance of Templates: time 0.002617/0.5386, allocations: 0.905 MB / 0.5155 GB, free: 7.535 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