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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.013/1.013, allocations: 173.4 MB / 201.1 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 179] 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=5010,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=5010,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.92e-05/3.135e-05, allocations: 6.25 kB / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002626/0.002657, allocations: 0.874 MB / 268.9 MB, free: 5.555 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004535/0.00311, allocations: 131.5 kB / 269 MB, free: 5.426 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.068e-05/0.003201, allocations: 3.938 kB / 269 MB, free: 5.422 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.003329, allocations: 11.94 kB / 269 MB, free: 5.41 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001649/0.003494, allocations: 11.92 kB / 269 MB, free: 5.398 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002648/0.003758, allocations: 31.91 kB / 269.1 MB, free: 5.367 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001267/0.003885, allocations: 47.78 kB / 269.1 MB, free: 5.32 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.004015, allocations: 15.98 kB / 269.1 MB, free: 5.305 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.344e-05/0.004079, allocations: 27.91 kB / 269.1 MB, free: 5.277 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.879e-05/0.004168, allocations: 11.92 kB / 269.2 MB, free: 5.266 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.562e-05/0.004193, allocations: 4 kB / 269.2 MB, free: 5.262 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.475e-05/0.004208, allocations: 4 kB / 269.2 MB, free: 5.258 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.973e-05/0.004268, allocations: 23.92 kB / 269.2 MB, free: 5.234 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.208e-05/0.00431, allocations: 7.984 kB / 269.2 MB, free: 5.227 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.004462, allocations: 47.77 kB / 269.2 MB, free: 5.18 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.004466, allocations: 4 kB / 269.2 MB, free: 5.176 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.004467, allocations: 0 / 269.2 MB, free: 5.176 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.004473, allocations: 0 / 269.2 MB, free: 5.176 MB / 250.7 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.0004883/0.004962, allocations: 400.3 kB / 269.6 MB, free: 4.746 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.005009, allocations: 12.92 kB / 269.6 MB, free: 4.734 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.74e-05/0.005067, allocations: 16.84 kB / 269.7 MB, free: 4.719 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000207/0.005274, allocations: 151.1 kB / 269.8 MB, free: 4.547 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.005287, allocations: 4.375 kB / 269.8 MB, free: 4.543 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.544e-05/0.005303, allocations: 8.375 kB / 269.8 MB, free: 4.535 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002532/0.005556, allocations: 109.5 kB / 269.9 MB, free: 4.414 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.005565, allocations: 192 / 269.9 MB, free: 4.414 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.005577, allocations: 4.375 kB / 269.9 MB, free: 4.41 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.005584, allocations: 4.375 kB / 269.9 MB, free: 4.406 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.522e-05/0.005609, allocations: 11.88 kB / 269.9 MB, free: 4.395 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001018/0.005711, allocations: 136.6 kB / 270.1 MB, free: 4.227 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.005833, allocations: 67.19 kB / 270.1 MB, free: 4.148 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.052e-05/0.005873, allocations: 27.72 kB / 270.2 MB, free: 4.117 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-06/0.005882, allocations: 7.938 kB / 270.2 MB, free: 4.109 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.005901, allocations: 33.39 kB / 270.2 MB, free: 4.066 MB / 250.7 MB Notification: Performance of pre-optimization done (n=8): time 1.532e-06/0.005903, allocations: 0 / 270.2 MB, free: 4.066 MB / 250.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001423/0.006045, allocations: 73.64 kB / 270.3 MB, free: 3.988 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/0.00609, allocations: 63.34 kB / 270.4 MB, free: 3.914 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.556e-05/0.006185, allocations: 197.8 kB / 270.5 MB, free: 3.703 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.949e-06/0.006195, allocations: 29.7 kB / 270.6 MB, free: 3.668 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.019e-05/0.006245, allocations: 130.9 kB / 270.7 MB, free: 3.535 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.224e-05/0.006257, allocations: 7.953 kB / 270.7 MB, free: 3.527 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.006287, allocations: 23.38 kB / 270.7 MB, free: 3.496 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.006412, allocations: 0.4923 MB / 271.2 MB, free: 2.992 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.192e-05/0.006424, allocations: 3.938 kB / 271.2 MB, free: 2.988 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.911e-06/0.00643, allocations: 4 kB / 271.2 MB, free: 2.984 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.411e-05/0.006454, allocations: 7.688 kB / 271.2 MB, free: 2.973 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.006456, allocations: 4 kB / 271.2 MB, free: 2.969 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.752e-05/0.006503, allocations: 33.7 kB / 271.3 MB, free: 2.93 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.006516, allocations: 7.984 kB / 271.3 MB, free: 2.922 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.006521, allocations: 4.094 kB / 271.3 MB, free: 2.918 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.006533, allocations: 0 / 271.3 MB, free: 2.918 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.64e-05/0.00658, allocations: 4 kB / 271.3 MB, free: 2.914 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.006586, allocations: 0 / 271.3 MB, free: 2.914 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.534e-05/0.006601, allocations: 15.83 kB / 271.3 MB, free: 2.898 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.006607, allocations: 4 kB / 271.3 MB, free: 2.895 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.unitDelay1.u,unitDelay1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.934e-05/0.006676, allocations: 152.6 kB / 271.5 MB, free: 2.734 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.904e-05/0.006735, allocations: 69.8 kB / 271.5 MB, free: 2.66 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.412e-05/0.00677, allocations: 12.78 kB / 271.5 MB, free: 2.645 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.006771, allocations: 0 / 271.5 MB, free: 2.645 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.006774, allocations: 4 kB / 271.5 MB, free: 2.641 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.006778, allocations: 3.938 kB / 271.5 MB, free: 2.637 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.451e-05/0.006842, allocations: 132.6 kB / 271.7 MB, free: 2.473 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.006844, allocations: 0 / 271.7 MB, free: 2.473 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.776e-05/0.006891, allocations: 12 kB / 271.7 MB, free: 2.461 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.006895, allocations: 3.984 kB / 271.7 MB, free: 2.457 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-06/0.006901, allocations: 0 / 271.7 MB, free: 2.457 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.006903, allocations: 7.922 kB / 271.7 MB, free: 2.449 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.006904, allocations: 3.938 kB / 271.7 MB, free: 2.445 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.087e-05/0.006994, allocations: 112.7 kB / 271.8 MB, free: 2.312 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.29e-05/0.007027, allocations: 15.89 kB / 271.8 MB, free: 2.297 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.073e-05/0.007048, allocations: 11.98 kB / 271.8 MB, free: 2.285 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.211e-05/0.00706, allocations: 4 kB / 271.8 MB, free: 2.281 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.384e-06/0.007063, allocations: 0 / 271.8 MB, free: 2.281 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-06/0.007066, allocations: 0 / 271.8 MB, free: 2.281 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.732e-05/0.007113, allocations: 142 kB / 272 MB, free: 2.145 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007113, allocations: 0 / 272 MB, free: 2.145 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001182/0.007232, allocations: 12 kB / 272 MB, free: 2.133 MB / 250.7 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 7.766e-05/0.007309, allocations: 99.19 kB / 272.1 MB, free: 2.027 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.145e-05/0.007391, allocations: 35.61 kB / 272.1 MB, free: 1.988 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.007392, allocations: 0 / 272.1 MB, free: 1.988 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.12e-07/0.007393, allocations: 0 / 272.1 MB, free: 1.988 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002194/0.007612, allocations: 34.61 kB / 272.2 MB, free: 1.953 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002362/0.007848, allocations: 167.3 kB / 272.3 MB, free: 1.762 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.888e-05/0.007887, allocations: 71.28 kB / 272.4 MB, free: 1.672 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.564e-05/0.007903, allocations: 7.984 kB / 272.4 MB, free: 1.664 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.703e-05/0.00793, allocations: 8.5 kB / 272.4 MB, free: 1.652 MB / 250.7 MB Notification: Performance of SimCode: time 8.81e-07/0.007931, allocations: 4 kB / 272.4 MB, free: 1.648 MB / 250.7 MB Notification: Performance of Templates: time 0.002473/0.0104, allocations: 0.7118 MB / 273.1 MB, free: 0.9531 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.77737557888031]