Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009321/0.0009321, allocations: 80.8 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 170.3 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8985/0.8985, allocations: 177.1 MB / 205.3 MB, free: 5.109 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 3.938 kB / 273.4 MB, free: 1.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.773e-05/1.917e-05, allocations: 2.312 kB / 273.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.001988/0.002007, allocations: 0.8808 MB / 274.3 MB, free: 336 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003455/0.002353, allocations: 131.5 kB / 274.5 MB, free: 204 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.498e-05/0.002427, allocations: 0 / 274.5 MB, free: 204 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001006/0.002528, allocations: 7.922 kB / 274.5 MB, free: 196 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.002645, allocations: 15.88 kB / 274.5 MB, free: 180 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001834/0.002829, allocations: 39.83 kB / 274.5 MB, free: 140 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001037/0.002932, allocations: 43.84 kB / 274.6 MB, free: 96 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.848e-05/0.003021, allocations: 15.98 kB / 274.6 MB, free: 80 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.782e-05/0.003079, allocations: 27.91 kB / 274.6 MB, free: 52 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.725e-05/0.003146, allocations: 7.984 kB / 274.6 MB, free: 44 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/0.00317, allocations: 4 kB / 274.6 MB, free: 40 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.14e-05/0.003181, allocations: 4 kB / 274.6 MB, free: 36 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.153e-05/0.003223, allocations: 27.91 kB / 274.6 MB, free: 8 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.359e-05/0.003266, allocations: 11.98 kB / 274.7 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001062/0.003373, allocations: 47.7 kB / 274.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.003376, allocations: 4 kB / 274.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.003376, allocations: 0 / 274.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.086e-06/0.003379, allocations: 0 / 274.7 MB, free: 15.95 MB / 266.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.0003187/0.003698, allocations: 276.6 kB / 275 MB, free: 15.65 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.00373, allocations: 8.031 kB / 275 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.485e-05/0.003765, allocations: 12.92 kB / 275 MB, free: 15.63 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.003931, allocations: 141.7 kB / 275.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.00394, allocations: 384 / 275.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/0.003951, allocations: 4.375 kB / 275.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001933/0.004145, allocations: 114.5 kB / 275.2 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.004152, allocations: 192 / 275.2 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-06/0.004158, allocations: 384 / 275.2 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.004165, allocations: 4.375 kB / 275.3 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.342e-05/0.004188, allocations: 14.75 kB / 275.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.103e-05/0.004259, allocations: 71.83 kB / 275.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000115/0.004374, allocations: 52.14 kB / 275.4 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.795e-05/0.004412, allocations: 24.84 kB / 275.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.719e-06/0.004422, allocations: 7.984 kB / 275.4 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.214e-05/0.004444, allocations: 30.56 kB / 275.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 9.42e-07/0.004445, allocations: 0 / 275.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001152/0.00456, allocations: 53.69 kB / 275.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.004613, allocations: 63.34 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.167e-05/0.004705, allocations: 138.8 kB / 275.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.334e-05/0.004718, allocations: 29.7 kB / 275.7 MB, free: 14.78 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.97e-05/0.004748, allocations: 88.14 kB / 275.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.017e-06/0.004757, allocations: 0 / 275.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.319e-05/0.00479, allocations: 21.66 kB / 275.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.202e-05/0.004882, allocations: 322.8 kB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.31e-06/0.004888, allocations: 0 / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.28e-06/0.004893, allocations: 0 / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.224e-05/0.004915, allocations: 8.859 kB / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.004917, allocations: 0 / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.553e-05/0.004972, allocations: 41.62 kB / 276.2 MB, free: 14.28 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.004984, allocations: 12.03 kB / 276.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.337e-06/0.004988, allocations: 0 / 276.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.005001, allocations: 4 kB / 276.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.31e-05/0.005034, allocations: 0 / 276.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.625e-06/0.005037, allocations: 0 / 276.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.395e-05/0.005051, allocations: 4 kB / 276.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-06/0.005054, allocations: 0 / 276.2 MB, free: 14.26 MB / 266.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.586e-05/0.00512, allocations: 120.6 kB / 276.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.517e-05/0.005175, allocations: 53.67 kB / 276.4 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.937e-05/0.005205, allocations: 8.781 kB / 276.4 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.005208, allocations: 8 kB / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-06/0.005209, allocations: 0 / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.005212, allocations: 0 / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.956e-05/0.005281, allocations: 85.75 kB / 276.5 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.005284, allocations: 4 kB / 276.5 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.509e-05/0.005339, allocations: 19.92 kB / 276.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.00534, allocations: 0 / 276.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-06/0.005345, allocations: 0 / 276.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.005345, allocations: 0 / 276.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.005346, allocations: 0 / 276.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.38e-05/0.00539, allocations: 59.91 kB / 276.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.428e-05/0.005424, allocations: 19.94 kB / 276.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.005442, allocations: 4 kB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.4e-05/0.005456, allocations: 0 / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.305e-06/0.005459, allocations: 0 / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.005462, allocations: 0 / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.104e-05/0.005493, allocations: 31.33 kB / 276.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.005493, allocations: 0 / 276.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001603/0.005653, allocations: 8 kB / 276.6 MB, free: 13.79 MB / 266.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 8.37e-05/0.005737, allocations: 88.28 kB / 276.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 5.779e-05/0.005795, allocations: 20.86 kB / 276.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.005798, allocations: 4 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.9e-07/0.005799, allocations: 3.938 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001611/0.00596, allocations: 41.25 kB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000219/0.006179, allocations: 162.2 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.794e-05/0.006217, allocations: 67.34 kB / 277 MB, free: 13.35 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.368e-05/0.00623, allocations: 0 / 277 MB, free: 13.35 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.368e-05/0.006284, allocations: 59.36 kB / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of SimCode: time 4.31e-07/0.006285, allocations: 0 / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of Templates: time 0.002041/0.008326, allocations: 0.7587 MB / 277.8 MB, free: 12.54 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.534860026091337]