Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToTrigger.y|sample.y|triggeredSampler.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToTrigger.y|sample.y|triggeredSampler.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001515/0.001515, allocations: 181 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 2.017/2.017, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001094/0.001094, allocations: 86.72 kB / 267.6 MB, free: 14.04 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.09786/0.09786, allocations: 12.6 MB / 328.2 MB, free: 11.15 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.116e-05/3.127e-05, allocations: 4 kB / 386 MB, free: 1.281 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3044, allocations: 50.36 MB / 436.4 MB, free: 14.14 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1402/0.4447, allocations: 78.75 MB / 0.503 GB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.445, allocations: 79.95 kB / 0.5031 GB, free: 15.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006822/0.4519, allocations: 1.618 MB / 0.5047 GB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4519, allocations: 7.938 kB / 0.5047 GB, free: 13.58 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.352e-05/0.4519, allocations: 0 / 0.5047 GB, free: 13.58 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004837/0.4524, allocations: 370.3 kB / 0.505 GB, free: 13.17 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.4525, allocations: 8.031 kB / 0.505 GB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.323e-05/0.4526, allocations: 19.89 kB / 0.5051 GB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002451/0.4528, allocations: 194.8 kB / 0.5053 GB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.4529, allocations: 8 kB / 0.5053 GB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.222e-05/0.4529, allocations: 4 kB / 0.5053 GB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003589/0.4533, allocations: 133 kB / 0.5054 GB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.4533, allocations: 4 kB / 0.5054 GB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.4533, allocations: 0 / 0.5054 GB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.4533, allocations: 4 kB / 0.5054 GB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/0.4534, allocations: 27.97 kB / 0.5054 GB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006112/0.4541, allocations: 306.8 kB / 0.5057 GB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.4544, allocations: 154.3 kB / 0.5059 GB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.286e-05/0.4545, allocations: 37.83 kB / 0.5059 GB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.4545, allocations: 3.938 kB / 0.5059 GB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001228/0.4546, allocations: 55.41 kB / 0.506 GB, free: 12.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 3.056e-06/0.4547, allocations: 4 kB / 0.506 GB, free: 12.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002797/0.4549, allocations: 89.52 kB / 0.506 GB, free: 11.97 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/0.455, allocations: 81.11 kB / 0.5061 GB, free: 11.87 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001666/0.4552, allocations: 132.7 kB / 0.5063 GB, free: 11.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.4552, allocations: 25.7 kB / 0.5063 GB, free: 11.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.685e-05/0.4553, allocations: 162.5 kB / 0.5064 GB, free: 11.54 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.937e-05/0.4554, allocations: 15.8 kB / 0.5064 GB, free: 11.53 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-06/0.4554, allocations: 0 / 0.5064 GB, free: 11.53 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.4555, allocations: 322.8 kB / 0.5068 GB, free: 11.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.504e-05/0.4556, allocations: 12 kB / 0.5068 GB, free: 11.19 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.332e-05/0.4557, allocations: 57.14 kB / 0.5068 GB, free: 11.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.765e-05/0.4558, allocations: 27.94 kB / 0.5068 GB, free: 11.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.4558, allocations: 0 / 0.5068 GB, free: 11.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002435/0.4561, allocations: 101.5 kB / 0.5069 GB, free: 10.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.4561, allocations: 8 kB / 0.507 GB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.4561, allocations: 3.938 kB / 0.507 GB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.4562, allocations: 4 kB / 0.507 GB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.4563, allocations: 11.98 kB / 0.507 GB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.4563, allocations: 8.156 kB / 0.507 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.828e-05/0.4565, allocations: 7.953 kB / 0.507 GB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.4565, allocations: 8 kB / 0.507 GB, free: 10.93 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,clockToTrigger.y,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001496/0.4566, allocations: 116.8 kB / 0.5071 GB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.4568, allocations: 53.61 kB / 0.5072 GB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.851e-05/0.4568, allocations: 16.08 kB / 0.5072 GB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.4568, allocations: 0 / 0.5072 GB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.4569, allocations: 128 / 0.5072 GB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.4569, allocations: 4 kB / 0.5072 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004492/0.4573, allocations: 342.5 kB / 0.5075 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.4574, allocations: 0 / 0.5075 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.4575, allocations: 11.98 kB / 0.5075 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.4575, allocations: 0 / 0.5075 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.4575, allocations: 4 kB / 0.5075 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.4575, allocations: 0 / 0.5075 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.356e-06/0.4575, allocations: 3.953 kB / 0.5075 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002542/0.4578, allocations: 213.8 kB / 0.5077 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.858e-05/0.4579, allocations: 96.94 kB / 0.5078 GB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.458, allocations: 4.094 kB / 0.5078 GB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.4581, allocations: 11.94 kB / 0.5078 GB, free: 9.961 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.415e-05/0.4581, allocations: 7.922 kB / 0.5078 GB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.4582, allocations: 4 kB / 0.5078 GB, free: 9.949 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001093/0.4583, allocations: 112 kB / 0.508 GB, free: 9.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.4583, allocations: 0 / 0.508 GB, free: 9.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003162/0.4586, allocations: 16 kB / 0.508 GB, free: 9.824 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: 5 (clockToTrigger.y2,clockToTrigger.y,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001298/0.4588, allocations: 99.23 kB / 0.5081 GB, free: 9.719 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001917/0.459, allocations: 51.94 kB / 0.5081 GB, free: 9.668 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.459, allocations: 0 / 0.5081 GB, free: 9.668 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.098e-05/0.4591, allocations: 19.94 kB / 0.5081 GB, free: 9.648 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.4594, allocations: 24.33 kB / 0.5082 GB, free: 9.625 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004102/0.4598, allocations: 159.7 kB / 0.5083 GB, free: 9.434 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003135/0.4601, allocations: 0.7043 MB / 0.509 GB, free: 8.703 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.953e-05/0.4602, allocations: 15.44 kB / 0.509 GB, free: 8.688 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/0.4602, allocations: 0 / 0.509 GB, free: 8.688 MB / 362.7 MB Notification: Performance of Templates: time 0.003334/0.4636, allocations: 1.014 MB / 0.51 GB, free: 7.676 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches