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.001093/0.001093, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001673/0.002766, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009576/0.0009576, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001383/0.002341, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.8417/0.8417, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1654/1.007, allocations: 52.48 MB / 238.5 MB, free: 7.625 MB / 234.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 1.543e-06/1.543e-06, allocations: 0 / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.804e-05/1.959e-05, allocations: 5.688 kB / 239.7 MB, free: 6.367 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.001403/0.001423, allocations: 0.9279 MB / 240.7 MB, free: 5.457 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001952/0.001618, allocations: 131.5 kB / 240.8 MB, free: 5.328 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.845e-05/0.001697, allocations: 6.469 kB / 240.8 MB, free: 5.324 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 5.906e-05/0.001756, allocations: 7.922 kB / 240.8 MB, free: 5.316 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.99e-05/0.001826, allocations: 11.88 kB / 240.8 MB, free: 5.305 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000147/0.001973, allocations: 43.83 kB / 240.9 MB, free: 5.262 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 9.518e-05/0.002068, allocations: 39.86 kB / 240.9 MB, free: 5.223 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.716e-05/0.002155, allocations: 11.98 kB / 240.9 MB, free: 5.211 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.477e-05/0.00221, allocations: 31.95 kB / 240.9 MB, free: 5.18 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.952e-05/0.002279, allocations: 17.39 kB / 241 MB, free: 5.164 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.112e-05/0.0023, allocations: 0 / 241 MB, free: 5.164 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.067e-05/0.002311, allocations: 4 kB / 241 MB, free: 5.16 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.632e-05/0.002347, allocations: 15.94 kB / 241 MB, free: 5.145 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.266e-05/0.00237, allocations: 12.75 kB / 241 MB, free: 5.133 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 8.946e-05/0.002459, allocations: 47.75 kB / 241 MB, free: 5.086 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.002468, allocations: 1.094 kB / 241 MB, free: 5.086 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.002469, allocations: 0 / 241 MB, free: 5.086 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.002479, allocations: 0 / 241 MB, free: 5.086 MB / 234.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.0003136/0.002793, allocations: 295.4 kB / 241.3 MB, free: 4.773 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.002823, allocations: 8.031 kB / 241.3 MB, free: 4.766 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.053e-05/0.002854, allocations: 12.92 kB / 241.3 MB, free: 4.754 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.003002, allocations: 141.6 kB / 241.5 MB, free: 4.59 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.903e-06/0.003009, allocations: 384 / 241.5 MB, free: 4.59 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.00302, allocations: 8.375 kB / 241.5 MB, free: 4.582 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000151/0.003171, allocations: 115.7 kB / 241.6 MB, free: 4.457 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.003178, allocations: 1.25 kB / 241.6 MB, free: 4.457 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.194e-06/0.003185, allocations: 4.375 kB / 241.6 MB, free: 4.453 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.411e-06/0.003191, allocations: 384 / 241.6 MB, free: 4.453 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.624e-05/0.003207, allocations: 17.77 kB / 241.6 MB, free: 4.438 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.047e-05/0.003267, allocations: 67.8 kB / 241.7 MB, free: 4.355 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.262e-05/0.00336, allocations: 48.2 kB / 241.7 MB, free: 4.297 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.904e-05/0.003389, allocations: 29 kB / 241.8 MB, free: 4.266 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.124e-06/0.003396, allocations: 3.984 kB / 241.8 MB, free: 4.262 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.167e-05/0.003418, allocations: 38.5 kB / 241.8 MB, free: 4.215 MB / 234.7 MB Notification: Performance of pre-optimization done (n=8): time 7.31e-07/0.003418, allocations: 0 / 241.8 MB, free: 4.215 MB / 234.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001064/0.003525, allocations: 54.66 kB / 241.9 MB, free: 4.156 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.003564, allocations: 59.41 kB / 241.9 MB, free: 4.086 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.951e-05/0.003634, allocations: 141.7 kB / 242.1 MB, free: 3.938 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.308e-06/0.003643, allocations: 25.7 kB / 242.1 MB, free: 3.906 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.245e-05/0.003666, allocations: 88.11 kB / 242.2 MB, free: 3.816 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.107e-05/0.003677, allocations: 9.719 kB / 242.2 MB, free: 3.809 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.12e-05/0.003698, allocations: 13.72 kB / 242.2 MB, free: 3.789 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.778e-05/0.003766, allocations: 322.8 kB / 242.5 MB, free: 3.465 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.779e-06/0.00377, allocations: 4 kB / 242.5 MB, free: 3.461 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.629e-06/0.003775, allocations: 0.6562 kB / 242.5 MB, free: 3.461 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.574e-05/0.003791, allocations: 13.48 kB / 242.5 MB, free: 3.445 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.003793, allocations: 0 / 242.5 MB, free: 3.445 MB / 234.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.282e-05/0.003825, allocations: 39.66 kB / 242.6 MB, free: 3.402 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.576e-06/0.003834, allocations: 4 kB / 242.6 MB, free: 3.398 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/0.003837, allocations: 0 / 242.6 MB, free: 3.398 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.003848, allocations: 0 / 242.6 MB, free: 3.398 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.503e-05/0.003883, allocations: 8 kB / 242.6 MB, free: 3.387 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.465e-06/0.003885, allocations: 1.469 kB / 242.6 MB, free: 3.387 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.175e-06/0.003893, allocations: 0 / 242.6 MB, free: 3.387 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-06/0.003897, allocations: 4 kB / 242.6 MB, free: 3.383 MB / 234.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 4.96e-05/0.003947, allocations: 113.2 kB / 242.7 MB, free: 3.262 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/0.003979, allocations: 57.61 kB / 242.8 MB, free: 3.199 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.806e-05/0.004007, allocations: 13.38 kB / 242.8 MB, free: 3.184 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.004009, allocations: 4.531 kB / 242.8 MB, free: 3.18 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-06/0.00401, allocations: 0 / 242.8 MB, free: 3.18 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.004013, allocations: 1.688 kB / 242.8 MB, free: 3.18 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.42e-05/0.004057, allocations: 81.77 kB / 242.9 MB, free: 3.082 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.004057, allocations: 0 / 242.9 MB, free: 3.082 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.977e-05/0.004097, allocations: 15.98 kB / 242.9 MB, free: 3.066 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.456e-05/0.004122, allocations: 17.09 kB / 242.9 MB, free: 3.051 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.92e-07/0.004123, allocations: 0 / 242.9 MB, free: 3.051 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.004129, allocations: 4 kB / 242.9 MB, free: 3.047 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.004129, allocations: 1 kB / 242.9 MB, free: 3.047 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.00413, allocations: 0 / 242.9 MB, free: 3.047 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.469e-05/0.004164, allocations: 71.81 kB / 243 MB, free: 2.957 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.004177, allocations: 1 kB / 243 MB, free: 2.957 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.246e-06/0.004185, allocations: 7.938 kB / 243 MB, free: 2.949 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.774e-06/0.004187, allocations: 0 / 243 MB, free: 2.949 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.004191, allocations: 4.5 kB / 243 MB, free: 2.945 MB / 234.7 MB Notification: Performance of sorting global known variables: time 1.964e-05/0.004211, allocations: 27.84 kB / 243 MB, free: 2.918 MB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004211, allocations: 0 / 243 MB, free: 2.918 MB / 234.7 MB Notification: Performance of remove unused functions: time 8.687e-05/0.004297, allocations: 5.656 kB / 243 MB, free: 2.914 MB / 234.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 6.718e-05/0.004365, allocations: 84.41 kB / 243.1 MB, free: 2.824 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 5.444e-05/0.004419, allocations: 24.94 kB / 243.1 MB, free: 2.797 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.004422, allocations: 3.938 kB / 243.1 MB, free: 2.793 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 6.62e-07/0.004423, allocations: 4 kB / 243.1 MB, free: 2.789 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001556/0.004578, allocations: 118.4 kB / 243.2 MB, free: 2.652 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001763/0.004755, allocations: 166.2 kB / 243.4 MB, free: 2.465 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.897e-05/0.004784, allocations: 71.33 kB / 243.5 MB, free: 2.375 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 1.241e-05/0.004796, allocations: 0 / 243.5 MB, free: 2.375 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.433e-05/0.00484, allocations: 55.38 kB / 243.5 MB, free: 2.32 MB / 234.7 MB Notification: Performance of SimCode: time 4.51e-07/0.004841, allocations: 0 / 243.5 MB, free: 2.32 MB / 234.7 MB Notification: Performance of Templates: time 0.002013/0.006854, allocations: 0.7949 MB / 244.3 MB, free: 1.547 MB / 234.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4559311028569937]