Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.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.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002181/0.002181, allocations: 186.2 kB / 16.44 MB, free: 5.672 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.074/2.074, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.001136/0.001135, allocations: 104 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.09955/0.09955, allocations: 12.6 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005428/0.000543, allocations: 12 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0991/0.09967, allocations: 50.37 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4156/0.5154, allocations: 79.62 MB / 0.5097 GB, free: 12.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/0.5157, allocations: 81.89 kB / 0.5098 GB, free: 12.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009538/0.5253, allocations: 2.389 MB / 0.5121 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.729e-06/0.5253, allocations: 3.984 kB / 0.5122 GB, free: 11.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.285e-05/0.5254, allocations: 11.56 kB / 0.5122 GB, free: 11.74 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006249/0.526, allocations: 428.3 kB / 0.5126 GB, free: 11.33 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.5261, allocations: 11.06 kB / 0.5126 GB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.58e-05/0.5262, allocations: 19.5 kB / 0.5126 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.5265, allocations: 244.3 kB / 0.5128 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.5266, allocations: 16.09 kB / 0.5128 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.569e-05/0.5266, allocations: 6.531 kB / 0.5129 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008731/0.5275, allocations: 308.6 kB / 0.5131 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.5275, allocations: 11.69 kB / 0.5132 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/0.5276, allocations: 3.312 kB / 0.5132 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.5276, allocations: 3.875 kB / 0.5132 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003546/0.5279, allocations: 80.42 kB / 0.5132 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006403/0.5286, allocations: 441 kB / 0.5137 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006497/0.5293, allocations: 310.8 kB / 0.514 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.918e-05/0.5294, allocations: 3.844 kB / 0.514 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.5294, allocations: 37.84 kB / 0.514 GB, free: 10.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=18): time 3.106e-06/0.5294, allocations: 11.75 kB / 0.514 GB, free: 10.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.0008829/0.5303, allocations: 232.2 kB / 0.5142 GB, free: 10.08 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.5304, allocations: 196.7 kB / 0.5144 GB, free: 9.852 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000201/0.5307, allocations: 167.4 kB / 0.5146 GB, free: 9.738 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.5307, allocations: 32.67 kB / 0.5146 GB, free: 9.707 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.242e-05/0.5308, allocations: 158.6 kB / 0.5148 GB, free: 9.555 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.275e-05/0.5308, allocations: 18.58 kB / 0.5148 GB, free: 9.547 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.002e-05/0.5308, allocations: 4.062 kB / 0.5148 GB, free: 9.543 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.877e-05/0.5309, allocations: 319.3 kB / 0.5151 GB, free: 9.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.531, allocations: 25.64 kB / 0.5151 GB, free: 9.227 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001896/0.5312, allocations: 136 kB / 0.5152 GB, free: 9.074 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.5314, allocations: 49.39 kB / 0.5153 GB, free: 9.062 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.5314, allocations: 3.938 kB / 0.5153 GB, free: 9.059 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000408/0.5318, allocations: 175.6 kB / 0.5155 GB, free: 8.98 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.5319, allocations: 7.719 kB / 0.5155 GB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.5319, allocations: 11.8 kB / 0.5155 GB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/0.5319, allocations: 3.906 kB / 0.5155 GB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002282/0.5321, allocations: 38.67 kB / 0.5155 GB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.5322, allocations: 8.109 kB / 0.5155 GB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001745/0.5324, allocations: 26.8 kB / 0.5156 GB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.5324, allocations: 7.688 kB / 0.5156 GB, free: 8.949 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001666/0.5326, allocations: 138.9 kB / 0.5157 GB, free: 8.828 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004377/0.533, allocations: 148.6 kB / 0.5158 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.536e-05/0.5331, allocations: 24 kB / 0.5159 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.5331, allocations: 7.859 kB / 0.5159 GB, free: 8.758 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.5331, allocations: 0 / 0.5159 GB, free: 8.758 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.5331, allocations: 4.219 kB / 0.5159 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003189/0.5335, allocations: 218.4 kB / 0.5161 GB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.5335, allocations: 7.688 kB / 0.5161 GB, free: 8.535 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.5338, allocations: 42.66 kB / 0.5161 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.667e-06/0.5338, allocations: 11.8 kB / 0.5161 GB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.5338, allocations: 3.062 kB / 0.5161 GB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.5338, allocations: 3.906 kB / 0.5161 GB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.5338, allocations: 3.953 kB / 0.5161 GB, free: 8.512 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006179/0.5345, allocations: 424.2 kB / 0.5166 GB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.5346, allocations: 112.3 kB / 0.5167 GB, free: 8.062 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/0.5346, allocations: 3.75 kB / 0.5167 GB, free: 8.062 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.5349, allocations: 19.11 kB / 0.5167 GB, free: 8.059 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.5349, allocations: 0 / 0.5167 GB, free: 8.059 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.535, allocations: 15.69 kB / 0.5167 GB, free: 8.051 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001734/0.5351, allocations: 136.7 kB / 0.5168 GB, free: 7.961 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5352, allocations: 0 / 0.5168 GB, free: 7.961 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004504/0.5356, allocations: 22.59 kB / 0.5168 GB, free: 7.961 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.0001146/0.5357, allocations: 101.5 kB / 0.5169 GB, free: 7.867 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004302/0.5362, allocations: 130 kB / 0.5171 GB, free: 7.832 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5362, allocations: 0 / 0.5171 GB, free: 7.832 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.962e-05/0.5363, allocations: 11.56 kB / 0.5171 GB, free: 7.832 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007004/0.537, allocations: 118 kB / 0.5172 GB, free: 7.797 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007966/0.5378, allocations: 393.5 kB / 0.5176 GB, free: 7.492 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000196/0.538, allocations: 0.7347 MB / 0.5183 GB, free: 6.766 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.004e-05/0.5381, allocations: 18.97 kB / 0.5183 GB, free: 6.758 MB / 330.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5381, allocations: 0 / 0.5183 GB, free: 6.758 MB / 330.7 MB Notification: Performance of Templates: time 0.004411/0.5425, allocations: 1.784 MB / 0.52 GB, free: 5.867 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches