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.001637/0.001637, allocations: 123.4 kB / 18.46 MB, free: 4.449 MB / 14.72 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.001881/0.001881, allocations: 192.3 kB / 21.4 MB, free: 1.52 MB / 14.72 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.399/1.399, allocations: 225.6 MB / 249.8 MB, free: 3.605 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001434/0.001434, allocations: 51.92 kB / 366.8 MB, free: 404 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09274/0.09417, allocations: 52.14 MB / 418.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002953/0.09713, allocations: 1.62 MB / 420.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00048/0.09761, allocations: 183.4 kB / 420.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.403e-05/0.09769, allocations: 7.938 kB / 420.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.0978, allocations: 11.86 kB / 420.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.09792, allocations: 11.92 kB / 420.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002221/0.09814, allocations: 59.81 kB / 420.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001343/0.09828, allocations: 59.84 kB / 420.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.0984, allocations: 27.98 kB / 420.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.951e-05/0.09844, allocations: 27.8 kB / 420.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.549e-05/0.09854, allocations: 47.77 kB / 421 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.541e-05/0.09856, allocations: 4 kB / 421 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.781e-05/0.09858, allocations: 8 kB / 421 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.007e-05/0.09863, allocations: 23.92 kB / 421 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.131e-05/0.09869, allocations: 43.67 kB / 421.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001517/0.09884, allocations: 87.52 kB / 421.2 MB, free: 9.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.09885, allocations: 4 kB / 421.2 MB, free: 9.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.09885, allocations: 0 / 421.2 MB, free: 9.938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.09886, allocations: 0 / 421.2 MB, free: 9.938 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.0005794/0.09944, allocations: 410.9 kB / 421.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.09947, allocations: 15.89 kB / 421.6 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.716e-05/0.09951, allocations: 16.78 kB / 421.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00025/0.09976, allocations: 208.1 kB / 421.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.09978, allocations: 12.38 kB / 421.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.713e-05/0.09979, allocations: 4.375 kB / 421.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004162/0.1002, allocations: 210.3 kB / 422 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.1002, allocations: 4.125 kB / 422 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.1002, allocations: 7.875 kB / 422 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.1002, allocations: 8 kB / 422 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.1004, allocations: 47.97 kB / 422.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004847/0.1009, allocations: 389.8 kB / 422.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.1011, allocations: 127.8 kB / 422.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.1012, allocations: 66.61 kB / 422.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.1012, allocations: 7.984 kB / 422.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.1012, allocations: 38.5 kB / 422.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.223e-06/0.1012, allocations: 0 / 422.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004007/0.1016, allocations: 165.4 kB / 422.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.078e-05/0.1017, allocations: 114.8 kB / 423 MB, free: 7.879 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.1019, allocations: 155.2 kB / 423.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.1019, allocations: 33.7 kB / 423.2 MB, free: 7.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.805e-05/0.102, allocations: 92.66 kB / 423.3 MB, free: 7.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.229e-05/0.102, allocations: 8 kB / 423.3 MB, free: 7.574 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.927e-05/0.102, allocations: 37.66 kB / 423.3 MB, free: 7.531 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.1022, allocations: 314.8 kB / 423.6 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.797e-05/0.1022, allocations: 19.98 kB / 423.6 MB, free: 7.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001024/0.1023, allocations: 93.36 kB / 423.7 MB, free: 7.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.1025, allocations: 113.2 kB / 423.8 MB, free: 6.926 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1025, allocations: 3.938 kB / 423.8 MB, free: 6.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002129/0.1027, allocations: 129.4 kB / 424 MB, free: 6.789 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.1027, allocations: 10.41 kB / 424 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1027, allocations: 3.984 kB / 424 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.1027, allocations: 4 kB / 424 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.1028, allocations: 28 kB / 424 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.1029, allocations: 15.86 kB / 424 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.414e-05/0.1029, allocations: 4.344 kB / 424 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.1029, allocations: 8 kB / 424 MB, free: 6.719 MB / 350.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.0001205/0.103, allocations: 141.8 kB / 424.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.1032, allocations: 109.5 kB / 424.3 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.445e-05/0.1033, allocations: 16.72 kB / 424.3 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.1033, allocations: 4 kB / 424.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1033, allocations: 0 / 424.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.1033, allocations: 3.984 kB / 424.3 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002551/0.1035, allocations: 201.5 kB / 424.5 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1035, allocations: 3.984 kB / 424.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.1036, allocations: 27.98 kB / 424.5 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1036, allocations: 0 / 424.5 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.1037, allocations: 4 kB / 424.5 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.1037, allocations: 3.938 kB / 424.5 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1037, allocations: 0 / 424.5 MB, free: 6.145 MB / 350.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.0004437/0.1041, allocations: 389 kB / 424.9 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.373e-05/0.1042, allocations: 105 kB / 425 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.1042, allocations: 0 / 425 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.1043, allocations: 8 kB / 425 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.1043, allocations: 7.938 kB / 425 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.1044, allocations: 7.984 kB / 425 MB, free: 5.602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.634e-05/0.1044, allocations: 122.5 kB / 425.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1044, allocations: 0 / 425.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.1048, allocations: 8 kB / 425.2 MB, free: 5.477 MB / 350.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.0001144/0.1049, allocations: 107.2 kB / 425.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002235/0.1051, allocations: 87.83 kB / 425.4 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1051, allocations: 0 / 425.4 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.066e-05/0.1051, allocations: 11.94 kB / 425.4 MB, free: 5.266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000452/0.1056, allocations: 68.98 kB / 425.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004778/0.1061, allocations: 288.8 kB / 425.7 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.1064, allocations: 0.7078 MB / 426.4 MB, free: 4.152 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.388e-05/0.1064, allocations: 11.44 kB / 426.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1064, allocations: 3.938 kB / 426.4 MB, free: 4.137 MB / 350.1 MB Notification: Performance of Templates: time 0.002928/0.1094, allocations: 1.18 MB / 427.6 MB, free: 2.957 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 6.449818906839937]