Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007377/0.0007377, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001051/0.001789, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006859/0.0006859, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009493/0.001635, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9257/0.9257, allocations: 173.4 MB / 185.8 MB, free: 8.996 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08269/1.008, allocations: 52.5 MB / 238.3 MB, free: 4.434 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|sample1.y|triggeredSampler.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|sample1.y|triggeredSampler.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 239.6 MB, free: 3.18 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.152e-05/2.292e-05, allocations: 2.875 kB / 239.6 MB, free: 3.176 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.006681/0.006704, allocations: 1.732 MB / 241.3 MB, free: 1.438 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007633/0.007467, allocations: 0.5062 MB / 241.8 MB, free: 0.9258 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.621e-05/0.007544, allocations: 3.938 kB / 241.8 MB, free: 0.9219 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.503e-05/0.007589, allocations: 3.938 kB / 241.8 MB, free: 0.918 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.927e-05/0.007678, allocations: 19.86 kB / 241.8 MB, free: 0.8984 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/0.007904, allocations: 55.77 kB / 241.9 MB, free: 0.8438 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001106/0.008015, allocations: 67.77 kB / 241.9 MB, free: 0.7773 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.6e-05/0.008101, allocations: 16.22 kB / 242 MB, free: 0.7578 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.008211, allocations: 47.83 kB / 242 MB, free: 0.7109 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.977e-05/0.00827, allocations: 23.91 kB / 242 MB, free: 0.6875 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.008293, allocations: 4 kB / 242 MB, free: 0.6836 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.365e-05/0.008307, allocations: 8 kB / 242 MB, free: 0.6758 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.284e-05/0.00835, allocations: 15.92 kB / 242.1 MB, free: 0.6602 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.374e-05/0.008394, allocations: 15.94 kB / 242.1 MB, free: 0.6445 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000124/0.008518, allocations: 51.72 kB / 242.1 MB, free: 0.5938 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.356e-05/0.008531, allocations: 4 kB / 242.1 MB, free: 0.5898 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.008532, allocations: 0 / 242.1 MB, free: 0.5898 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.008549, allocations: 0 / 242.1 MB, free: 0.5898 MB / 234.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.0004153/0.008964, allocations: 316.2 kB / 242.4 MB, free: 264 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.008996, allocations: 12.03 kB / 242.4 MB, free: 252 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.664e-05/0.009032, allocations: 16.92 kB / 242.5 MB, free: 236 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.009211, allocations: 145.5 kB / 242.6 MB, free: 64 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.009221, allocations: 4.375 kB / 242.6 MB, free: 60 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.009234, allocations: 8.375 kB / 242.6 MB, free: 52 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003267/0.0125, allocations: 134.2 kB / 242.7 MB, free: 15.9 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.01251, allocations: 4.125 kB / 242.8 MB, free: 15.89 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.015e-06/0.01252, allocations: 384 / 242.8 MB, free: 15.89 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.01253, allocations: 3.938 kB / 242.8 MB, free: 15.89 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.094e-05/0.01257, allocations: 15.92 kB / 242.8 MB, free: 15.88 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002968/0.01286, allocations: 177.1 kB / 242.9 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001265/0.01299, allocations: 61.08 kB / 243 MB, free: 15.61 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.772e-05/0.01302, allocations: 21.78 kB / 243 MB, free: 15.58 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.01304, allocations: 4 kB / 243 MB, free: 15.57 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.496e-05/0.01312, allocations: 63.38 kB / 243.1 MB, free: 15.5 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/0.01313, allocations: 0 / 243.1 MB, free: 15.5 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001437/0.01327, allocations: 69.61 kB / 243.2 MB, free: 15.43 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.01333, allocations: 85.05 kB / 243.2 MB, free: 15.32 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.152e-05/0.01341, allocations: 137.6 kB / 243.4 MB, free: 15.18 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.01342, allocations: 33.7 kB / 243.4 MB, free: 15.14 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.238e-05/0.01345, allocations: 88.12 kB / 243.5 MB, free: 15.05 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.01347, allocations: 15.89 kB / 243.5 MB, free: 15.04 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.779e-05/0.01351, allocations: 25.7 kB / 243.5 MB, free: 15 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.043e-05/0.01359, allocations: 318.8 kB / 243.8 MB, free: 14.68 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.543e-05/0.01361, allocations: 8 kB / 243.9 MB, free: 14.68 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.811e-05/0.01363, allocations: 34.5 kB / 243.9 MB, free: 14.63 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.945e-05/0.01368, allocations: 38.48 kB / 243.9 MB, free: 14.59 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.01369, allocations: 256 / 243.9 MB, free: 14.59 MB / 250.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 8.32e-05/0.01377, allocations: 61.69 kB / 244 MB, free: 14.52 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.01378, allocations: 11.94 kB / 244 MB, free: 14.51 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.01379, allocations: 4 kB / 244 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.0138, allocations: 3.984 kB / 244 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.615e-05/0.01386, allocations: 12 kB / 244 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.665e-06/0.01387, allocations: 0 / 244 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.908e-05/0.0139, allocations: 7.953 kB / 244 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.0139, allocations: 0 / 244 MB, free: 14.48 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler.y,$PRE.triggeredSampler.y,clockToTrigger.y3,$PRE.clockToTrigger.y3,triggeredSampler.trigger,$whenCondition1,$CLKPRE.clockToTrigger.y2,clockToTrigger.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.01e-05/0.01397, allocations: 132 kB / 244.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.135e-05/0.01401, allocations: 45.62 kB / 244.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.244e-05/0.01405, allocations: 12.47 kB / 244.2 MB, free: 14.27 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.01405, allocations: 4 kB / 244.2 MB, free: 14.27 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.01405, allocations: 4 kB / 244.2 MB, free: 14.27 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.01406, allocations: 3.984 kB / 244.2 MB, free: 14.26 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001863/0.01424, allocations: 214.6 kB / 244.4 MB, free: 14.03 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.01424, allocations: 0 / 244.4 MB, free: 14.03 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.327e-05/0.01429, allocations: 19.92 kB / 244.5 MB, free: 14.01 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.049e-05/0.01432, allocations: 11.95 kB / 244.5 MB, free: 14 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.01432, allocations: 4 kB / 244.5 MB, free: 13.99 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.01433, allocations: 0 / 244.5 MB, free: 13.99 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.01433, allocations: 0 / 244.5 MB, free: 13.99 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.01433, allocations: 7.969 kB / 244.5 MB, free: 13.98 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.668e-05/0.01442, allocations: 160.3 kB / 244.6 MB, free: 13.81 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.643e-05/0.01443, allocations: 0 / 244.6 MB, free: 13.81 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.209e-05/0.01449, allocations: 4.188 kB / 244.6 MB, free: 13.8 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.3e-05/0.01451, allocations: 3.984 kB / 244.6 MB, free: 13.8 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.01452, allocations: 12 kB / 244.7 MB, free: 13.79 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.744e-05/0.01455, allocations: 24.83 kB / 244.7 MB, free: 13.76 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01455, allocations: 0 / 244.7 MB, free: 13.76 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001798/0.01473, allocations: 15.95 kB / 244.7 MB, free: 13.75 MB / 250.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,triggeredSampler.trigger,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.366e-05/0.01482, allocations: 88.34 kB / 244.8 MB, free: 13.65 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.1e-05/0.0149, allocations: 40.78 kB / 244.8 MB, free: 13.61 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.0149, allocations: 0 / 244.8 MB, free: 13.61 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.64e-05/0.01493, allocations: 24.78 kB / 244.8 MB, free: 13.58 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003227/0.01816, allocations: 25.42 kB / 244.9 MB, free: 13.55 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007481/0.01891, allocations: 202.6 kB / 245.1 MB, free: 13.32 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.084e-05/0.01895, allocations: 75.27 kB / 245.1 MB, free: 13.23 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.161e-05/0.01898, allocations: 7.953 kB / 245.1 MB, free: 13.22 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.532e-05/0.01903, allocations: 59.5 kB / 245.2 MB, free: 13.16 MB / 250.7 MB Notification: Performance of SimCode: time 9.91e-07/0.01903, allocations: 0 / 245.2 MB, free: 13.16 MB / 250.7 MB Notification: Performance of Templates: time 0.003347/0.02238, allocations: 0.8799 MB / 246.1 MB, free: 12.31 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.452976819127798]