Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.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.001402/0.001402, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001055/0.001055, allocations: 167.3 kB / 24.99 MB, free: 8.746 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 1.104/1.104, allocations: 177.1 MB / 205.3 MB, free: 5.641 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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.873e-06/1.873e-06, allocations: 0 / 273 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.97e-05/4.157e-05, allocations: 5.547 kB / 273.1 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002579/0.00262, allocations: 1.669 MB / 274.7 MB, free: 176 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004076/0.003028, allocations: 179.4 kB / 274.9 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.934e-05/0.003117, allocations: 3.938 kB / 274.9 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.00322, allocations: 11.81 kB / 274.9 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.003339, allocations: 19.81 kB / 274.9 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001882/0.003527, allocations: 43.89 kB / 275 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001084/0.003636, allocations: 63.77 kB / 275 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.003751, allocations: 39.91 kB / 275.1 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.872e-05/0.0038, allocations: 31.91 kB / 275.1 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.768e-05/0.003878, allocations: 35.83 kB / 275.1 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.003899, allocations: 4 kB / 275.1 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.441e-05/0.003914, allocations: 8 kB / 275.2 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.857e-05/0.003962, allocations: 23.92 kB / 275.2 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.819e-05/0.004001, allocations: 31.84 kB / 275.2 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000121/0.004122, allocations: 59.75 kB / 275.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.004124, allocations: 0 / 275.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.004125, allocations: 0 / 275.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.00413, allocations: 0 / 275.3 MB, free: 15.62 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0004194/0.00455, allocations: 440.1 kB / 275.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.004585, allocations: 8.031 kB / 275.7 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.366e-05/0.004629, allocations: 20.83 kB / 275.7 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/0.0048, allocations: 157.1 kB / 275.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.00481, allocations: 8.375 kB / 275.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/0.004822, allocations: 4.375 kB / 275.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003076/0.00513, allocations: 195.2 kB / 276.1 MB, free: 14.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.005137, allocations: 192 / 276.1 MB, free: 14.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.005149, allocations: 8.312 kB / 276.1 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.005158, allocations: 4.375 kB / 276.1 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.18e-05/0.0052, allocations: 19.92 kB / 276.1 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003636/0.005564, allocations: 422.3 kB / 276.5 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.005702, allocations: 117.4 kB / 276.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.249e-05/0.005765, allocations: 59.03 kB / 276.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.005788, allocations: 12 kB / 276.7 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.005814, allocations: 41.33 kB / 276.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 2.003e-06/0.005816, allocations: 0 / 276.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002347/0.006051, allocations: 109.4 kB / 276.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.601e-05/0.006107, allocations: 110.8 kB / 277 MB, free: 13.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.00622, allocations: 217.1 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.006233, allocations: 33.7 kB / 277.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.59e-05/0.006289, allocations: 135.2 kB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.076e-05/0.0063, allocations: 7.953 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.869e-05/0.006329, allocations: 27.61 kB / 277.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.006438, allocations: 0.4923 MB / 277.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.026e-05/0.006449, allocations: 0 / 277.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.713e-05/0.006466, allocations: 23.36 kB / 277.9 MB, free: 12.72 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.67e-05/0.006492, allocations: 23.31 kB / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.006494, allocations: 0 / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.226e-05/0.006547, allocations: 53.59 kB / 278 MB, free: 12.63 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.00656, allocations: 7.938 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.006564, allocations: 0 / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.006577, allocations: 4.125 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.906e-05/0.006626, allocations: 7.984 kB / 278 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.006631, allocations: 7.938 kB / 278 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.492e-05/0.006646, allocations: 0 / 278 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.006652, allocations: 3.984 kB / 278 MB, free: 12.6 MB / 266.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 8.51e-05/0.006737, allocations: 160.6 kB / 278.2 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.957e-05/0.006836, allocations: 81.91 kB / 278.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.592e-05/0.006882, allocations: 24.7 kB / 278.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.006888, allocations: 4 kB / 278.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.006893, allocations: 0 / 278.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.006898, allocations: 4 kB / 278.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.007069, allocations: 144.5 kB / 278.4 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.00707, allocations: 0 / 278.4 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.313e-05/0.007133, allocations: 19.98 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.007137, allocations: 4 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.007145, allocations: 0 / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.007148, allocations: 3.938 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.007153, allocations: 7.938 kB / 278.4 MB, free: 12.1 MB / 266.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.0002842/0.007437, allocations: 451.6 kB / 278.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.63e-05/0.007474, allocations: 31.86 kB / 278.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.007486, allocations: 0 / 278.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.398e-05/0.00754, allocations: 7.938 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.088e-05/0.00757, allocations: 8 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-06/0.007575, allocations: 0 / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.9e-05/0.007634, allocations: 157.4 kB / 279.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007635, allocations: 3.938 kB / 279.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001832/0.007818, allocations: 8 kB / 279.1 MB, free: 11.42 MB / 266.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.549e-05/0.007893, allocations: 107.2 kB / 279.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.781e-05/0.007981, allocations: 27.62 kB / 279.2 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.007982, allocations: 0 / 279.2 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.619e-05/0.007999, allocations: 19.67 kB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.008308, allocations: 54.03 kB / 279.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005993/0.008908, allocations: 231 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.682e-05/0.008954, allocations: 75.33 kB / 279.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.519e-05/0.00897, allocations: 4 kB / 279.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.753e-05/0.008997, allocations: 12.5 kB / 279.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of SimCode: time 6.12e-07/0.008998, allocations: 0 / 279.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of Templates: time 0.002493/0.01149, allocations: 0.9283 MB / 280.5 MB, free: 9.926 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.9077566619962454]