Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.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.001255/0.001255, 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.0009264/0.0009264, 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.048/1.048, allocations: 173.3 MB / 201.1 MB, free: 9.324 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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.052e-06/1.052e-06, allocations: 0 / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.458e-05/1.563e-05, allocations: 10.25 kB / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.001939/0.001954, allocations: 1.65 MB / 269.6 MB, free: 4.754 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003638/0.002318, allocations: 183.3 kB / 269.8 MB, free: 4.574 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.177e-05/0.00239, allocations: 0 / 269.8 MB, free: 4.574 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.774e-05/0.002488, allocations: 19.86 kB / 269.8 MB, free: 4.555 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.002604, allocations: 15.8 kB / 269.9 MB, free: 4.539 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001718/0.002776, allocations: 51.83 kB / 269.9 MB, free: 4.488 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.002886, allocations: 63.77 kB / 270 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.002994, allocations: 31.91 kB / 270 MB, free: 4.395 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.603e-05/0.00304, allocations: 35.91 kB / 270 MB, free: 4.359 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.361e-05/0.003114, allocations: 31.89 kB / 270.1 MB, free: 4.328 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.019e-05/0.003134, allocations: 4 kB / 270.1 MB, free: 4.324 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.443e-05/0.003148, allocations: 8 kB / 270.1 MB, free: 4.316 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.006e-05/0.003188, allocations: 23.92 kB / 270.1 MB, free: 4.293 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.335e-05/0.003222, allocations: 23.91 kB / 270.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001142/0.003336, allocations: 67.75 kB / 270.2 MB, free: 4.203 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.003338, allocations: 0 / 270.2 MB, free: 4.203 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.003338, allocations: 3.938 kB / 270.2 MB, free: 4.199 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.003342, allocations: 0 / 270.2 MB, free: 4.199 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0003887/0.003731, allocations: 440 kB / 270.6 MB, free: 3.73 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.003767, allocations: 8.031 kB / 270.6 MB, free: 3.723 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.919e-05/0.003806, allocations: 16.89 kB / 270.7 MB, free: 3.707 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001684/0.003974, allocations: 168.1 kB / 270.8 MB, free: 3.516 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.003985, allocations: 8.375 kB / 270.8 MB, free: 3.508 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.003998, allocations: 8.375 kB / 270.8 MB, free: 3.5 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002724/0.004271, allocations: 187.7 kB / 271 MB, free: 3.293 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.004279, allocations: 192 / 271 MB, free: 3.293 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.004288, allocations: 4.375 kB / 271 MB, free: 3.289 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.004295, allocations: 384 / 271 MB, free: 3.289 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.327e-05/0.004339, allocations: 27.86 kB / 271 MB, free: 3.262 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004638/0.004803, allocations: 422.4 kB / 271.5 MB, free: 2.805 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001259/0.004928, allocations: 121.2 kB / 271.6 MB, free: 2.648 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.894e-05/0.004987, allocations: 51.23 kB / 271.6 MB, free: 2.586 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.00501, allocations: 4 kB / 271.6 MB, free: 2.582 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.005031, allocations: 41.39 kB / 271.7 MB, free: 2.531 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 8.42e-07/0.005032, allocations: 0 / 271.7 MB, free: 2.531 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001962/0.005228, allocations: 113.4 kB / 271.8 MB, free: 2.414 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.082e-05/0.005279, allocations: 110.8 kB / 271.9 MB, free: 2.281 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.005381, allocations: 221.1 kB / 272.1 MB, free: 2.051 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.005392, allocations: 33.7 kB / 272.1 MB, free: 2.012 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.311e-05/0.005445, allocations: 143.1 kB / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.297e-06/0.005454, allocations: 3.953 kB / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.75e-05/0.005482, allocations: 27.36 kB / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.931e-05/0.005581, allocations: 496.1 kB / 272.8 MB, free: 1.328 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.768e-06/0.005591, allocations: 3.938 kB / 272.8 MB, free: 1.324 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.738e-05/0.005608, allocations: 27.36 kB / 272.8 MB, free: 1.289 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.24e-05/0.00563, allocations: 19.38 kB / 272.8 MB, free: 1.262 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.005633, allocations: 64 / 272.8 MB, free: 1.262 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.786e-05/0.00568, allocations: 53.59 kB / 272.9 MB, free: 1.203 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/0.005691, allocations: 7.938 kB / 272.9 MB, free: 1.195 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.005695, allocations: 0 / 272.9 MB, free: 1.195 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.005707, allocations: 4 kB / 272.9 MB, free: 1.191 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.916e-05/0.005756, allocations: 7.984 kB / 272.9 MB, free: 1.184 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.217e-06/0.005761, allocations: 0 / 272.9 MB, free: 1.184 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.366e-05/0.005774, allocations: 0 / 272.9 MB, free: 1.184 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.78e-06/0.00578, allocations: 4 kB / 272.9 MB, free: 1.18 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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 5.824e-05/0.005838, allocations: 156.6 kB / 273.1 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.561e-05/0.005924, allocations: 81.64 kB / 273.2 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.481e-05/0.005959, allocations: 24.7 kB / 273.2 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.005961, allocations: 4 kB / 273.2 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.005965, allocations: 4 kB / 273.2 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.005969, allocations: 3.984 kB / 273.2 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001323/0.006102, allocations: 144.5 kB / 273.3 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.006103, allocations: 0 / 273.3 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.921e-05/0.006162, allocations: 31.92 kB / 273.4 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.006164, allocations: 0 / 273.4 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.00617, allocations: 0 / 273.4 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.006174, allocations: 11.94 kB / 273.4 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.006174, allocations: 0 / 273.4 MB, free: 0.6719 MB / 250.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:337:7-337:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) sum1.y sum2.u[2] sum2.y hold1.u hold1.y sample2.y sum1.u[2] sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum1.u[2] = sample2.y sample2.y = $getPart(hold1.y) hold1.y = $getPart(hold1.u) hold1.u = sum2.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] = sum1.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:347:7-347:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: sum1.y sum2.u[2] sum2.y hold1.u hold1.y sample2.y sum1.u[2] equations: sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum1.u[2] = sample2.y sample2.y = $getPart(hold1.y) hold1.y = $getPart(hold1.u) hold1.u = sum2.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] = sum1.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:351:7-351:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:202:5-202:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:113:7-113:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8020:5-8020:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002331/0.006407, allocations: 447.5 kB / 273.8 MB, free: 216 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.294e-05/0.00644, allocations: 19.89 kB / 273.8 MB, free: 196 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.006453, allocations: 8 kB / 273.8 MB, free: 188 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.602e-05/0.006509, allocations: 3.938 kB / 273.8 MB, free: 184 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.762e-05/0.006537, allocations: 4 kB / 273.8 MB, free: 180 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.006543, allocations: 11.98 kB / 273.9 MB, free: 168 kB / 250.7 MB Notification: Performance of sorting global known variables: time 5.305e-05/0.006596, allocations: 147.2 kB / 274 MB, free: 20 kB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006596, allocations: 0 / 274 MB, free: 20 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001745/0.006771, allocations: 12 kB / 274 MB, free: 8 kB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,hold1.y,sample1.y,hold1.u,sample2.y,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y,integerConstant.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.256e-05/0.006843, allocations: 99.23 kB / 274.1 MB, free: 15.9 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.675e-05/0.00692, allocations: 35.62 kB / 274.1 MB, free: 15.86 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.006922, allocations: 0 / 274.1 MB, free: 15.86 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.518e-05/0.006937, allocations: 19.8 kB / 274.2 MB, free: 15.84 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002849/0.007222, allocations: 42.77 kB / 274.2 MB, free: 15.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002953/0.007517, allocations: 246.2 kB / 274.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.273e-05/0.00756, allocations: 71.33 kB / 274.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.316e-05/0.007573, allocations: 3.938 kB / 274.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.558e-05/0.007598, allocations: 12.5 kB / 274.5 MB, free: 15.42 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.007599, allocations: 0 / 274.5 MB, free: 15.42 MB / 266.7 MB Notification: Performance of Templates: time 0.002336/0.009935, allocations: 0.9405 MB / 275.5 MB, free: 14.49 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.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: 3.0415417407639325]