Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 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 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 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_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToTrigger.y|sample.y|triggeredSampler.y",fileNamePrefix="Modelica_Synchronous_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_Modelica_Synchronous.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.002056/0.002055, allocations: 106.1 kB / 16.45 MB, free: 6.426 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.002248/0.002248, allocations: 190 kB / 17.39 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.823/1.823, allocations: 205.1 MB / 223.3 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07703/0.07703, allocations: 12.58 MB / 283.2 MB, free: 15.4 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003767/0.003767, allocations: 91.27 kB / 394.2 MB, free: 45.33 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.1533, allocations: 49.4 MB / 443.6 MB, free: 480 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002891/0.1562, allocations: 1.622 MB / 445.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009534/0.1572, allocations: 0.554 MB / 445.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.278e-05/0.1573, allocations: 4 kB / 445.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.907e-05/0.1574, allocations: 7.875 kB / 445.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001427/0.1575, allocations: 19.86 kB / 445.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003036/0.1578, allocations: 51.81 kB / 445.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.158, allocations: 59.84 kB / 445.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.1581, allocations: 36.11 kB / 445.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.584e-05/0.1582, allocations: 31.86 kB / 446 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.717e-05/0.1583, allocations: 23.86 kB / 446 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.268e-05/0.1583, allocations: 12 kB / 446 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.458e-05/0.1583, allocations: 4 kB / 446 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.593e-05/0.1584, allocations: 15.92 kB / 446 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.453e-05/0.1584, allocations: 43.72 kB / 446.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.1586, allocations: 83.66 kB / 446.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1586, allocations: 0 / 446.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1586, allocations: 0 / 446.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.1586, allocations: 0 / 446.1 MB, free: 13.89 MB / 334.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.0005356/0.1592, allocations: 391 kB / 446.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.1592, allocations: 12.03 kB / 446.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.043e-05/0.1593, allocations: 12.84 kB / 446.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002653/0.1595, allocations: 196.1 kB / 446.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.1596, allocations: 384 / 446.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.096e-05/0.1596, allocations: 12.38 kB / 446.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003203/0.1599, allocations: 157.2 kB / 446.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.1599, allocations: 0 / 446.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.16, allocations: 4 kB / 446.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.16, allocations: 0 / 446.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.1601, allocations: 27.98 kB / 446.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006042/0.1607, allocations: 321.5 kB / 447.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002393/0.161, allocations: 150.2 kB / 447.4 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.112e-05/0.1611, allocations: 37.73 kB / 447.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.1611, allocations: 3.984 kB / 447.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001209/0.1612, allocations: 63.41 kB / 447.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.1612, allocations: 0 / 447.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003362/0.1616, allocations: 117.7 kB / 447.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/0.1617, allocations: 89.09 kB / 447.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.1618, allocations: 133.8 kB / 447.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.1618, allocations: 29.7 kB / 447.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.102e-05/0.1619, allocations: 96.12 kB / 447.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.099e-05/0.1619, allocations: 15.89 kB / 448 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.806e-05/0.1619, allocations: 29.7 kB / 448 MB, free: 11.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1621, allocations: 318.8 kB / 448.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.629e-05/0.1621, allocations: 27.92 kB / 448.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.731e-05/0.1622, allocations: 69.06 kB / 448.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000133/0.1624, allocations: 81.08 kB / 448.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1624, allocations: 0 / 448.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000198/0.1626, allocations: 113.4 kB / 448.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.1626, allocations: 8 kB / 448.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.1626, allocations: 3.984 kB / 448.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.1626, allocations: 4 kB / 448.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.955e-05/0.1627, allocations: 8 kB / 448.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.1627, allocations: 7.938 kB / 448.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.707e-05/0.1628, allocations: 19.98 kB / 448.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.387e-06/0.1628, allocations: 8 kB / 448.6 MB, free: 11.06 MB / 334.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 9.795e-05/0.1629, allocations: 125.8 kB / 448.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.111e-05/0.163, allocations: 49.59 kB / 448.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.874e-05/0.163, allocations: 16.25 kB / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1631, allocations: 4 kB / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.1631, allocations: 320 / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.1631, allocations: 3.984 kB / 448.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003956/0.1635, allocations: 354.5 kB / 449.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1635, allocations: 0 / 449.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.601e-05/0.1636, allocations: 11.94 kB / 449.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1636, allocations: 0 / 449.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.1636, allocations: 3.984 kB / 449.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-06/0.1636, allocations: 0 / 449.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.1636, allocations: 7.938 kB / 449.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002392/0.1638, allocations: 200.2 kB / 449.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.679e-05/0.1639, allocations: 96.91 kB / 449.5 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.164, allocations: 11.98 kB / 449.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.665e-05/0.164, allocations: 0 / 449.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.716e-05/0.1641, allocations: 7.938 kB / 449.5 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.1641, allocations: 4 kB / 449.5 MB, free: 10.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.284e-05/0.1642, allocations: 111.9 kB / 449.6 MB, free: 9.965 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1642, allocations: 3.938 kB / 449.6 MB, free: 9.961 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002432/0.1645, allocations: 16 kB / 449.7 MB, free: 9.945 MB / 334.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.0001193/0.1646, allocations: 99.19 kB / 449.8 MB, free: 9.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000223/0.1648, allocations: 75.83 kB / 449.8 MB, free: 9.766 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1648, allocations: 0 / 449.8 MB, free: 9.766 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.924e-05/0.1649, allocations: 16 kB / 449.8 MB, free: 9.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.1652, allocations: 32.17 kB / 449.9 MB, free: 9.719 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003819/0.1656, allocations: 200.6 kB / 450.1 MB, free: 9.492 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.1659, allocations: 0.6963 MB / 450.8 MB, free: 8.77 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.993e-05/0.1659, allocations: 8.656 kB / 450.8 MB, free: 8.762 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.646e-05/0.166, allocations: 23.42 kB / 450.8 MB, free: 8.738 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.166, allocations: 0 / 450.8 MB, free: 8.738 MB / 334.1 MB Notification: Performance of Templates: time 0.003663/0.1697, allocations: 0.8172 MB / 451.6 MB, free: 7.922 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches