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.0009637/0.0009634, allocations: 92.84 kB / 16.65 MB, free: 6.586 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.001126/0.001126, allocations: 186.2 kB / 17.57 MB, free: 6.199 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.481/1.481, allocations: 223.3 MB / 241.6 MB, free: 224 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003114/0.0003111, allocations: 7.938 kB / 301.4 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1525, allocations: 50.4 MB / 351.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002975/0.1555, allocations: 1.354 MB / 353.2 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.1567, allocations: 0.4908 MB / 353.7 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.1569, allocations: 0 / 353.7 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.372e-05/0.157, allocations: 3.938 kB / 353.7 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.1571, allocations: 11.92 kB / 353.7 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003498/0.1575, allocations: 55.83 kB / 353.7 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001268/0.1576, allocations: 55.8 kB / 353.8 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.1578, allocations: 28.19 kB / 353.8 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.1579, allocations: 27.86 kB / 353.9 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.126e-05/0.158, allocations: 23.86 kB / 353.9 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.158, allocations: 3.938 kB / 353.9 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.566e-05/0.158, allocations: 4 kB / 353.9 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.687e-05/0.1581, allocations: 23.84 kB / 353.9 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.764e-05/0.1582, allocations: 61.44 kB / 354 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001297/0.1583, allocations: 63.7 kB / 354 MB, free: 1.496 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1583, allocations: 4 kB / 354 MB, free: 1.492 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.1583, allocations: 0 / 354 MB, free: 1.492 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.1584, allocations: 0 / 354 MB, free: 1.492 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.0007175/0.1591, allocations: 380.5 kB / 354.4 MB, free: 1.074 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.1591, allocations: 8.031 kB / 354.4 MB, free: 1.066 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.583e-05/0.1592, allocations: 12.75 kB / 354.4 MB, free: 1.055 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000216/0.1594, allocations: 196.2 kB / 354.6 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.1594, allocations: 12.31 kB / 354.6 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.1595, allocations: 8.375 kB / 354.6 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003657/0.1598, allocations: 149.3 kB / 354.8 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.1598, allocations: 0 / 354.8 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.1599, allocations: 0 / 354.8 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.1599, allocations: 4 kB / 354.8 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.16, allocations: 39.97 kB / 354.8 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005582/0.1606, allocations: 309.5 kB / 355.1 MB, free: 248 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003401/0.1609, allocations: 158.3 kB / 355.3 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.161, allocations: 45.73 kB / 355.3 MB, free: 0 / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.297e-05/0.1611, allocations: 0 / 355.3 MB, free: 0 / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.1614, allocations: 63.52 kB / 355.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.653e-06/0.1614, allocations: 3.938 kB / 355.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004322/0.1618, allocations: 125.7 kB / 355.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.387e-05/0.1619, allocations: 85.11 kB / 355.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.1621, allocations: 148.2 kB / 355.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.1621, allocations: 29.7 kB / 355.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.768e-05/0.1622, allocations: 92.05 kB / 355.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.94e-05/0.1622, allocations: 19.86 kB / 355.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.165e-05/0.1623, allocations: 17.72 kB / 355.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.1625, allocations: 326.8 kB / 356.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.722e-05/0.1626, allocations: 19.98 kB / 356.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.281e-05/0.1627, allocations: 69.08 kB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001639/0.1628, allocations: 85.33 kB / 356.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1629, allocations: 4 kB / 356.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002098/0.1631, allocations: 113.5 kB / 356.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.1631, allocations: 8 kB / 356.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.1631, allocations: 4.156 kB / 356.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.1631, allocations: 4 kB / 356.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.959e-05/0.1632, allocations: 15.94 kB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.1633, allocations: 4 kB / 356.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.789e-05/0.1633, allocations: 11.89 kB / 356.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.1633, allocations: 7.938 kB / 356.6 MB, free: 14.65 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.0001265/0.1635, allocations: 129.7 kB / 356.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.171e-05/0.1636, allocations: 57.53 kB / 356.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.709e-05/0.1636, allocations: 12.31 kB / 356.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1636, allocations: 7.984 kB / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.1636, allocations: 0 / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1637, allocations: 0 / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004256/0.1641, allocations: 350.5 kB / 357.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1641, allocations: 0 / 357.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.903e-05/0.1642, allocations: 11.94 kB / 357.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1642, allocations: 7.938 kB / 357.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.1642, allocations: 7.984 kB / 357.1 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.1642, allocations: 0 / 357.1 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.1642, allocations: 3.938 kB / 357.1 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002389/0.1645, allocations: 204.1 kB / 357.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.459e-05/0.1645, allocations: 105 kB / 357.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.1646, allocations: 0 / 357.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.3e-05/0.1646, allocations: 4 kB / 357.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.737e-05/0.1647, allocations: 7.938 kB / 357.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.1647, allocations: 7.984 kB / 357.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.032e-05/0.1648, allocations: 109.8 kB / 357.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1648, allocations: 0 / 357.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002489/0.1651, allocations: 12 kB / 357.6 MB, free: 13.52 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.0001688/0.1652, allocations: 107.2 kB / 357.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002172/0.1655, allocations: 71.97 kB / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1655, allocations: 0 / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.704e-05/0.1655, allocations: 20.12 kB / 357.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003782/0.1659, allocations: 31.2 kB / 357.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005267/0.1665, allocations: 246.1 kB / 358 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.1668, allocations: 0.7043 MB / 358.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.388e-05/0.1669, allocations: 12.66 kB / 358.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.852e-05/0.1669, allocations: 11.53 kB / 358.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1669, allocations: 3.938 kB / 358.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of Templates: time 0.003813/0.1708, allocations: 0.7204 MB / 359.5 MB, free: 11.55 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