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.0009194/0.0009193, allocations: 102.1 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001096/0.001097, allocations: 182.3 kB / 16.97 MB, free: 6.879 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.246/1.246, allocations: 205.4 MB / 223.1 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0604/0.0604, allocations: 12.6 MB / 284 MB, free: 8.594 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.0006716/0.0006716, allocations: 20 kB / 345.2 MB, free: 20.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07774/0.07842, allocations: 50.38 MB / 395.6 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.001711/0.08017, allocations: 1.345 MB / 396.9 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007691/0.08096, allocations: 0.5191 MB / 397.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.4e-05/0.08107, allocations: 4 kB / 397.4 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.428e-05/0.08111, allocations: 11.92 kB / 397.4 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001193/0.08124, allocations: 11.88 kB / 397.4 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002799/0.08152, allocations: 51.83 kB / 397.5 MB, free: 472 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.082e-05/0.08162, allocations: 55.84 kB / 397.6 MB, free: 416 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.08173, allocations: 32.19 kB / 397.6 MB, free: 384 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.029e-05/0.08181, allocations: 19.88 kB / 397.6 MB, free: 364 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.286e-05/0.08187, allocations: 23.84 kB / 397.6 MB, free: 340 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.08189, allocations: 4 kB / 397.6 MB, free: 336 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.22e-05/0.08191, allocations: 4 kB / 397.6 MB, free: 332 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.012e-05/0.08196, allocations: 15.92 kB / 397.7 MB, free: 316 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.427e-05/0.08202, allocations: 61.44 kB / 397.7 MB, free: 248 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.883e-05/0.08213, allocations: 67.98 kB / 397.8 MB, free: 180 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.08214, allocations: 0 / 397.8 MB, free: 180 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.08215, allocations: 0 / 397.8 MB, free: 180 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.08215, allocations: 0 / 397.8 MB, free: 180 kB / 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.0004262/0.08259, allocations: 379.1 kB / 398.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.08263, allocations: 16.03 kB / 398.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.948e-05/0.08267, allocations: 16.75 kB / 398.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.08284, allocations: 192.1 kB / 398.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.08286, allocations: 4.375 kB / 398.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.08288, allocations: 8.359 kB / 398.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000275/0.08316, allocations: 153.3 kB / 398.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.08318, allocations: 3.938 kB / 398.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.0832, allocations: 0 / 398.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.08321, allocations: 7.938 kB / 398.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001188/0.08333, allocations: 35.97 kB / 398.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004113/0.08375, allocations: 305.6 kB / 398.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.08397, allocations: 158.2 kB / 399 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.419e-05/0.08406, allocations: 45.78 kB / 399.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.08409, allocations: 0 / 399.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001423/0.08423, allocations: 67.34 kB / 399.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.383e-06/0.08425, allocations: 3.938 kB / 399.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002943/0.08455, allocations: 129.7 kB / 399.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.08461, allocations: 81.02 kB / 399.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.08473, allocations: 145.6 kB / 399.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.08475, allocations: 25.7 kB / 399.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.798e-05/0.08481, allocations: 100.1 kB / 399.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.08483, allocations: 15.88 kB / 399.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.797e-05/0.08487, allocations: 21.7 kB / 399.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.804e-05/0.08497, allocations: 322.8 kB / 400 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.653e-05/0.08504, allocations: 23.98 kB / 400 MB, free: 13.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.397e-05/0.08513, allocations: 65.12 kB / 400.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001328/0.08527, allocations: 89.02 kB / 400.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.08528, allocations: 0 / 400.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002008/0.08548, allocations: 121.5 kB / 400.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.08551, allocations: 4 kB / 400.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.08552, allocations: 3.984 kB / 400.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.08554, allocations: 7.984 kB / 400.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.481e-05/0.08562, allocations: 12 kB / 400.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.08563, allocations: 0 / 400.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.389e-05/0.08569, allocations: 8.141 kB / 400.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.08571, allocations: 12 kB / 400.3 MB, free: 13.33 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 8.983e-05/0.08581, allocations: 133.6 kB / 400.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.914e-05/0.08588, allocations: 57.59 kB / 400.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.915e-05/0.08591, allocations: 12.31 kB / 400.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.08592, allocations: 0 / 400.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.08593, allocations: 0 / 400.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.08594, allocations: 7.984 kB / 400.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003088/0.08625, allocations: 354.7 kB / 400.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.08627, allocations: 0 / 400.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.208e-05/0.08632, allocations: 12 kB / 400.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.08633, allocations: 0 / 400.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.08635, allocations: 7.984 kB / 400.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.08636, allocations: 0 / 400.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.08636, allocations: 7.938 kB / 400.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002006/0.08657, allocations: 200.2 kB / 401.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-05/0.08663, allocations: 93 kB / 401.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.08666, allocations: 8.078 kB / 401.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.902e-05/0.08673, allocations: 7.938 kB / 401.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.24e-05/0.08677, allocations: 11.88 kB / 401.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-06/0.08679, allocations: 4 kB / 401.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.243e-05/0.08685, allocations: 111.2 kB / 401.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08686, allocations: 0 / 401.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002296/0.0871, allocations: 16 kB / 401.3 MB, free: 12.2 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 8.039e-05/0.08718, allocations: 95.25 kB / 401.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001842/0.08737, allocations: 67.89 kB / 401.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.08738, allocations: 320 / 401.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.831e-05/0.08745, allocations: 27.94 kB / 401.5 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.08775, allocations: 24.02 kB / 401.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003391/0.0881, allocations: 246 kB / 401.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.08832, allocations: 0.6967 MB / 402.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.64e-05/0.08837, allocations: 8.656 kB / 402.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.911e-05/0.0884, allocations: 15.42 kB / 402.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.08841, allocations: 7.938 kB / 402.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of Templates: time 0.002534/0.09095, allocations: 0.7244 MB / 403.2 MB, free: 10.24 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches