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/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.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.002783/0.002782, allocations: 181.3 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.988/2.988, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.001304/0.001304, allocations: 89.36 kB / 272 MB, free: 8.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1545/0.1545, allocations: 12.2 MB / 332.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007892/0.0007893, allocations: 12 kB / 392.7 MB, free: 67.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1531, allocations: 50.29 MB / 443 MB, free: 16.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.517/0.6701, allocations: 78.33 MB / 0.5091 GB, free: 13.14 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/0.6705, allocations: 77.02 kB / 0.5092 GB, free: 13.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005105/0.6756, allocations: 1.998 MB / 0.5111 GB, free: 12.54 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.6757, allocations: 3.812 kB / 0.5111 GB, free: 12.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.6757, allocations: 4 kB / 0.5112 GB, free: 12.54 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.0004156/0.6761, allocations: 377.4 kB / 0.5115 GB, free: 12.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.677e-05/0.6762, allocations: 11.53 kB / 0.5115 GB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.357e-05/0.6762, allocations: 8.75 kB / 0.5115 GB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.6764, allocations: 206.1 kB / 0.5117 GB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.6764, allocations: 384 / 0.5117 GB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.669e-05/0.6765, allocations: 6.75 kB / 0.5117 GB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003186/0.6768, allocations: 123.8 kB / 0.5119 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.6768, allocations: 192 / 0.5119 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.6768, allocations: 3.938 kB / 0.5119 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.6769, allocations: 0 / 0.5119 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.345e-05/0.6769, allocations: 38.56 kB / 0.5119 GB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003412/0.6773, allocations: 269.9 kB / 0.5122 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001024/0.6774, allocations: 82.23 kB / 0.5122 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.218e-05/0.6775, allocations: 33.66 kB / 0.5123 GB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.6775, allocations: 7.125 kB / 0.5123 GB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.899e-05/0.6775, allocations: 39.31 kB / 0.5123 GB, free: 11.35 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.6775, allocations: 3.938 kB / 0.5123 GB, free: 11.35 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002633/0.6778, allocations: 86.3 kB / 0.5124 GB, free: 11.3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.6779, allocations: 111 kB / 0.5125 GB, free: 11.17 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.678, allocations: 148.8 kB / 0.5126 GB, free: 11.05 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.387e-06/0.678, allocations: 25.7 kB / 0.5127 GB, free: 11.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.054e-05/0.6781, allocations: 94.47 kB / 0.5128 GB, free: 10.94 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.302e-05/0.6781, allocations: 3.906 kB / 0.5128 GB, free: 10.94 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.058e-06/0.6781, allocations: 0 / 0.5128 GB, free: 10.94 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.421e-05/0.6782, allocations: 317.9 kB / 0.5131 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.24e-05/0.6782, allocations: 15.11 kB / 0.5131 GB, free: 10.62 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.105e-05/0.6783, allocations: 38 kB / 0.5131 GB, free: 10.58 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.132e-05/0.6784, allocations: 50.39 kB / 0.5132 GB, free: 10.54 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.6784, allocations: 0 / 0.5132 GB, free: 10.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001188/0.6785, allocations: 74.45 kB / 0.5132 GB, free: 10.49 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.6785, allocations: 7.719 kB / 0.5132 GB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.6785, allocations: 0 / 0.5132 GB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.6785, allocations: 0 / 0.5132 GB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.451e-05/0.6786, allocations: 23.61 kB / 0.5133 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.6787, allocations: 0 / 0.5133 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.134e-05/0.6787, allocations: 7.781 kB / 0.5133 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.6787, allocations: 4 kB / 0.5133 GB, free: 10.47 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 7.072e-05/0.6788, allocations: 132 kB / 0.5134 GB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.923e-05/0.6789, allocations: 47.83 kB / 0.5134 GB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.936e-05/0.6789, allocations: 14.64 kB / 0.5135 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.6789, allocations: 3.75 kB / 0.5135 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.6789, allocations: 4.062 kB / 0.5135 GB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.6789, allocations: 3.938 kB / 0.5135 GB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/0.6791, allocations: 179.4 kB / 0.5136 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.6791, allocations: 0 / 0.5136 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.611e-05/0.6792, allocations: 11.52 kB / 0.5136 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.6792, allocations: 3.875 kB / 0.5137 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.6792, allocations: 0 / 0.5137 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.6792, allocations: 0 / 0.5137 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.6792, allocations: 0 / 0.5137 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001539/0.6794, allocations: 191.6 kB / 0.5138 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.117e-05/0.6794, allocations: 88.81 kB / 0.5139 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.6794, allocations: 6.875 kB / 0.5139 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.621e-05/0.6795, allocations: 3.906 kB / 0.5139 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-05/0.6796, allocations: 11.95 kB / 0.5139 GB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-06/0.6796, allocations: 0 / 0.5139 GB, free: 9.801 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.32e-05/0.6796, allocations: 108.3 kB / 0.514 GB, free: 9.723 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6796, allocations: 0 / 0.514 GB, free: 9.723 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000221/0.6799, allocations: 3.844 kB / 0.514 GB, free: 9.723 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 9.271e-05/0.68, allocations: 95.77 kB / 0.5141 GB, free: 9.633 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001375/0.6801, allocations: 41.08 kB / 0.5142 GB, free: 9.621 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.6801, allocations: 0 / 0.5142 GB, free: 9.621 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.651e-05/0.6802, allocations: 11.67 kB / 0.5142 GB, free: 9.617 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003879/0.6806, allocations: 35.14 kB / 0.5142 GB, free: 9.605 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003299/0.6809, allocations: 228 kB / 0.5144 GB, free: 9.395 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001435/0.6811, allocations: 0.6883 MB / 0.5151 GB, free: 8.691 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.792e-05/0.6811, allocations: 11.28 kB / 0.5151 GB, free: 8.688 MB / 330.7 MB Notification: Performance of SimCode: time 2.51e-07/0.6811, allocations: 0 / 0.5151 GB, free: 8.688 MB / 330.7 MB Notification: Performance of Templates: time 0.002209/0.6833, allocations: 0.8412 MB / 0.5159 GB, free: 8.266 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