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.001562/0.001562, 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.00225/0.00225, 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.025/1.025, allocations: 173.3 MB / 201.1 MB, free: 9.348 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.053e-06/2.053e-06, allocations: 0 / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.826e-05/3.032e-05, allocations: 6.25 kB / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002312/0.002343, allocations: 0.8814 MB / 268.9 MB, free: 5.57 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004306/0.002773, allocations: 123.5 kB / 269 MB, free: 5.449 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.044e-05/0.002864, allocations: 11.88 kB / 269 MB, free: 5.438 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.002981, allocations: 3.938 kB / 269 MB, free: 5.434 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001419/0.003123, allocations: 11.92 kB / 269 MB, free: 5.422 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002201/0.003343, allocations: 35.91 kB / 269.1 MB, free: 5.387 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.00346, allocations: 39.84 kB / 269.1 MB, free: 5.348 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.003584, allocations: 23.91 kB / 269.1 MB, free: 5.324 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.294e-05/0.003637, allocations: 23.92 kB / 269.1 MB, free: 5.301 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.559e-05/0.003723, allocations: 15.98 kB / 269.2 MB, free: 5.285 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.003749, allocations: 4 kB / 269.2 MB, free: 5.281 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.387e-05/0.003763, allocations: 4 kB / 269.2 MB, free: 5.277 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.695e-05/0.00381, allocations: 19.91 kB / 269.2 MB, free: 5.258 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.105e-05/0.003851, allocations: 15.94 kB / 269.2 MB, free: 5.242 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.003984, allocations: 43.77 kB / 269.2 MB, free: 5.199 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.003987, allocations: 0 / 269.2 MB, free: 5.199 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.003989, allocations: 0 / 269.2 MB, free: 5.199 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.976e-06/0.003998, allocations: 3.984 kB / 269.2 MB, free: 5.195 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.0004634/0.004461, allocations: 400.4 kB / 269.6 MB, free: 4.766 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.004507, allocations: 12.92 kB / 269.6 MB, free: 4.754 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.651e-05/0.004563, allocations: 16.84 kB / 269.7 MB, free: 4.738 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/0.004784, allocations: 148.3 kB / 269.8 MB, free: 4.566 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.004797, allocations: 4.375 kB / 269.8 MB, free: 4.562 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.56e-05/0.004812, allocations: 8.359 kB / 269.8 MB, free: 4.555 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002742/0.005086, allocations: 113.5 kB / 269.9 MB, free: 4.43 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.005098, allocations: 4.188 kB / 269.9 MB, free: 4.426 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.005108, allocations: 384 / 269.9 MB, free: 4.426 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.005118, allocations: 384 / 269.9 MB, free: 4.426 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.946e-05/0.005158, allocations: 23.84 kB / 270 MB, free: 4.402 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001422/0.0053, allocations: 128.6 kB / 270.1 MB, free: 4.242 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.005464, allocations: 59.2 kB / 270.1 MB, free: 4.172 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.808e-05/0.005522, allocations: 31.72 kB / 270.2 MB, free: 4.137 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.214e-06/0.00553, allocations: 0 / 270.2 MB, free: 4.137 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.005563, allocations: 45.33 kB / 270.2 MB, free: 4.082 MB / 250.7 MB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.005564, allocations: 0 / 270.2 MB, free: 4.082 MB / 250.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002123/0.005776, allocations: 77.64 kB / 270.3 MB, free: 4 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.662e-05/0.005833, allocations: 51.41 kB / 270.3 MB, free: 3.938 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.005989, allocations: 208.6 kB / 270.6 MB, free: 3.719 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.006005, allocations: 25.7 kB / 270.6 MB, free: 3.688 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.81e-05/0.006063, allocations: 134.9 kB / 270.7 MB, free: 3.551 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.129e-05/0.006084, allocations: 7.891 kB / 270.7 MB, free: 3.543 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.162e-05/0.006126, allocations: 23.38 kB / 270.7 MB, free: 3.512 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.006288, allocations: 496.1 kB / 271.2 MB, free: 3.016 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.793e-05/0.006306, allocations: 4 kB / 271.2 MB, free: 3.012 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.916e-06/0.006315, allocations: 3.938 kB / 271.2 MB, free: 3.008 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.006e-05/0.006355, allocations: 19.75 kB / 271.2 MB, free: 2.984 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.006358, allocations: 0 / 271.2 MB, free: 2.984 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.726e-05/0.006456, allocations: 37.69 kB / 271.3 MB, free: 2.941 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.00648, allocations: 8 kB / 271.3 MB, free: 2.934 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.403e-06/0.006487, allocations: 0 / 271.3 MB, free: 2.934 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.006507, allocations: 0 / 271.3 MB, free: 2.934 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.722e-05/0.006584, allocations: 4 kB / 271.3 MB, free: 2.93 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.006593, allocations: 0 / 271.3 MB, free: 2.93 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.962e-05/0.006612, allocations: 7.891 kB / 271.3 MB, free: 2.922 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.006618, allocations: 0 / 271.3 MB, free: 2.922 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 0.0001171/0.006736, allocations: 172.5 kB / 271.5 MB, free: 2.742 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.006846, allocations: 69.78 kB / 271.5 MB, free: 2.668 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.244e-05/0.006899, allocations: 8.781 kB / 271.6 MB, free: 2.656 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.006903, allocations: 4 kB / 271.6 MB, free: 2.652 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.00691, allocations: 0 / 271.6 MB, free: 2.652 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.006918, allocations: 7.922 kB / 271.6 MB, free: 2.645 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001082/0.007026, allocations: 124.6 kB / 271.7 MB, free: 2.488 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.007028, allocations: 0 / 271.7 MB, free: 2.488 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.327e-05/0.007122, allocations: 12 kB / 271.7 MB, free: 2.477 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.007127, allocations: 0 / 271.7 MB, free: 2.477 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.007139, allocations: 7.984 kB / 271.7 MB, free: 2.469 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.007141, allocations: 4 kB / 271.7 MB, free: 2.465 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.007144, allocations: 0 / 271.7 MB, free: 2.465 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001585/0.007302, allocations: 108.7 kB / 271.8 MB, free: 2.336 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.948e-05/0.007362, allocations: 19.88 kB / 271.8 MB, free: 2.316 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.007393, allocations: 4 kB / 271.8 MB, free: 2.312 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.318e-05/0.007437, allocations: 4 kB / 271.8 MB, free: 2.309 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.919e-06/0.007442, allocations: 3.938 kB / 271.8 MB, free: 2.305 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/0.007451, allocations: 4 kB / 271.8 MB, free: 2.301 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.471e-05/0.007536, allocations: 142 kB / 272 MB, free: 2.164 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007536, allocations: 0 / 272 MB, free: 2.164 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002165/0.007753, allocations: 8 kB / 272 MB, free: 2.156 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 0.0001299/0.007883, allocations: 107.2 kB / 272.1 MB, free: 2.043 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001162/0.007999, allocations: 27.61 kB / 272.1 MB, free: 2.012 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.008002, allocations: 0 / 272.1 MB, free: 2.012 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.32e-07/0.008003, allocations: 0 / 272.1 MB, free: 2.012 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003431/0.008346, allocations: 38.61 kB / 272.2 MB, free: 1.973 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000339/0.008685, allocations: 167.3 kB / 272.3 MB, free: 1.781 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.202e-05/0.008737, allocations: 67.41 kB / 272.4 MB, free: 1.695 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.03e-05/0.008758, allocations: 11.91 kB / 272.4 MB, free: 1.684 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.611e-05/0.008794, allocations: 12.5 kB / 272.4 MB, free: 1.668 MB / 250.7 MB Notification: Performance of SimCode: time 9.41e-07/0.008795, allocations: 0 / 272.4 MB, free: 1.668 MB / 250.7 MB Notification: Performance of Templates: time 0.003917/0.01271, allocations: 0.7261 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.826002691872418]