Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 94.47 kB / 16.65 MB, free: 6.285 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.001908/0.001908, allocations: 177.4 kB / 17.56 MB, free: 5.891 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.591/1.591, allocations: 223.2 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004559/0.000456, allocations: 7.938 kB / 301.4 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1533, allocations: 50.41 MB / 351.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.00144/0.1548, allocations: 0.5657 MB / 352.4 MB, free: 3.148 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003851/0.1552, allocations: 131.5 kB / 352.5 MB, free: 3.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.175e-05/0.1553, allocations: 0 / 352.5 MB, free: 3.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000103/0.1554, allocations: 7.922 kB / 352.5 MB, free: 3.012 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001322/0.1556, allocations: 7.938 kB / 352.5 MB, free: 3.004 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002716/0.1559, allocations: 35.97 kB / 352.6 MB, free: 2.969 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001183/0.156, allocations: 39.91 kB / 352.6 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.1561, allocations: 20 kB / 352.6 MB, free: 2.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.006e-05/0.1562, allocations: 11.88 kB / 352.6 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.253e-05/0.1563, allocations: 23.86 kB / 352.7 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.985e-05/0.1563, allocations: 0 / 352.7 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.434e-05/0.1563, allocations: 4 kB / 352.7 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.776e-05/0.1564, allocations: 15.91 kB / 352.7 MB, free: 2.855 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.759e-05/0.1565, allocations: 45.52 kB / 352.7 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.1566, allocations: 55.73 kB / 352.8 MB, free: 2.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.1566, allocations: 0 / 352.8 MB, free: 2.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.1566, allocations: 0 / 352.8 MB, free: 2.75 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.1566, allocations: 0 / 352.8 MB, free: 2.75 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007638/0.1574, allocations: 367.5 kB / 353.1 MB, free: 2.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.829e-05/0.1575, allocations: 11.97 kB / 353.1 MB, free: 2.328 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.622e-05/0.1575, allocations: 12.84 kB / 353.2 MB, free: 2.316 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/0.1578, allocations: 192.1 kB / 353.3 MB, free: 2.09 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.1578, allocations: 8.312 kB / 353.4 MB, free: 2.082 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.846e-05/0.1578, allocations: 8.375 kB / 353.4 MB, free: 2.074 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003454/0.1582, allocations: 143.7 kB / 353.5 MB, free: 1.922 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.1582, allocations: 192 / 353.5 MB, free: 1.922 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.1582, allocations: 7.938 kB / 353.5 MB, free: 1.914 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.1583, allocations: 0 / 353.5 MB, free: 1.914 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.039e-05/0.1583, allocations: 23.98 kB / 353.5 MB, free: 1.891 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001925/0.1585, allocations: 169.6 kB / 353.7 MB, free: 1.676 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.1587, allocations: 86.62 kB / 353.8 MB, free: 1.582 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.679e-05/0.1588, allocations: 40.84 kB / 353.8 MB, free: 1.539 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.1588, allocations: 0 / 353.8 MB, free: 1.539 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.1589, allocations: 34.56 kB / 353.9 MB, free: 1.496 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.1589, allocations: 4 kB / 353.9 MB, free: 1.492 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.000236/0.1591, allocations: 109.6 kB / 354 MB, free: 1.379 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.077e-05/0.1592, allocations: 55.41 kB / 354 MB, free: 1.312 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.1593, allocations: 152.5 kB / 354.2 MB, free: 1.156 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.166e-05/0.1593, allocations: 25.7 kB / 354.2 MB, free: 1.125 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.946e-05/0.1594, allocations: 84.14 kB / 354.3 MB, free: 1.039 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.786e-05/0.1594, allocations: 11.98 kB / 354.3 MB, free: 1.027 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.429e-05/0.1594, allocations: 13.72 kB / 354.3 MB, free: 1.008 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.1595, allocations: 318.8 kB / 354.6 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.915e-05/0.1596, allocations: 11.94 kB / 354.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.986e-05/0.1596, allocations: 66.8 kB / 354.7 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.506e-05/0.1597, allocations: 70.81 kB / 354.8 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.1597, allocations: 0 / 354.8 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001865/0.1599, allocations: 93.39 kB / 354.9 MB, free: 404 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.16, allocations: 11.94 kB / 354.9 MB, free: 392 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.16, allocations: 4.25 kB / 354.9 MB, free: 388 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/0.16, allocations: 4 kB / 354.9 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.1602, allocations: 15.94 kB / 354.9 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.777e-05/0.1602, allocations: 7.984 kB / 354.9 MB, free: 360 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.721e-05/0.1602, allocations: 7.938 kB / 354.9 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.1602, allocations: 4 kB / 354.9 MB, free: 348 kB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.000155/0.1604, allocations: 125.4 kB / 355 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.1605, allocations: 89.45 kB / 355.1 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.905e-05/0.1606, allocations: 16.72 kB / 355.1 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1606, allocations: 0 / 355.1 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.1606, allocations: 0 / 355.1 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.1607, allocations: 0 / 355.1 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001895/0.1608, allocations: 177.6 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1609, allocations: 0 / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.209e-05/0.1609, allocations: 12 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1609, allocations: 3.938 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.161, allocations: 0 / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.131e-06/0.161, allocations: 7.984 kB / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.161, allocations: 0 / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001736/0.1612, allocations: 117 kB / 355.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.1613, allocations: 93 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.707e-05/0.1613, allocations: 7.938 kB / 355.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.507e-05/0.1613, allocations: 3.984 kB / 355.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.963e-06/0.1614, allocations: 4 kB / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.1614, allocations: 0 / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.225e-05/0.1615, allocations: 109.8 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1615, allocations: 0 / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002106/0.1617, allocations: 16 kB / 355.7 MB, free: 15.47 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 Backend phase and start with SimCode phase: time 0.0001598/0.1619, allocations: 107.2 kB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001577/0.162, allocations: 43.92 kB / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.162, allocations: 192 / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.12e-07/0.162, allocations: 0 / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004133/0.1625, allocations: 55.14 kB / 355.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004771/0.163, allocations: 199.1 kB / 356.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.1634, allocations: 0.7043 MB / 356.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.409e-05/0.1634, allocations: 4.672 kB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.151e-05/0.1634, allocations: 11.44 kB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1634, allocations: 0 / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of Templates: time 0.00384/0.1673, allocations: 0.6288 MB / 357.4 MB, free: 13.67 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches