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-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.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.002285/0.002285, allocations: 186.1 kB / 13.7 MB, free: 1.625 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.991/1.991, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00113/0.00113, allocations: 86.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1303/0.1303, allocations: 12.59 MB / 328.2 MB, free: 11.15 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.203e-05/3.22e-05, allocations: 4 kB / 386 MB, free: 1.297 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3166, allocations: 50.36 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1413/0.4579, allocations: 78.23 MB / 0.5025 GB, free: 15.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002982/0.4583, allocations: 79.95 kB / 0.5026 GB, free: 15.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005955/0.4643, allocations: 1.45 MB / 0.504 GB, free: 14.28 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4643, allocations: 4 kB / 0.504 GB, free: 14.28 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.4644, allocations: 0 / 0.504 GB, free: 14.28 MB / 362.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.0004403/0.4648, allocations: 346.5 kB / 0.5043 GB, free: 13.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.4649, allocations: 8.031 kB / 0.5043 GB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.082e-05/0.4649, allocations: 7.906 kB / 0.5044 GB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.4652, allocations: 194.7 kB / 0.5045 GB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.4652, allocations: 12 kB / 0.5045 GB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.705e-05/0.4652, allocations: 0 / 0.5045 GB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002819/0.4655, allocations: 97.05 kB / 0.5046 GB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.954e-06/0.4656, allocations: 0 / 0.5046 GB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.4656, allocations: 0 / 0.5046 GB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.4656, allocations: 0 / 0.5046 GB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.664e-05/0.4657, allocations: 19.94 kB / 0.5047 GB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000433/0.4661, allocations: 277.7 kB / 0.5049 GB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.362e-05/0.4662, allocations: 42.31 kB / 0.505 GB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.889e-05/0.4662, allocations: 17.84 kB / 0.505 GB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.4663, allocations: 0 / 0.505 GB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/0.4663, allocations: 42.5 kB / 0.505 GB, free: 13.05 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.613e-06/0.4663, allocations: 0 / 0.505 GB, free: 13.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002009/0.4665, allocations: 45.59 kB / 0.5051 GB, free: 13 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.737e-05/0.4666, allocations: 81.11 kB / 0.5051 GB, free: 12.9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.4668, allocations: 132.8 kB / 0.5053 GB, free: 12.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.4668, allocations: 25.7 kB / 0.5053 GB, free: 12.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.195e-05/0.4669, allocations: 158.5 kB / 0.5054 GB, free: 12.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.058e-05/0.4669, allocations: 4 kB / 0.5054 GB, free: 12.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.038e-06/0.467, allocations: 0 / 0.5054 GB, free: 12.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.4671, allocations: 322.8 kB / 0.5058 GB, free: 12.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.987e-05/0.4671, allocations: 3.938 kB / 0.5058 GB, free: 12.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.986e-05/0.4672, allocations: 13.72 kB / 0.5058 GB, free: 12.22 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.512e-05/0.4672, allocations: 12.06 kB / 0.5058 GB, free: 12.21 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4672, allocations: 0 / 0.5058 GB, free: 12.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001043/0.4673, allocations: 49.62 kB / 0.5058 GB, free: 12.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.4674, allocations: 4 kB / 0.5058 GB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.4674, allocations: 0 / 0.5058 GB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.4674, allocations: 3.984 kB / 0.5058 GB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.922e-05/0.4675, allocations: 8 kB / 0.5058 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.4675, allocations: 4.062 kB / 0.5059 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.227e-05/0.4676, allocations: 7.984 kB / 0.5059 GB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.255e-06/0.4676, allocations: 0 / 0.5059 GB, free: 12.13 MB / 362.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 () * 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 8.189e-05/0.4677, allocations: 108.7 kB / 0.506 GB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.072e-05/0.4678, allocations: 37.61 kB / 0.506 GB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.58e-05/0.4679, allocations: 15.59 kB / 0.506 GB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.4679, allocations: 3.984 kB / 0.506 GB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.4679, allocations: 0 / 0.506 GB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.4679, allocations: 32 / 0.506 GB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000212/0.4681, allocations: 177.6 kB / 0.5062 GB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.4681, allocations: 0 / 0.5062 GB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.986e-05/0.4682, allocations: 4 kB / 0.5062 GB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.4682, allocations: 4 kB / 0.5062 GB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.455e-06/0.4683, allocations: 0 / 0.5062 GB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.4683, allocations: 0 / 0.5062 GB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4683, allocations: 0 / 0.5062 GB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001703/0.4685, allocations: 170 kB / 0.5064 GB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.182e-05/0.4686, allocations: 89 kB / 0.5064 GB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.4686, allocations: 3.938 kB / 0.5064 GB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.4687, allocations: 7.984 kB / 0.5065 GB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.198e-05/0.4687, allocations: 3.938 kB / 0.5065 GB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/0.4688, allocations: 4 kB / 0.5065 GB, free: 11.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001085/0.4689, allocations: 108 kB / 0.5066 GB, free: 11.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4689, allocations: 4.031 kB / 0.5066 GB, free: 11.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002715/0.4692, allocations: 7.953 kB / 0.5066 GB, free: 11.29 MB / 362.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 () * 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.0001045/0.4693, allocations: 91.25 kB / 0.5067 GB, free: 11.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.562e-05/0.4694, allocations: 12 kB / 0.5067 GB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.4694, allocations: 3.938 kB / 0.5067 GB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.978e-05/0.4695, allocations: 7.938 kB / 0.5067 GB, free: 11.17 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003011/0.4698, allocations: 16.02 kB / 0.5067 GB, free: 11.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003176/0.4701, allocations: 135.8 kB / 0.5068 GB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.4704, allocations: 0.6887 MB / 0.5075 GB, free: 10.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.855e-05/0.4705, allocations: 15.42 kB / 0.5075 GB, free: 10.26 MB / 362.7 MB Notification: Performance of SimCode: time 7.72e-07/0.4705, allocations: 0 / 0.5075 GB, free: 10.26 MB / 362.7 MB Notification: Performance of Templates: time 0.002663/0.4732, allocations: 0.73 MB / 0.5082 GB, free: 9.531 MB / 362.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