Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002167/0.002168, allocations: 180.5 kB / 17.46 MB, free: 4.363 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.751/2.751, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.001219/0.001219, allocations: 91.84 kB / 272 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1866/0.1866, allocations: 12.2 MB / 332.4 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007881/0.0007883, allocations: 16 kB / 392.7 MB, free: 67.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1973/0.1981, allocations: 50.28 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6779/0.8762, allocations: 78.31 MB / 0.5091 GB, free: 12.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.8765, allocations: 81.34 kB / 0.5092 GB, free: 12.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006851/0.8834, allocations: 2.007 MB / 0.5111 GB, free: 12.4 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.8834, allocations: 0 / 0.5111 GB, free: 12.4 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.906e-06/0.8835, allocations: 3.875 kB / 0.5111 GB, free: 12.4 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.0003814/0.8838, allocations: 377.3 kB / 0.5115 GB, free: 12.01 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.8839, allocations: 11.62 kB / 0.5115 GB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.049e-05/0.8839, allocations: 12.72 kB / 0.5115 GB, free: 12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001798/0.8841, allocations: 187.9 kB / 0.5117 GB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.8841, allocations: 7.812 kB / 0.5117 GB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.638e-06/0.8842, allocations: 384 / 0.5117 GB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002626/0.8844, allocations: 118.4 kB / 0.5118 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/0.8845, allocations: 4.188 kB / 0.5118 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.8845, allocations: 3.938 kB / 0.5118 GB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-06/0.8845, allocations: 0 / 0.5118 GB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001028/0.8846, allocations: 27.23 kB / 0.5119 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004271/0.885, allocations: 271.5 kB / 0.5121 GB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001016/0.8852, allocations: 56.33 kB / 0.5122 GB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.315e-05/0.8852, allocations: 21.39 kB / 0.5122 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.8853, allocations: 3.375 kB / 0.5122 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.8853, allocations: 34.56 kB / 0.5122 GB, free: 11.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.332e-06/0.8853, allocations: 0 / 0.5122 GB, free: 11.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003254/0.8856, allocations: 72.27 kB / 0.5123 GB, free: 11.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/0.8857, allocations: 88.08 kB / 0.5124 GB, free: 11.13 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.8859, allocations: 140.2 kB / 0.5125 GB, free: 11.02 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.8859, allocations: 25.7 kB / 0.5125 GB, free: 10.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.082e-05/0.8859, allocations: 99.12 kB / 0.5126 GB, free: 10.89 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.823e-05/0.886, allocations: 0 / 0.5126 GB, free: 10.89 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-06/0.886, allocations: 3.938 kB / 0.5126 GB, free: 10.89 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.679e-05/0.8861, allocations: 318 kB / 0.5129 GB, free: 10.58 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.016e-05/0.8861, allocations: 7.953 kB / 0.5129 GB, free: 10.57 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.362e-05/0.8862, allocations: 26.59 kB / 0.513 GB, free: 10.55 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.594e-05/0.8863, allocations: 29.08 kB / 0.513 GB, free: 10.54 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.8863, allocations: 0 / 0.513 GB, free: 10.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001477/0.8865, allocations: 76.67 kB / 0.5131 GB, free: 10.48 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.8865, allocations: 3.781 kB / 0.5131 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.8865, allocations: 0 / 0.5131 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.8865, allocations: 0 / 0.5131 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.8867, allocations: 7.781 kB / 0.5131 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.8867, allocations: 0 / 0.5131 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.827e-05/0.8867, allocations: 7.859 kB / 0.5131 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.8868, allocations: 3 kB / 0.5131 GB, free: 10.48 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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 9.355e-05/0.8869, allocations: 124.6 kB / 0.5132 GB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.323e-05/0.8869, allocations: 41.17 kB / 0.5133 GB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.939e-05/0.887, allocations: 14.58 kB / 0.5133 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.887, allocations: 0 / 0.5133 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.887, allocations: 0 / 0.5133 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.887, allocations: 0 / 0.5133 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.8872, allocations: 172.6 kB / 0.5134 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.8872, allocations: 0 / 0.5134 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.182e-05/0.8873, allocations: 11.66 kB / 0.5134 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.8873, allocations: 8.016 kB / 0.5135 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.8873, allocations: 0 / 0.5135 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.8873, allocations: 0 / 0.5135 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.8874, allocations: 0 / 0.5135 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002083/0.8876, allocations: 170.6 kB / 0.5136 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.124e-05/0.8876, allocations: 92.72 kB / 0.5137 GB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.135e-05/0.8877, allocations: 3.781 kB / 0.5137 GB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.8878, allocations: 7.984 kB / 0.5137 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.053e-05/0.8878, allocations: 7.812 kB / 0.5137 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.96e-06/0.8879, allocations: 0 / 0.5137 GB, free: 9.82 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.346e-05/0.8879, allocations: 106.4 kB / 0.5138 GB, free: 9.738 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.888, allocations: 0 / 0.5138 GB, free: 9.738 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000355/0.8883, allocations: 7.781 kB / 0.5138 GB, free: 9.738 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0001199/0.8884, allocations: 97.78 kB / 0.5139 GB, free: 9.648 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001813/0.8886, allocations: 27.14 kB / 0.5139 GB, free: 9.641 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.8886, allocations: 0 / 0.5139 GB, free: 9.641 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.694e-05/0.8887, allocations: 7.812 kB / 0.514 GB, free: 9.641 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000526/0.8892, allocations: 20.83 kB / 0.514 GB, free: 9.633 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005238/0.8898, allocations: 209 kB / 0.5142 GB, free: 9.434 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002592/0.8901, allocations: 0.6883 MB / 0.5148 GB, free: 8.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.408e-05/0.8901, allocations: 15.33 kB / 0.5149 GB, free: 8.723 MB / 330.7 MB Notification: Performance of SimCode: time 4.51e-07/0.8901, allocations: 4 kB / 0.5149 GB, free: 8.719 MB / 330.7 MB Notification: Performance of Templates: time 0.002856/0.893, allocations: 0.7347 MB / 0.5156 GB, free: 8.355 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches