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.001772/0.001772, allocations: 116 kB / 18.45 MB, free: 4.566 MB / 14.72 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.002488/0.002488, allocations: 213.6 kB / 21.42 MB, free: 1.605 MB / 14.72 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.533/1.533, allocations: 230.6 MB / 254.8 MB, free: 15.22 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001596/0.001596, allocations: 51.92 kB / 374.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1107, allocations: 53.33 MB / 427.5 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003558/0.1143, allocations: 1.62 MB / 429.1 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005704/0.1149, allocations: 183.4 kB / 429.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.115, allocations: 3.938 kB / 429.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000134/0.1151, allocations: 19.86 kB / 429.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.1152, allocations: 7.875 kB / 429.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003084/0.1156, allocations: 55.88 kB / 429.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.1157, allocations: 63.83 kB / 429.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.1158, allocations: 27.92 kB / 429.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.174e-05/0.1159, allocations: 27.92 kB / 429.5 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.116, allocations: 39.78 kB / 429.5 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.479e-05/0.116, allocations: 4 kB / 429.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.385e-05/0.116, allocations: 4 kB / 429.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.413e-05/0.1161, allocations: 35.91 kB / 429.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.003e-05/0.1162, allocations: 43.67 kB / 429.6 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001847/0.1163, allocations: 91.45 kB / 429.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1163, allocations: 4 kB / 429.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1164, allocations: 0 / 429.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1164, allocations: 0 / 429.7 MB, free: 2.074 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.0006701/0.117, allocations: 406.9 kB / 430.1 MB, free: 1.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.1171, allocations: 12.03 kB / 430.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.935e-05/0.1171, allocations: 12.83 kB / 430.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/0.1174, allocations: 216.1 kB / 430.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.1174, allocations: 8.375 kB / 430.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.972e-05/0.1174, allocations: 4.375 kB / 430.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004578/0.1179, allocations: 210.3 kB / 430.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.1179, allocations: 192 / 430.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.1179, allocations: 7.938 kB / 430.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1179, allocations: 4 kB / 430.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000154/0.1181, allocations: 59.84 kB / 430.6 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005219/0.1186, allocations: 389.8 kB / 431 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.1188, allocations: 123.6 kB / 431.1 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.119, allocations: 70.73 kB / 431.2 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.119, allocations: 7.984 kB / 431.2 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.119, allocations: 38.56 kB / 431.2 MB, free: 332 kB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.082e-06/0.119, allocations: 0 / 431.2 MB, free: 332 kB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004366/0.1194, allocations: 157.5 kB / 431.4 MB, free: 168 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.844e-05/0.1195, allocations: 114.8 kB / 431.5 MB, free: 28 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.1197, allocations: 161.5 kB / 431.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.1197, allocations: 33.7 kB / 431.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.884e-05/0.1198, allocations: 92.41 kB / 431.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.047e-05/0.1198, allocations: 11.95 kB / 431.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.237e-05/0.1199, allocations: 37.64 kB / 431.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.1201, allocations: 314.8 kB / 432.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.422e-05/0.1201, allocations: 23.92 kB / 432.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001033/0.1202, allocations: 85.42 kB / 432.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.1204, allocations: 113.3 kB / 432.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.1204, allocations: 7.938 kB / 432.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003294/0.1207, allocations: 129.3 kB / 432.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1208, allocations: 10.19 kB / 432.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.1208, allocations: 0 / 432.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.1208, allocations: 7.984 kB / 432.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.1209, allocations: 24.66 kB / 432.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.1209, allocations: 11.98 kB / 432.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.006e-05/0.121, allocations: 7.953 kB / 432.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.121, allocations: 4 kB / 432.6 MB, free: 14.87 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.0001452/0.1211, allocations: 149.6 kB / 432.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.1213, allocations: 97.62 kB / 432.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.322e-05/0.1214, allocations: 16.72 kB / 432.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1214, allocations: 4 kB / 432.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1214, allocations: 4 kB / 432.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.1214, allocations: 3.984 kB / 432.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003545/0.1217, allocations: 197.5 kB / 433 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1217, allocations: 3.984 kB / 433 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.1219, allocations: 27.92 kB / 433.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1219, allocations: 0 / 433.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.1219, allocations: 7.938 kB / 433.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1219, allocations: 0 / 433.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1219, allocations: 3.984 kB / 433.1 MB, free: 14.29 MB / 366.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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/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/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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/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.000506/0.1224, allocations: 385.1 kB / 433.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.66e-05/0.1225, allocations: 109 kB / 433.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.1225, allocations: 4 kB / 433.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/0.1226, allocations: 4 kB / 433.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.253e-05/0.1226, allocations: 0 / 433.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.1227, allocations: 4 kB / 433.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.648e-05/0.1228, allocations: 123.2 kB / 433.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1228, allocations: 0 / 433.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002989/0.1231, allocations: 12 kB / 433.7 MB, free: 13.63 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.0001367/0.1232, allocations: 103.2 kB / 433.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000242/0.1234, allocations: 95.64 kB / 433.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1234, allocations: 0 / 433.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.977e-05/0.1235, allocations: 4.75 kB / 433.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004856/0.124, allocations: 72.23 kB / 434 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005512/0.1245, allocations: 285.3 kB / 434.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/0.1249, allocations: 0.7041 MB / 434.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.706e-05/0.1249, allocations: 11.44 kB / 435 MB, free: 12.29 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1249, allocations: 0 / 435 MB, free: 12.29 MB / 366.1 MB Notification: Performance of Templates: time 0.003276/0.1282, allocations: 1.195 MB / 436.2 MB, free: 11.09 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.0669093699834775]