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.007291/0.007291, allocations: 94.33 kB / 15.92 MB, free: 6.273 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.001291/0.001291, allocations: 198.3 kB / 16.83 MB, free: 6.188 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.741/1.741, allocations: 205.1 MB / 222.7 MB, free: 4.68 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.0816/0.0816, allocations: 12.6 MB / 282.6 MB, free: 8.832 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.0026/0.0026, allocations: 83.89 kB / 342.8 MB, free: 21.18 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.139, allocations: 49.4 MB / 392.2 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.004537/0.1436, allocations: 1.695 MB / 393.9 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.1449, allocations: 0.5346 MB / 394.4 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.1451, allocations: 4 kB / 394.4 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.699e-05/0.1452, allocations: 7.938 kB / 394.4 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002406/0.1454, allocations: 7.922 kB / 394.4 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004141/0.1459, allocations: 55.83 kB / 394.5 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001495/0.146, allocations: 59.78 kB / 394.6 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/0.1462, allocations: 24.2 kB / 394.6 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.1463, allocations: 23.92 kB / 394.6 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.93e-05/0.1464, allocations: 27.84 kB / 394.6 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.1465, allocations: 8 kB / 394.6 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.31e-05/0.1465, allocations: 4 kB / 394.6 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.025e-05/0.1466, allocations: 15.92 kB / 394.7 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.095e-05/0.1467, allocations: 39.73 kB / 394.7 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001718/0.1469, allocations: 68 kB / 394.8 MB, free: 1.102 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1469, allocations: 0 / 394.8 MB, free: 1.102 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1469, allocations: 0 / 394.8 MB, free: 1.102 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.1469, allocations: 0 / 394.8 MB, free: 1.102 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.0007092/0.1476, allocations: 395 kB / 395.1 MB, free: 0.668 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.729e-05/0.1477, allocations: 16.03 kB / 395.2 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.583e-05/0.1477, allocations: 16.69 kB / 395.2 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000272/0.148, allocations: 200.1 kB / 395.4 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.1481, allocations: 384 / 395.4 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/0.1481, allocations: 12.38 kB / 395.4 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004081/0.1485, allocations: 137.3 kB / 395.5 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1485, allocations: 0 / 395.5 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.1486, allocations: 4 kB / 395.5 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.898e-06/0.1486, allocations: 3.984 kB / 395.5 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001583/0.1487, allocations: 35.92 kB / 395.6 MB, free: 200 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007065/0.1495, allocations: 313.5 kB / 395.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003307/0.1498, allocations: 154.2 kB / 396 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.1499, allocations: 33.8 kB / 396.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.15, allocations: 0 / 396.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000261/0.1502, allocations: 71.33 kB / 396.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.643e-06/0.1503, allocations: 0 / 396.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004502/0.1507, allocations: 117.7 kB / 396.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.836e-05/0.1508, allocations: 85.11 kB / 396.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.151, allocations: 141.6 kB / 396.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.151, allocations: 33.7 kB / 396.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.976e-05/0.1511, allocations: 96.05 kB / 396.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.923e-05/0.1512, allocations: 15.89 kB / 396.6 MB, free: 15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.393e-05/0.1512, allocations: 29.62 kB / 396.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1514, allocations: 326.8 kB / 396.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.764e-05/0.1515, allocations: 19.98 kB / 397 MB, free: 14.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.1516, allocations: 57.14 kB / 397 MB, free: 14.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000196/0.1518, allocations: 96.94 kB / 397.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1518, allocations: 0 / 397.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002979/0.1522, allocations: 125.6 kB / 397.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.1522, allocations: 4 kB / 397.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.1522, allocations: 0 / 397.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.1522, allocations: 4 kB / 397.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.1524, allocations: 11.98 kB / 397.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.1524, allocations: 4 kB / 397.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.787e-05/0.1525, allocations: 8 kB / 397.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.1525, allocations: 4.156 kB / 397.3 MB, free: 14.27 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.0001575/0.1527, allocations: 141.6 kB / 397.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.671e-05/0.1528, allocations: 49.59 kB / 397.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.029e-05/0.1528, allocations: 12.31 kB / 397.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.1529, allocations: 4 kB / 397.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.1529, allocations: 0 / 397.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.1529, allocations: 0 / 397.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004546/0.1533, allocations: 350.4 kB / 397.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1534, allocations: 4 kB / 397.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.553e-05/0.1534, allocations: 11.98 kB / 397.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.1535, allocations: 0 / 397.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.1535, allocations: 0 / 397.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.1535, allocations: 4 kB / 397.8 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1535, allocations: 3.938 kB / 397.8 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002929/0.1538, allocations: 204.2 kB / 398 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.259e-05/0.1539, allocations: 89 kB / 398.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.945e-05/0.1539, allocations: 8 kB / 398.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.186e-05/0.154, allocations: 0 / 398.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.923e-05/0.1541, allocations: 15.86 kB / 398.2 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.1541, allocations: 4 kB / 398.2 MB, free: 13.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001044/0.1542, allocations: 107.2 kB / 398.3 MB, free: 13.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1542, allocations: 0 / 398.3 MB, free: 13.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003694/0.1546, allocations: 16 kB / 398.3 MB, free: 13.16 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.0001328/0.1548, allocations: 103.2 kB / 398.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002392/0.155, allocations: 60.03 kB / 398.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.155, allocations: 0 / 398.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.159e-05/0.1551, allocations: 24.05 kB / 398.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000527/0.1556, allocations: 36.11 kB / 398.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005292/0.1562, allocations: 238.3 kB / 398.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.1565, allocations: 0.7005 MB / 399.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.88e-05/0.1566, allocations: 16.64 kB / 399.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.481e-05/0.1566, allocations: 15.44 kB / 399.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of SimCode: time 2.114e-06/0.1567, allocations: 0 / 399.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of Templates: time 0.004684/0.1613, allocations: 0.7376 MB / 400.2 MB, free: 11.18 MB / 302.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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches