Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001746/0.001746, allocations: 118.8 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002166/0.002166, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.673/1.673, allocations: 230.2 MB / 255.2 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001782/0.001782, allocations: 63.89 kB / 374.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1032, allocations: 53.33 MB / 427.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.00311/0.1064, allocations: 1.615 MB / 429.4 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004821/0.1068, allocations: 191.3 kB / 429.6 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.932e-05/0.1069, allocations: 4 kB / 429.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.107, allocations: 11.88 kB / 429.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001323/0.1072, allocations: 19.8 kB / 429.7 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002214/0.1074, allocations: 47.89 kB / 429.7 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001471/0.1075, allocations: 63.83 kB / 429.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.1077, allocations: 31.91 kB / 429.8 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.787e-05/0.1077, allocations: 23.92 kB / 429.8 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001045/0.1078, allocations: 39.78 kB / 429.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.783e-05/0.1079, allocations: 8 kB / 429.9 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.716e-05/0.1079, allocations: 4 kB / 429.9 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.874e-05/0.1079, allocations: 27.92 kB / 429.9 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.259e-05/0.108, allocations: 43.67 kB / 430 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001859/0.1082, allocations: 99.44 kB / 430.1 MB, free: 2.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1082, allocations: 0 / 430.1 MB, free: 2.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1082, allocations: 0 / 430.1 MB, free: 2.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.034e-06/0.1082, allocations: 0 / 430.1 MB, free: 2.27 MB / 350.1 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.0006492/0.1088, allocations: 410.9 kB / 430.5 MB, free: 1.816 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.1089, allocations: 8.031 kB / 430.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.767e-05/0.1089, allocations: 16.83 kB / 430.5 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.1092, allocations: 216.1 kB / 430.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.1092, allocations: 4.375 kB / 430.7 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.704e-05/0.1092, allocations: 8.375 kB / 430.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004372/0.1097, allocations: 198.3 kB / 430.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.1097, allocations: 4.188 kB / 430.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.1097, allocations: 7.938 kB / 430.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.1097, allocations: 0 / 430.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001514/0.1098, allocations: 59.89 kB / 431 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004926/0.1103, allocations: 389.8 kB / 431.3 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/0.1106, allocations: 127.8 kB / 431.5 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.1107, allocations: 70.55 kB / 431.5 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/0.1107, allocations: 4 kB / 431.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.1107, allocations: 38.56 kB / 431.6 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.393e-06/0.1107, allocations: 0 / 431.6 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004094/0.1111, allocations: 165.4 kB / 431.7 MB, free: 368 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.633e-05/0.1112, allocations: 110.8 kB / 431.9 MB, free: 232 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.1114, allocations: 162.4 kB / 432 MB, free: 60 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.1114, allocations: 29.7 kB / 432 MB, free: 24 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.641e-05/0.1115, allocations: 96.36 kB / 432.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.873e-05/0.1115, allocations: 15.94 kB / 432.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.718e-05/0.1115, allocations: 29.66 kB / 432.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1117, allocations: 322.8 kB / 432.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.266e-05/0.1117, allocations: 19.98 kB / 432.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001032/0.1118, allocations: 93.36 kB / 432.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.112, allocations: 109.3 kB / 432.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.112, allocations: 7.938 kB / 432.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00022/0.1122, allocations: 125.4 kB / 432.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.1123, allocations: 8 kB / 432.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.1123, allocations: 0 / 432.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.1123, allocations: 4 kB / 432.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.1124, allocations: 32.27 kB / 432.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.1124, allocations: 0 / 432.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.594e-05/0.1125, allocations: 19.94 kB / 432.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.1125, allocations: 11.98 kB / 432.9 MB, free: 15.05 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,integerConstant.y,sum2.y,sum2.u[2],sum2.u[1],sum1.y,sum1.u[2],sum1.u[1],sample2.y,hold1.y,hold1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001229/0.1126, allocations: 139.5 kB / 433.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002287/0.1128, allocations: 105.6 kB / 433.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.988e-05/0.1129, allocations: 16.72 kB / 433.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1129, allocations: 0 / 433.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.1129, allocations: 7.938 kB / 433.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1129, allocations: 4 kB / 433.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002716/0.1132, allocations: 197.5 kB / 433.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1132, allocations: 480 / 433.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.1133, allocations: 23.98 kB / 433.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1133, allocations: 0 / 433.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.1133, allocations: 7.938 kB / 433.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.289e-06/0.1133, allocations: 7.984 kB / 433.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1133, allocations: 3.938 kB / 433.4 MB, free: 14.48 MB / 366.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332: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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342: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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8012:5-8012: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.0004806/0.1138, allocations: 375.1 kB / 433.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.103e-05/0.1139, allocations: 105 kB / 433.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.212e-05/0.1139, allocations: 11.98 kB / 433.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.114, allocations: 4 kB / 433.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.553e-05/0.114, allocations: 0 / 433.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.114, allocations: 4 kB / 433.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.818e-05/0.1141, allocations: 119.9 kB / 434 MB, free: 13.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1141, allocations: 0 / 434 MB, free: 13.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002827/0.1144, allocations: 16 kB / 434 MB, free: 13.82 MB / 366.1 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.0001263/0.1145, allocations: 119.2 kB / 434.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000223/0.1147, allocations: 79.77 kB / 434.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1147, allocations: 0 / 434.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.234e-05/0.1148, allocations: 12.75 kB / 434.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004546/0.1152, allocations: 63.86 kB / 434.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004874/0.1157, allocations: 281.3 kB / 434.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003677/0.1161, allocations: 0.708 MB / 435.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.33e-05/0.1161, allocations: 15.44 kB / 435.3 MB, free: 12.48 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1161, allocations: 0 / 435.3 MB, free: 12.48 MB / 366.1 MB Notification: Performance of Templates: time 0.002958/0.1191, allocations: 1.188 MB / 436.5 MB, free: 11.29 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.307561276014894]