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.001012/0.001012, 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.001072/0.001072, 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.03/1.03, allocations: 173.4 MB / 201.1 MB, free: 9.344 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 2.655e-06/2.655e-06, allocations: 3.938 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.994e-05/4.259e-05, allocations: 6.25 kB / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002773/0.002815, allocations: 1.666 MB / 269.7 MB, free: 4.773 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004709/0.003286, allocations: 183.3 kB / 269.8 MB, free: 4.594 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.003386, allocations: 0 / 269.8 MB, free: 4.594 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.003516, allocations: 11.86 kB / 269.8 MB, free: 4.582 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.003685, allocations: 11.88 kB / 269.9 MB, free: 4.57 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002642/0.003949, allocations: 59.75 kB / 269.9 MB, free: 4.512 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000135/0.004084, allocations: 55.84 kB / 270 MB, free: 4.457 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.004229, allocations: 31.91 kB / 270 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.155e-05/0.00429, allocations: 35.91 kB / 270 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.004401, allocations: 35.89 kB / 270.1 MB, free: 4.355 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.078e-05/0.004432, allocations: 4 kB / 270.1 MB, free: 4.352 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.53e-05/0.004447, allocations: 11.94 kB / 270.1 MB, free: 4.34 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.936e-05/0.004506, allocations: 23.92 kB / 270.1 MB, free: 4.316 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.144e-05/0.004548, allocations: 23.91 kB / 270.1 MB, free: 4.293 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001479/0.004696, allocations: 59.75 kB / 270.2 MB, free: 4.234 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.004699, allocations: 0 / 270.2 MB, free: 4.234 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.0047, allocations: 0 / 270.2 MB, free: 4.234 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.004705, allocations: 3.938 kB / 270.2 MB, free: 4.23 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.0004609/0.005166, allocations: 440.1 kB / 270.6 MB, free: 3.762 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.005208, allocations: 8.031 kB / 270.6 MB, free: 3.754 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.691e-05/0.005255, allocations: 24.83 kB / 270.7 MB, free: 3.73 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003186/0.005573, allocations: 169.7 kB / 270.8 MB, free: 3.539 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.00559, allocations: 4.375 kB / 270.8 MB, free: 3.535 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.00561, allocations: 8.375 kB / 270.8 MB, free: 3.527 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004517/0.006062, allocations: 181.1 kB / 271 MB, free: 3.32 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.006074, allocations: 192 / 271 MB, free: 3.32 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.006087, allocations: 4.375 kB / 271 MB, free: 3.316 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.006099, allocations: 4.375 kB / 271 MB, free: 3.312 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.919e-05/0.006168, allocations: 27.86 kB / 271.1 MB, free: 3.285 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000584/0.006752, allocations: 422.3 kB / 271.5 MB, free: 2.828 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001985/0.006951, allocations: 113.2 kB / 271.6 MB, free: 2.68 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.218e-05/0.007043, allocations: 55.17 kB / 271.6 MB, free: 2.613 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.007073, allocations: 4 kB / 271.6 MB, free: 2.609 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.007108, allocations: 45.38 kB / 271.7 MB, free: 2.555 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.803e-06/0.00711, allocations: 4 kB / 271.7 MB, free: 2.551 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003367/0.007447, allocations: 109.4 kB / 271.8 MB, free: 2.438 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.111e-05/0.007528, allocations: 110.8 kB / 271.9 MB, free: 2.305 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.007692, allocations: 216.9 kB / 272.1 MB, free: 2.078 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.007709, allocations: 29.7 kB / 272.1 MB, free: 2.043 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.615e-05/0.007786, allocations: 135.2 kB / 272.3 MB, free: 1.902 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.741e-05/0.007803, allocations: 11.89 kB / 272.3 MB, free: 1.891 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.885e-05/0.007852, allocations: 27.36 kB / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.008019, allocations: 0.4923 MB / 272.8 MB, free: 1.352 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.715e-05/0.008036, allocations: 256 / 272.8 MB, free: 1.352 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.6e-05/0.008062, allocations: 27.31 kB / 272.8 MB, free: 1.316 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.01e-05/0.008102, allocations: 23.38 kB / 272.8 MB, free: 1.285 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.008105, allocations: 0 / 272.8 MB, free: 1.285 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.114e-05/0.008196, allocations: 45.59 kB / 272.9 MB, free: 1.234 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.008218, allocations: 11.92 kB / 272.9 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.008223, allocations: 0 / 272.9 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.008243, allocations: 4 kB / 272.9 MB, free: 1.219 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.455e-05/0.008317, allocations: 4 kB / 272.9 MB, free: 1.215 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.008323, allocations: 4.125 kB / 272.9 MB, free: 1.211 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.847e-05/0.008351, allocations: 4 kB / 272.9 MB, free: 1.207 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.008359, allocations: 0 / 272.9 MB, free: 1.207 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 9.716e-05/0.008456, allocations: 156.6 kB / 273.1 MB, free: 1.043 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001602/0.008616, allocations: 81.58 kB / 273.2 MB, free: 0.957 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.43e-05/0.008671, allocations: 28.7 kB / 273.2 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.008676, allocations: 4 kB / 273.2 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.008681, allocations: 0 / 273.2 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.008686, allocations: 0 / 273.2 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000234/0.00892, allocations: 148.5 kB / 273.3 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.008923, allocations: 4 kB / 273.3 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001208/0.009044, allocations: 23.92 kB / 273.4 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.00905, allocations: 4 kB / 273.4 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.009064, allocations: 4 kB / 273.4 MB, free: 0.707 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.00907, allocations: 7.938 kB / 273.4 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.009072, allocations: 0 / 273.4 MB, free: 0.6992 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.0004346/0.009507, allocations: 450.1 kB / 273.8 MB, free: 244 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.716e-05/0.009564, allocations: 27.89 kB / 273.8 MB, free: 216 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.009584, allocations: 8 kB / 273.8 MB, free: 208 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.009699, allocations: 3.938 kB / 273.9 MB, free: 204 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.863e-05/0.009748, allocations: 7.984 kB / 273.9 MB, free: 196 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.009756, allocations: 0 / 273.9 MB, free: 196 kB / 250.7 MB Notification: Performance of sorting global known variables: time 9.005e-05/0.009846, allocations: 151.2 kB / 274 MB, free: 44 kB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.009846, allocations: 0 / 274 MB, free: 44 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003031/0.01015, allocations: 12 kB / 274 MB, free: 32 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 0.000139/0.01029, allocations: 103.3 kB / 274.1 MB, free: 15.92 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001506/0.01044, allocations: 39.55 kB / 274.2 MB, free: 15.88 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.01044, allocations: 4 kB / 274.2 MB, free: 15.88 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.441e-05/0.01047, allocations: 7.688 kB / 274.2 MB, free: 15.86 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005256/0.01099, allocations: 46.77 kB / 274.2 MB, free: 15.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005018/0.0115, allocations: 242.7 kB / 274.5 MB, free: 15.54 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.045e-05/0.01157, allocations: 71.34 kB / 274.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.339e-05/0.01159, allocations: 4.25 kB / 274.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.221e-05/0.01163, allocations: 16.48 kB / 274.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of SimCode: time 1.163e-06/0.01163, allocations: 0 / 274.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of Templates: time 0.004618/0.01625, allocations: 0.9689 MB / 275.5 MB, free: 14.47 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: 2.921845361124724]