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.001696/0.001696, allocations: 109.6 kB / 16.45 MB, free: 6.395 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.00181/0.00181, allocations: 189 kB / 17.38 MB, free: 5.648 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.763/1.763, allocations: 205.1 MB / 223.3 MB, free: 12.22 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.08368/0.08368, allocations: 12.59 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.001871/0.001871, allocations: 86.08 kB / 394.2 MB, free: 45.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1281, allocations: 49.41 MB / 443.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003643/0.1318, allocations: 1.618 MB / 445.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.133, allocations: 0.554 MB / 445.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.1332, allocations: 0 / 445.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.361e-05/0.1333, allocations: 7.875 kB / 445.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.1335, allocations: 19.86 kB / 445.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004332/0.134, allocations: 55.81 kB / 445.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001477/0.1341, allocations: 59.84 kB / 445.9 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.1343, allocations: 36.12 kB / 445.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.724e-05/0.1343, allocations: 31.84 kB / 446 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.709e-05/0.1344, allocations: 31.84 kB / 446 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.128e-05/0.1345, allocations: 4 kB / 446 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.415e-05/0.1345, allocations: 4 kB / 446 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.453e-05/0.1345, allocations: 23.92 kB / 446 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.005e-05/0.1346, allocations: 31.75 kB / 446 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.1348, allocations: 75.66 kB / 446.1 MB, free: 14.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.1348, allocations: 0 / 446.1 MB, free: 14.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1348, allocations: 0 / 446.1 MB, free: 14.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.1348, allocations: 4 kB / 446.1 MB, free: 14.02 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.0007289/0.1356, allocations: 399 kB / 446.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.1356, allocations: 12.03 kB / 446.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.493e-05/0.1357, allocations: 8.844 kB / 446.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003442/0.136, allocations: 200.1 kB / 446.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.1361, allocations: 8.375 kB / 446.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.1361, allocations: 4.375 kB / 446.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000381/0.1365, allocations: 157.1 kB / 446.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1365, allocations: 0 / 446.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.1365, allocations: 3.938 kB / 446.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1365, allocations: 4 kB / 446.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001276/0.1367, allocations: 31.97 kB / 446.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006036/0.1373, allocations: 313.5 kB / 447.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002907/0.1376, allocations: 154.3 kB / 447.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.475e-05/0.1377, allocations: 41.8 kB / 447.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.557e-05/0.1377, allocations: 3.938 kB / 447.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001212/0.1379, allocations: 59.39 kB / 447.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.553e-06/0.1379, allocations: 0 / 447.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003422/0.1382, allocations: 117.5 kB / 447.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.291e-05/0.1383, allocations: 89.11 kB / 447.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.1385, allocations: 141.8 kB / 447.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.1385, allocations: 29.7 kB / 447.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.954e-05/0.1386, allocations: 88.14 kB / 448 MB, free: 11.94 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.179e-05/0.1386, allocations: 11.81 kB / 448 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.635e-05/0.1387, allocations: 33.7 kB / 448 MB, free: 11.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1388, allocations: 322.8 kB / 448.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.659e-05/0.1389, allocations: 23.92 kB / 448.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.724e-05/0.1389, allocations: 65.08 kB / 448.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.1391, allocations: 85.08 kB / 448.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1391, allocations: 0 / 448.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002044/0.1393, allocations: 113.4 kB / 448.6 MB, free: 11.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1393, allocations: 4 kB / 448.6 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1394, allocations: 4 kB / 448.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.1394, allocations: 0 / 448.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.232e-05/0.1395, allocations: 24.14 kB / 448.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.1395, allocations: 3.938 kB / 448.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.526e-05/0.1396, allocations: 11.84 kB / 448.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.1396, allocations: 4 kB / 448.6 MB, free: 11.19 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 0.0001264/0.1397, allocations: 130 kB / 448.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.924e-05/0.1398, allocations: 53.59 kB / 448.8 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.993e-05/0.1398, allocations: 16.3 kB / 448.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1398, allocations: 0 / 448.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.1399, allocations: 3.938 kB / 448.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.1399, allocations: 4 kB / 448.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003653/0.1402, allocations: 346.6 kB / 449.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.1402, allocations: 0 / 449.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.827e-05/0.1403, allocations: 12.36 kB / 449.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1403, allocations: 3.938 kB / 449.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.1403, allocations: 8 kB / 449.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.1403, allocations: 0 / 449.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.1404, allocations: 3.938 kB / 449.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002397/0.1406, allocations: 204.2 kB / 449.4 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.87e-05/0.1407, allocations: 104.9 kB / 449.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.1407, allocations: 0 / 449.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.912e-05/0.1408, allocations: 4 kB / 449.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.202e-05/0.1409, allocations: 7.922 kB / 449.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.607e-06/0.1409, allocations: 4 kB / 449.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000107/0.141, allocations: 119.9 kB / 449.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.141, allocations: 3.938 kB / 449.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002367/0.1412, allocations: 8 kB / 449.7 MB, free: 10.07 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.0001545/0.1414, allocations: 111.2 kB / 449.8 MB, free: 9.949 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000229/0.1416, allocations: 67.84 kB / 449.8 MB, free: 9.883 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1416, allocations: 0 / 449.8 MB, free: 9.883 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.997e-05/0.1417, allocations: 19.98 kB / 449.9 MB, free: 9.863 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.142, allocations: 24.56 kB / 449.9 MB, free: 9.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004158/0.1425, allocations: 200.1 kB / 450.1 MB, free: 9.613 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.1428, allocations: 0.7002 MB / 450.8 MB, free: 8.887 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.934e-05/0.1428, allocations: 8.656 kB / 450.8 MB, free: 8.879 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.156e-05/0.1429, allocations: 11.44 kB / 450.8 MB, free: 8.867 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1429, allocations: 4 kB / 450.8 MB, free: 8.863 MB / 334.1 MB Notification: Performance of Templates: time 0.003543/0.1464, allocations: 0.8055 MB / 451.6 MB, free: 8.059 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