Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001509/0.001509, allocations: 186.6 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 1.974/1.974, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.001082/0.001082, allocations: 84.38 kB / 270.9 MB, free: 8.371 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.108/0.108, allocations: 12.6 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005474/0.0005475, allocations: 12 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09015/0.09073, allocations: 50.37 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4307/0.5215, allocations: 78.34 MB / 0.5085 GB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003277/0.5219, allocations: 82.73 kB / 0.5086 GB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007778/0.5297, allocations: 1.445 MB / 0.51 GB, free: 12.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5297, allocations: 0 / 0.51 GB, free: 12.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.512e-05/0.5298, allocations: 0 / 0.51 GB, free: 12.23 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005198/0.5303, allocations: 376.5 kB / 0.5103 GB, free: 11.85 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.5304, allocations: 7.812 kB / 0.5103 GB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.684e-05/0.5304, allocations: 7.781 kB / 0.5103 GB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002545/0.5307, allocations: 196.9 kB / 0.5105 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.5307, allocations: 3.188 kB / 0.5105 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.185e-05/0.5308, allocations: 3.844 kB / 0.5105 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004117/0.5312, allocations: 124.9 kB / 0.5107 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.5312, allocations: 0 / 0.5107 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.5313, allocations: 3.875 kB / 0.5107 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.5313, allocations: 3.938 kB / 0.5107 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.5315, allocations: 22.67 kB / 0.5107 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000522/0.5321, allocations: 289.2 kB / 0.511 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001844/0.5323, allocations: 74.56 kB / 0.511 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.5323, allocations: 3.844 kB / 0.511 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.5324, allocations: 34.55 kB / 0.5111 GB, free: 11.09 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 3.466e-06/0.5324, allocations: 0 / 0.5111 GB, free: 11.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0005201/0.5329, allocations: 93.86 kB / 0.5112 GB, free: 11.04 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.176e-05/0.533, allocations: 109.8 kB / 0.5113 GB, free: 10.91 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/0.5332, allocations: 130 kB / 0.5114 GB, free: 10.81 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.5332, allocations: 25.7 kB / 0.5114 GB, free: 10.78 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.243e-05/0.5333, allocations: 157.5 kB / 0.5116 GB, free: 10.63 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.453e-05/0.5333, allocations: 7.781 kB / 0.5116 GB, free: 10.62 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.725e-06/0.5334, allocations: 3.438 kB / 0.5116 GB, free: 10.62 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.536e-05/0.5335, allocations: 322.8 kB / 0.5119 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.196e-05/0.5336, allocations: 7.531 kB / 0.5119 GB, free: 10.3 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001084/0.5337, allocations: 34.11 kB / 0.5119 GB, free: 10.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.984e-05/0.5338, allocations: 18.53 kB / 0.5119 GB, free: 10.26 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.5338, allocations: 3.984 kB / 0.5119 GB, free: 10.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000303/0.5342, allocations: 67.59 kB / 0.512 GB, free: 10.21 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.5342, allocations: 7.75 kB / 0.512 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.5342, allocations: 0 / 0.512 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.5343, allocations: 3.844 kB / 0.512 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001476/0.5344, allocations: 15.77 kB / 0.512 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.5345, allocations: 0 / 0.512 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.5346, allocations: 3.875 kB / 0.512 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.5346, allocations: 3.812 kB / 0.512 GB, free: 10.21 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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.0001179/0.5348, allocations: 125.4 kB / 0.5122 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000149/0.5349, allocations: 48.95 kB / 0.5122 GB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.366e-05/0.535, allocations: 15.45 kB / 0.5122 GB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.535, allocations: 7.906 kB / 0.5122 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.5351, allocations: 0 / 0.5122 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.5351, allocations: 0 / 0.5122 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004408/0.5355, allocations: 179.7 kB / 0.5124 GB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.5356, allocations: 0 / 0.5124 GB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.5357, allocations: 11.64 kB / 0.5124 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.307e-06/0.5358, allocations: 7.812 kB / 0.5124 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.5358, allocations: 3.938 kB / 0.5124 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.698e-06/0.5358, allocations: 0 / 0.5124 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.5358, allocations: 3.844 kB / 0.5124 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000383/0.5362, allocations: 204.9 kB / 0.5126 GB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.816e-05/0.5363, allocations: 88.88 kB / 0.5127 GB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.113e-05/0.5364, allocations: 7.969 kB / 0.5127 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/0.5366, allocations: 7.859 kB / 0.5127 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.17e-05/0.5366, allocations: 3.844 kB / 0.5127 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.5367, allocations: 0 / 0.5127 GB, free: 9.512 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001322/0.5368, allocations: 114.2 kB / 0.5128 GB, free: 9.426 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.5368, allocations: 0 / 0.5128 GB, free: 9.426 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005305/0.5374, allocations: 3.812 kB / 0.5128 GB, free: 9.426 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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.0001163/0.5375, allocations: 98.72 kB / 0.5129 GB, free: 9.336 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002892/0.5378, allocations: 37.83 kB / 0.513 GB, free: 9.324 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5379, allocations: 3.875 kB / 0.513 GB, free: 9.324 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.826e-05/0.538, allocations: 7.734 kB / 0.513 GB, free: 9.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000482/0.5385, allocations: 30.91 kB / 0.513 GB, free: 9.312 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005498/0.539, allocations: 230.4 kB / 0.5132 GB, free: 9.098 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002009/0.5393, allocations: 0.6961 MB / 0.5139 GB, free: 8.391 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.011e-05/0.5394, allocations: 11.19 kB / 0.5139 GB, free: 8.387 MB / 330.7 MB Notification: Performance of SimCode: time 1.683e-06/0.5394, allocations: 4 kB / 0.5139 GB, free: 8.383 MB / 330.7 MB Notification: Performance of Templates: time 0.003631/0.543, allocations: 0.829 MB / 0.5147 GB, free: 7.969 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches