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/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.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.00264/0.00264, 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.662/2.662, 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.001313/0.001313, allocations: 86.36 kB / 272 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1294/0.1294, allocations: 12.19 MB / 332.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006148/0.0006148, allocations: 16 kB / 392.7 MB, free: 67.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.173, allocations: 50.29 MB / 443 MB, free: 16.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5783/0.7514, allocations: 78.82 MB / 0.5096 GB, free: 13.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003436/0.7518, allocations: 79.38 kB / 0.5097 GB, free: 13.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008398/0.7602, allocations: 2.194 MB / 0.5118 GB, free: 12.26 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.067e-06/0.7603, allocations: 0 / 0.5118 GB, free: 12.26 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.7603, allocations: 3.875 kB / 0.5118 GB, free: 12.26 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.000505/0.7608, allocations: 389 kB / 0.5122 GB, free: 11.87 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.501e-05/0.7609, allocations: 7.625 kB / 0.5122 GB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.512e-05/0.7609, allocations: 12.72 kB / 0.5122 GB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002352/0.7612, allocations: 203.8 kB / 0.5124 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.7612, allocations: 4.219 kB / 0.5124 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.435e-05/0.7613, allocations: 7.469 kB / 0.5124 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004498/0.7617, allocations: 160.4 kB / 0.5126 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.7617, allocations: 192 / 0.5126 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.7618, allocations: 3.938 kB / 0.5126 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.864e-06/0.7618, allocations: 0 / 0.5126 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001612/0.762, allocations: 34.7 kB / 0.5126 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005555/0.7625, allocations: 305.6 kB / 0.5129 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/0.7628, allocations: 164.3 kB / 0.5131 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.763, allocations: 35.77 kB / 0.5131 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.61e-05/0.763, allocations: 3.516 kB / 0.5131 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001792/0.7632, allocations: 69.2 kB / 0.5132 GB, free: 10.99 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.933e-06/0.7632, allocations: 0 / 0.5132 GB, free: 10.99 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004336/0.7637, allocations: 125.8 kB / 0.5133 GB, free: 10.94 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.452e-05/0.7637, allocations: 85.16 kB / 0.5134 GB, free: 10.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.7639, allocations: 146.9 kB / 0.5135 GB, free: 10.73 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.7639, allocations: 25.7 kB / 0.5135 GB, free: 10.7 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.062e-05/0.764, allocations: 95.47 kB / 0.5136 GB, free: 10.61 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.727e-05/0.764, allocations: 18.91 kB / 0.5136 GB, free: 10.6 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-06/0.764, allocations: 4 kB / 0.5137 GB, free: 10.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.098e-05/0.7641, allocations: 322.6 kB / 0.514 GB, free: 10.27 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.12e-05/0.7642, allocations: 29.92 kB / 0.514 GB, free: 10.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001052/0.7643, allocations: 59.67 kB / 0.514 GB, free: 10.21 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.7646, allocations: 86.33 kB / 0.5141 GB, free: 10.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.7646, allocations: 3.812 kB / 0.5141 GB, free: 10.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002899/0.7649, allocations: 122.4 kB / 0.5142 GB, free: 10.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.7649, allocations: 3.781 kB / 0.5143 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.7649, allocations: 0 / 0.5143 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/0.765, allocations: 7.859 kB / 0.5143 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.7651, allocations: 19.45 kB / 0.5143 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.7651, allocations: 160 / 0.5143 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.773e-05/0.7652, allocations: 11.31 kB / 0.5143 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.307e-05/0.7652, allocations: 3.875 kB / 0.5143 GB, free: 10.08 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.0001071/0.7654, allocations: 133.9 kB / 0.5144 GB, free: 9.957 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.307e-05/0.7655, allocations: 48.11 kB / 0.5145 GB, free: 9.918 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.926e-05/0.7655, allocations: 17.77 kB / 0.5145 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.7655, allocations: 3.781 kB / 0.5145 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.7655, allocations: 0 / 0.5145 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.7656, allocations: 0 / 0.5145 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003995/0.766, allocations: 345.5 kB / 0.5148 GB, free: 9.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.766, allocations: 384 / 0.5148 GB, free: 9.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.228e-05/0.7661, allocations: 19.48 kB / 0.5148 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.7661, allocations: 3.844 kB / 0.5148 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.7661, allocations: 7.438 kB / 0.5148 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.7661, allocations: 0 / 0.5148 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.7661, allocations: 3.719 kB / 0.5148 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000262/0.7664, allocations: 207.9 kB / 0.515 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.881e-05/0.7665, allocations: 99.34 kB / 0.5151 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.966e-05/0.7665, allocations: 0 / 0.5151 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.7666, allocations: 7.188 kB / 0.5151 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.117e-05/0.7667, allocations: 15.58 kB / 0.5152 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.7667, allocations: 0 / 0.5152 GB, free: 9.293 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.255e-05/0.7668, allocations: 109.6 kB / 0.5153 GB, free: 9.211 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.7668, allocations: 0 / 0.5153 GB, free: 9.211 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004015/0.7672, allocations: 15.38 kB / 0.5153 GB, free: 9.211 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.0001221/0.7674, allocations: 103.4 kB / 0.5154 GB, free: 9.117 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002488/0.7676, allocations: 73.12 kB / 0.5155 GB, free: 9.098 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.7676, allocations: 0 / 0.5155 GB, free: 9.098 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.985e-05/0.7677, allocations: 22.33 kB / 0.5155 GB, free: 9.094 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005814/0.7683, allocations: 31.14 kB / 0.5155 GB, free: 9.086 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005619/0.7689, allocations: 258.9 kB / 0.5157 GB, free: 8.859 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001975/0.7691, allocations: 0.6956 MB / 0.5164 GB, free: 8.156 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.017e-05/0.7692, allocations: 15.3 kB / 0.5164 GB, free: 8.145 MB / 330.7 MB Notification: Performance of SimCode: time 6.71e-07/0.7692, allocations: 0 / 0.5164 GB, free: 8.145 MB / 330.7 MB Notification: Performance of Templates: time 0.00334/0.7725, allocations: 1.049 MB / 0.5175 GB, free: 7.613 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