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.0008851/0.0008851, allocations: 91.64 kB / 17.31 MB, free: 5.59 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.0009555/0.0009555, allocations: 184.8 kB / 18.21 MB, free: 5.191 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.273/1.273, allocations: 223.3 MB / 242.3 MB, free: 184 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002225/0.0002225, allocations: 8 kB / 302.1 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07246/0.0727, allocations: 50.42 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.0009205/0.07363, allocations: 0.5541 MB / 353.1 MB, free: 3.148 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00028/0.07392, allocations: 127.6 kB / 353.2 MB, free: 3.023 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.048e-05/0.07399, allocations: 0 / 353.2 MB, free: 3.023 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.896e-05/0.07407, allocations: 7.922 kB / 353.2 MB, free: 3.016 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.926e-05/0.07417, allocations: 7.938 kB / 353.2 MB, free: 3.008 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001693/0.07435, allocations: 27.97 kB / 353.2 MB, free: 2.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.398e-05/0.07444, allocations: 39.92 kB / 353.3 MB, free: 2.941 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.282e-05/0.07454, allocations: 23.98 kB / 353.3 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.806e-05/0.07457, allocations: 15.88 kB / 353.3 MB, free: 2.902 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.632e-05/0.07463, allocations: 15.86 kB / 353.3 MB, free: 2.887 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.07465, allocations: 0 / 353.3 MB, free: 2.887 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.332e-05/0.07467, allocations: 4 kB / 353.3 MB, free: 2.883 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.321e-05/0.07472, allocations: 19.91 kB / 353.3 MB, free: 2.863 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.534e-05/0.07477, allocations: 45.52 kB / 353.4 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.418e-05/0.07484, allocations: 39.86 kB / 353.4 MB, free: 2.773 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.07485, allocations: 0 / 353.4 MB, free: 2.773 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.21e-07/0.07486, allocations: 4 kB / 353.4 MB, free: 2.77 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.585e-06/0.07487, allocations: 4 kB / 353.4 MB, free: 2.766 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.0003504/0.07522, allocations: 363.5 kB / 353.8 MB, free: 2.359 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.07526, allocations: 8.031 kB / 353.8 MB, free: 2.352 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.069e-05/0.0753, allocations: 8.844 kB / 353.8 MB, free: 2.344 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.07546, allocations: 199.1 kB / 354 MB, free: 2.113 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.07548, allocations: 8.312 kB / 354 MB, free: 2.105 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.0755, allocations: 12.3 kB / 354 MB, free: 2.094 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002559/0.07576, allocations: 147.8 kB / 354.2 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.012e-06/0.07577, allocations: 192 / 354.2 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.07579, allocations: 3.938 kB / 354.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.0758, allocations: 4 kB / 354.2 MB, free: 1.93 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.729e-05/0.07585, allocations: 23.98 kB / 354.2 MB, free: 1.906 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000127/0.07598, allocations: 169.6 kB / 354.4 MB, free: 1.691 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.07612, allocations: 74.66 kB / 354.4 MB, free: 1.609 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.693e-05/0.0762, allocations: 48.88 kB / 354.5 MB, free: 1.559 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.306e-06/0.07621, allocations: 0 / 354.5 MB, free: 1.559 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.07623, allocations: 30.56 kB / 354.5 MB, free: 1.52 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 8.92e-07/0.07624, allocations: 0 / 354.5 MB, free: 1.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001864/0.07643, allocations: 109.6 kB / 354.6 MB, free: 1.406 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.07648, allocations: 63.34 kB / 354.7 MB, free: 1.332 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.0766, allocations: 145.7 kB / 354.8 MB, free: 1.18 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.196e-05/0.07661, allocations: 25.7 kB / 354.8 MB, free: 1.148 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.453e-05/0.07665, allocations: 88.14 kB / 354.9 MB, free: 1.059 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.346e-05/0.07667, allocations: 3.938 kB / 354.9 MB, free: 1.055 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.774e-05/0.07671, allocations: 21.7 kB / 355 MB, free: 1.027 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.498e-05/0.0768, allocations: 318.8 kB / 355.3 MB, free: 0.707 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.888e-05/0.07682, allocations: 7.984 kB / 355.3 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.576e-05/0.07687, allocations: 63.12 kB / 355.3 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.045e-05/0.07695, allocations: 74.8 kB / 355.4 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.07696, allocations: 0 / 355.4 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001253/0.07709, allocations: 97.59 kB / 355.5 MB, free: 424 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.07711, allocations: 11.92 kB / 355.5 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.07712, allocations: 4 kB / 355.5 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.07714, allocations: 4 kB / 355.5 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.952e-05/0.07721, allocations: 15.94 kB / 355.5 MB, free: 388 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.07722, allocations: 3.984 kB / 355.5 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.532e-05/0.07726, allocations: 7.938 kB / 355.6 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.07728, allocations: 4 kB / 355.6 MB, free: 372 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 8.32e-05/0.07736, allocations: 129.9 kB / 355.7 MB, free: 232 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.57e-05/0.07747, allocations: 85.47 kB / 355.8 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.393e-05/0.07751, allocations: 16.7 kB / 355.8 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.07752, allocations: 8 kB / 355.8 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.07753, allocations: 0 / 355.8 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.07753, allocations: 0 / 355.8 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001018/0.07764, allocations: 165.7 kB / 356 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.07765, allocations: 4 kB / 356 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.361e-05/0.07772, allocations: 11.98 kB / 356 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.07773, allocations: 7.938 kB / 356 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-06/0.07774, allocations: 0 / 356 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.07775, allocations: 4 kB / 356 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.07775, allocations: 0 / 356 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001229/0.07788, allocations: 109 kB / 356.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.618e-05/0.07795, allocations: 97 kB / 356.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.07797, allocations: 3.938 kB / 356.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.414e-05/0.078, allocations: 0 / 356.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.305e-06/0.07801, allocations: 4.125 kB / 356.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.07802, allocations: 4 kB / 356.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.564e-05/0.07809, allocations: 125.6 kB / 356.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0781, allocations: 0 / 356.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002096/0.07831, allocations: 8 kB / 356.3 MB, free: 15.49 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 6.844e-05/0.07839, allocations: 99.19 kB / 356.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.0785, allocations: 55.89 kB / 356.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.07851, allocations: 0.5 kB / 356.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.07851, allocations: 4 kB / 356.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.07879, allocations: 51.95 kB / 356.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002838/0.07908, allocations: 216.8 kB / 356.7 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002018/0.0793, allocations: 0.7044 MB / 357.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.141e-05/0.07933, allocations: 11.44 kB / 357.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.07933, allocations: 0 / 357.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of Templates: time 0.001981/0.08132, allocations: 0.8578 MB / 358.3 MB, free: 13.43 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/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