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.002321/0.00232, allocations: 179.4 kB / 8.407 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.101/2.101, allocations: 205.3 MB / 214.1 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00119/0.001189, allocations: 90.7 kB / 262.2 MB, free: 1.672 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.1018/0.1018, allocations: 12.59 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.092e-05/2.11e-05, allocations: 4 kB / 378.9 MB, free: 6.895 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3192, allocations: 50.37 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1374/0.4566, allocations: 77.57 MB / 0.495 GB, free: 4.742 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002879/0.457, allocations: 83.95 kB / 0.495 GB, free: 4.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005823/0.4628, allocations: 1.431 MB / 0.4964 GB, free: 3.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4629, allocations: 0 / 0.4964 GB, free: 3.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.4629, allocations: 0 / 0.4964 GB, free: 3.23 MB / 346.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.0004177/0.4633, allocations: 342.5 kB / 0.4968 GB, free: 2.852 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.4634, allocations: 8.031 kB / 0.4968 GB, free: 2.844 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.014e-05/0.4634, allocations: 15.83 kB / 0.4968 GB, free: 2.828 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002424/0.4637, allocations: 199.8 kB / 0.497 GB, free: 2.594 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.404e-06/0.4637, allocations: 0 / 0.497 GB, free: 2.594 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.4637, allocations: 4 kB / 0.497 GB, free: 2.59 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001005/0.4638, allocations: 15.98 kB / 0.497 GB, free: 2.574 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.4641, allocations: 93.06 kB / 0.4971 GB, free: 2.465 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.4641, allocations: 0 / 0.4971 GB, free: 2.465 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.4641, allocations: 7.984 kB / 0.4971 GB, free: 2.457 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.4642, allocations: 0 / 0.4971 GB, free: 2.457 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003974/0.4646, allocations: 254.2 kB / 0.4973 GB, free: 2.168 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.332e-05/0.4646, allocations: 37.16 kB / 0.4974 GB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.36e-05/0.4647, allocations: 17.72 kB / 0.4974 GB, free: 2.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.4647, allocations: 4.047 kB / 0.4974 GB, free: 2.086 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.4648, allocations: 34.56 kB / 0.4974 GB, free: 2.043 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.653e-06/0.4648, allocations: 0 / 0.4974 GB, free: 2.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001829/0.465, allocations: 53.53 kB / 0.4975 GB, free: 1.984 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.465, allocations: 81.17 kB / 0.4976 GB, free: 1.887 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.4652, allocations: 123.2 kB / 0.4977 GB, free: 1.762 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.4652, allocations: 29.7 kB / 0.4977 GB, free: 1.727 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.097e-05/0.4653, allocations: 150.6 kB / 0.4979 GB, free: 1.578 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.516e-05/0.4653, allocations: 8 kB / 0.4979 GB, free: 1.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.084e-06/0.4653, allocations: 0 / 0.4979 GB, free: 1.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.4655, allocations: 322.7 kB / 0.4982 GB, free: 1.246 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.654e-05/0.4655, allocations: 3.938 kB / 0.4982 GB, free: 1.242 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.663e-05/0.4655, allocations: 21.72 kB / 0.4982 GB, free: 1.215 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.518e-05/0.4656, allocations: 4 kB / 0.4982 GB, free: 1.211 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4656, allocations: 0 / 0.4982 GB, free: 1.211 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.233e-05/0.4657, allocations: 41.64 kB / 0.4982 GB, free: 1.164 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.4657, allocations: 11.98 kB / 0.4982 GB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.4657, allocations: 0 / 0.4982 GB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.4658, allocations: 0 / 0.4982 GB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.625e-05/0.4659, allocations: 8.125 kB / 0.4983 GB, free: 1.145 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.4659, allocations: 7.984 kB / 0.4983 GB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.606e-05/0.4659, allocations: 0 / 0.4983 GB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.311e-05/0.466, allocations: 4 kB / 0.4983 GB, free: 1.133 MB / 346.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 7.22e-05/0.4661, allocations: 108.9 kB / 0.4984 GB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.694e-05/0.4661, allocations: 41.55 kB / 0.4984 GB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.611e-05/0.4662, allocations: 7.969 kB / 0.4984 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.299e-06/0.4662, allocations: 4 kB / 0.4984 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.4662, allocations: 32 / 0.4984 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.4662, allocations: 4 kB / 0.4984 GB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002233/0.4665, allocations: 142.2 kB / 0.4986 GB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.4665, allocations: 3.953 kB / 0.4986 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.275e-05/0.4666, allocations: 11.98 kB / 0.4986 GB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.4666, allocations: 0 / 0.4986 GB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.106e-06/0.4666, allocations: 0 / 0.4986 GB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.4666, allocations: 0 / 0.4986 GB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.4666, allocations: 4 kB / 0.4986 GB, free: 0.7617 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001664/0.4668, allocations: 169.9 kB / 0.4987 GB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.04e-05/0.4669, allocations: 93 kB / 0.4988 GB, free: 472 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.4669, allocations: 0 / 0.4988 GB, free: 472 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.467, allocations: 4 kB / 0.4988 GB, free: 468 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.206e-05/0.4671, allocations: 0 / 0.4988 GB, free: 468 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-06/0.4671, allocations: 4 kB / 0.4988 GB, free: 464 kB / 346.7 MB Notification: Performance of sorting global known variables: time 9.099e-05/0.4672, allocations: 112 kB / 0.4989 GB, free: 352 kB / 346.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.4672, allocations: 4 kB / 0.4989 GB, free: 348 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003008/0.4675, allocations: 4 kB / 0.499 GB, free: 344 kB / 346.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.0001032/0.4676, allocations: 91.25 kB / 0.499 GB, free: 244 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.724e-05/0.4677, allocations: 11.94 kB / 0.499 GB, free: 232 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.4678, allocations: 4 kB / 0.4991 GB, free: 228 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.235e-05/0.4678, allocations: 3.938 kB / 0.4991 GB, free: 224 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.4681, allocations: 27.56 kB / 0.4991 GB, free: 200 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000317/0.4685, allocations: 126.5 kB / 0.4992 GB, free: 36 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.4688, allocations: 0.7001 MB / 0.4999 GB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.498e-05/0.4688, allocations: 7.438 kB / 0.4999 GB, free: 15.3 MB / 362.7 MB Notification: Performance of SimCode: time 6.71e-07/0.4689, allocations: 4 kB / 0.4999 GB, free: 15.3 MB / 362.7 MB Notification: Performance of Templates: time 0.002728/0.4716, allocations: 0.7101 MB / 0.5006 GB, free: 14.59 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