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.001504/0.001504, allocations: 186.2 kB / 16.44 MB, free: 5.672 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.938/1.938, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.001101/0.0011, allocations: 89.83 kB / 270.9 MB, free: 8.375 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.6 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005249/0.0005249, allocations: 19.98 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08758/0.08813, allocations: 50.36 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4616/0.5498, allocations: 78.83 MB / 0.509 GB, free: 12.74 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.5501, allocations: 79.59 kB / 0.509 GB, free: 12.74 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006157/0.5563, allocations: 1.623 MB / 0.5106 GB, free: 12.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5564, allocations: 0 / 0.5106 GB, free: 12.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.5564, allocations: 7.906 kB / 0.5106 GB, free: 12.09 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004485/0.5568, allocations: 395.7 kB / 0.511 GB, free: 11.69 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.5569, allocations: 7.688 kB / 0.511 GB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.494e-05/0.5569, allocations: 11.69 kB / 0.511 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.5572, allocations: 197.7 kB / 0.5112 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.5572, allocations: 7.531 kB / 0.5112 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/0.5572, allocations: 3.875 kB / 0.5112 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004335/0.5577, allocations: 137.5 kB / 0.5114 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.5577, allocations: 3.938 kB / 0.5114 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.5577, allocations: 3.875 kB / 0.5114 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.5577, allocations: 0 / 0.5114 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001809/0.5579, allocations: 49.5 kB / 0.5114 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005504/0.5585, allocations: 302.4 kB / 0.5117 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002661/0.5588, allocations: 163.5 kB / 0.5119 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.049e-05/0.5588, allocations: 3.984 kB / 0.5119 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001573/0.559, allocations: 62.25 kB / 0.5119 GB, free: 10.85 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 3.496e-06/0.559, allocations: 0 / 0.5119 GB, free: 10.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004462/0.5595, allocations: 129.3 kB / 0.512 GB, free: 10.79 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.925e-05/0.5595, allocations: 84.08 kB / 0.5121 GB, free: 10.7 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.5597, allocations: 130.3 kB / 0.5122 GB, free: 10.59 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.5597, allocations: 29.61 kB / 0.5123 GB, free: 10.56 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.535e-05/0.5598, allocations: 158.2 kB / 0.5124 GB, free: 10.41 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.751e-05/0.5598, allocations: 23.48 kB / 0.5125 GB, free: 10.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.614e-06/0.5598, allocations: 3.812 kB / 0.5125 GB, free: 10.39 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.912e-05/0.5599, allocations: 314.8 kB / 0.5128 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.819e-05/0.56, allocations: 26.33 kB / 0.5128 GB, free: 10.07 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.5601, allocations: 56.23 kB / 0.5128 GB, free: 10.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001109/0.5603, allocations: 33.61 kB / 0.5129 GB, free: 10.01 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.5603, allocations: 0 / 0.5129 GB, free: 10.01 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002908/0.5606, allocations: 109.1 kB / 0.513 GB, free: 9.965 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.5606, allocations: 7.812 kB / 0.513 GB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.5606, allocations: 3.875 kB / 0.513 GB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.5606, allocations: 0 / 0.513 GB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.5608, allocations: 22.95 kB / 0.513 GB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.5608, allocations: 3.344 kB / 0.513 GB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.701e-05/0.5609, allocations: 11.77 kB / 0.513 GB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.5609, allocations: 7.641 kB / 0.513 GB, free: 9.941 MB / 330.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 () * Number of clocked states: 1 (clockToTrigger.y2) * 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.0001091/0.561, allocations: 128.6 kB / 0.5131 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.383e-05/0.5611, allocations: 64.75 kB / 0.5132 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.318e-05/0.5612, allocations: 14.25 kB / 0.5132 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.5612, allocations: 0 / 0.5132 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.5612, allocations: 0 / 0.5132 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.5612, allocations: 3.875 kB / 0.5132 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000458/0.5617, allocations: 350.2 kB / 0.5136 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.5617, allocations: 0 / 0.5136 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.469e-05/0.5618, allocations: 23.61 kB / 0.5136 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.5618, allocations: 0 / 0.5136 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.5619, allocations: 0 / 0.5136 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.5619, allocations: 4.188 kB / 0.5136 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.5619, allocations: 3.953 kB / 0.5136 GB, free: 9.43 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002887/0.5622, allocations: 217.4 kB / 0.5138 GB, free: 9.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.594e-05/0.5623, allocations: 100.4 kB / 0.5139 GB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.925e-05/0.5623, allocations: 0 / 0.5139 GB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.5624, allocations: 15.06 kB / 0.5139 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.5625, allocations: 3.812 kB / 0.5139 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.5625, allocations: 0 / 0.5139 GB, free: 9.137 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.542e-05/0.5626, allocations: 113.3 kB / 0.514 GB, free: 9.055 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5626, allocations: 0 / 0.514 GB, free: 9.055 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000324/0.563, allocations: 15.56 kB / 0.514 GB, free: 9.051 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: 5 (clockToTrigger.y2,clockToTrigger.y,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Number of clocked states: 1 (clockToTrigger.y2) * 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.0001136/0.5631, allocations: 104.7 kB / 0.5141 GB, free: 8.957 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002617/0.5633, allocations: 68.28 kB / 0.5142 GB, free: 8.941 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5634, allocations: 0 / 0.5142 GB, free: 8.941 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.532e-05/0.5635, allocations: 20.52 kB / 0.5142 GB, free: 8.938 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003275/0.5638, allocations: 39.17 kB / 0.5143 GB, free: 8.922 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004775/0.5643, allocations: 251.5 kB / 0.5145 GB, free: 8.699 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001605/0.5645, allocations: 0.7074 MB / 0.5152 GB, free: 7.984 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.997e-05/0.5645, allocations: 14.09 kB / 0.5152 GB, free: 7.977 MB / 330.7 MB Notification: Performance of SimCode: time 8.02e-07/0.5646, allocations: 0 / 0.5152 GB, free: 7.977 MB / 330.7 MB Notification: Performance of Templates: time 0.003045/0.5676, allocations: 1.007 MB / 0.5162 GB, free: 7.477 MB / 330.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