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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|sample1.y|triggeredSampler.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001378/0.001379, allocations: 112.4 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001532/0.001532, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 54.45 kB / 300.6 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.127, allocations: 49.44 MB / 350.1 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003339/0.1304, allocations: 1.621 MB / 351.7 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009157/0.1314, allocations: 0.5142 MB / 352.2 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.1315, allocations: 0 / 352.2 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.386e-05/0.1316, allocations: 11.86 kB / 352.2 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001427/0.1317, allocations: 11.88 kB / 352.2 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003266/0.1321, allocations: 63.81 kB / 352.3 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001199/0.1322, allocations: 55.86 kB / 352.3 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.1323, allocations: 20.2 kB / 352.4 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.463e-05/0.1324, allocations: 35.8 kB / 352.4 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.254e-05/0.1325, allocations: 31.84 kB / 352.4 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.1325, allocations: 4 kB / 352.4 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.551e-05/0.1326, allocations: 4 kB / 352.4 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.207e-05/0.1326, allocations: 23.91 kB / 352.5 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.514e-05/0.1327, allocations: 39.75 kB / 352.5 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.1328, allocations: 79.7 kB / 352.6 MB, free: 1.902 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1328, allocations: 0 / 352.6 MB, free: 1.902 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1328, allocations: 0 / 352.6 MB, free: 1.902 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.1328, allocations: 0 / 352.6 MB, free: 1.902 MB / 286.1 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.0005518/0.1334, allocations: 391.3 kB / 353 MB, free: 1.473 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.1334, allocations: 12.03 kB / 353 MB, free: 1.461 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.483e-05/0.1335, allocations: 8.844 kB / 353 MB, free: 1.453 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002256/0.1337, allocations: 204 kB / 353.2 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.1338, allocations: 4.375 kB / 353.2 MB, free: 1.211 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.974e-05/0.1338, allocations: 8.375 kB / 353.2 MB, free: 1.203 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003114/0.1341, allocations: 145.3 kB / 353.3 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.1341, allocations: 0 / 353.3 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.1341, allocations: 4 kB / 353.3 MB, free: 1.039 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.1341, allocations: 4 kB / 353.3 MB, free: 1.035 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001143/0.1343, allocations: 39.89 kB / 353.4 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005142/0.1348, allocations: 309.5 kB / 353.7 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002214/0.135, allocations: 162.2 kB / 353.8 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.024e-05/0.1351, allocations: 37.8 kB / 353.9 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.1351, allocations: 0 / 353.9 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.1353, allocations: 71.27 kB / 353.9 MB, free: 328 kB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.302e-06/0.1353, allocations: 4 kB / 353.9 MB, free: 324 kB / 286.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003244/0.1357, allocations: 113.6 kB / 354.1 MB, free: 204 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.24e-05/0.1357, allocations: 89.05 kB / 354.1 MB, free: 96 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001297/0.1359, allocations: 141.2 kB / 354.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.1359, allocations: 25.7 kB / 354.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.439e-05/0.136, allocations: 96.05 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.631e-05/0.136, allocations: 19.95 kB / 354.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-05/0.1361, allocations: 33.62 kB / 354.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1362, allocations: 322.8 kB / 354.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.38e-05/0.1363, allocations: 23.98 kB / 354.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.585e-05/0.1364, allocations: 57.14 kB / 354.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/0.1365, allocations: 81.08 kB / 354.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1365, allocations: 4 kB / 354.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002026/0.1367, allocations: 113.8 kB / 355 MB, free: 15.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.1368, allocations: 11.94 kB / 355.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1368, allocations: 64 / 355.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.1368, allocations: 8 kB / 355.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.181e-05/0.1369, allocations: 11.98 kB / 355.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.1369, allocations: 4 kB / 355.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.522e-05/0.137, allocations: 8 kB / 355.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.137, allocations: 4 kB / 355.1 MB, free: 15.07 MB / 302.1 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 (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 (12): * Single equations (assignments): 12 * 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 0.0001136/0.1371, allocations: 140.6 kB / 355.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.262e-05/0.1372, allocations: 49.86 kB / 355.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.257e-05/0.1372, allocations: 20.33 kB / 355.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1372, allocations: 0 / 355.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.1372, allocations: 7.938 kB / 355.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.1372, allocations: 0 / 355.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000389/0.1376, allocations: 346.4 kB / 355.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1377, allocations: 4 kB / 355.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.503e-05/0.1377, allocations: 11.98 kB / 355.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1377, allocations: 4 kB / 355.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.1377, allocations: 0 / 355.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1377, allocations: 0 / 355.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.1378, allocations: 7.938 kB / 355.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002213/0.138, allocations: 200.1 kB / 355.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.468e-05/0.1381, allocations: 93.09 kB / 356 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.389e-05/0.1381, allocations: 11.94 kB / 356 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.727e-05/0.1382, allocations: 4 kB / 356 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.05e-05/0.1382, allocations: 11.92 kB / 356 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.563e-06/0.1382, allocations: 0 / 356 MB, free: 14.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.02e-05/0.1383, allocations: 111.2 kB / 356.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1383, allocations: 0 / 356.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002361/0.1386, allocations: 16 kB / 356.1 MB, free: 13.95 MB / 302.1 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 0.000124/0.1387, allocations: 103.2 kB / 356.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002066/0.1389, allocations: 67.91 kB / 356.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.1389, allocations: 0 / 356.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.347e-05/0.139, allocations: 27.92 kB / 356.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.1393, allocations: 24.33 kB / 356.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000415/0.1397, allocations: 204.3 kB / 356.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002902/0.14, allocations: 0.7007 MB / 357.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.044e-05/0.1401, allocations: 12.66 kB / 357.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.265e-05/0.1401, allocations: 15.38 kB / 357.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1401, allocations: 4 kB / 357.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of Templates: time 0.003662/0.1438, allocations: 0.7815 MB / 358 MB, free: 11.96 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches