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.001566/0.001566, allocations: 105.4 kB / 19.8 MB, free: 2.516 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.002136/0.002136, allocations: 213.5 kB / 23 MB, free: 5.609 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.582/1.582, allocations: 230.2 MB / 256.2 MB, free: 8.543 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.002207/0.002207, allocations: 64.12 kB / 376.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3969/0.3991, allocations: 53.32 MB / 429.8 MB, free: 7.562 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.004156/0.4033, allocations: 1.632 MB / 431.4 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006354/0.4039, allocations: 187.4 kB / 431.6 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.404, allocations: 4 kB / 431.6 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001499/0.4042, allocations: 7.875 kB / 431.6 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001789/0.4043, allocations: 19.86 kB / 431.6 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002769/0.4046, allocations: 43.89 kB / 431.7 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001716/0.4048, allocations: 71.77 kB / 431.8 MB, free: 5.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.405, allocations: 23.97 kB / 431.8 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.562e-05/0.405, allocations: 35.86 kB / 431.8 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.4051, allocations: 31.84 kB / 431.8 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.555e-05/0.4052, allocations: 8 kB / 431.8 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.614e-05/0.4052, allocations: 4 kB / 431.9 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.552e-05/0.4053, allocations: 27.86 kB / 431.9 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.097e-05/0.4053, allocations: 47.72 kB / 431.9 MB, free: 5.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000206/0.4055, allocations: 92.72 kB / 432 MB, free: 5.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.4055, allocations: 0 / 432 MB, free: 5.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4055, allocations: 4 kB / 432 MB, free: 5.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.685e-06/0.4056, allocations: 0 / 432 MB, free: 5.328 MB / 334.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.0007363/0.4063, allocations: 414.8 kB / 432.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.4063, allocations: 12.03 kB / 432.4 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.718e-05/0.4064, allocations: 16.83 kB / 432.5 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/0.4067, allocations: 208.1 kB / 432.7 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.4067, allocations: 8.375 kB / 432.7 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.57e-05/0.4067, allocations: 8.375 kB / 432.7 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004842/0.4072, allocations: 202.3 kB / 432.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.4072, allocations: 192 / 432.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.028e-05/0.4072, allocations: 7.938 kB / 432.9 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.4072, allocations: 0 / 432.9 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001412/0.4074, allocations: 59.89 kB / 432.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007242/0.4081, allocations: 393.8 kB / 433.3 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002522/0.4084, allocations: 123.8 kB / 433.4 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.4085, allocations: 70.61 kB / 433.5 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.4085, allocations: 7.938 kB / 433.5 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/0.4086, allocations: 34.56 kB / 433.6 MB, free: 3.582 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.132e-06/0.4086, allocations: 0 / 433.6 MB, free: 3.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004728/0.409, allocations: 161.7 kB / 433.7 MB, free: 3.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.4091, allocations: 115.2 kB / 433.8 MB, free: 3.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.4093, allocations: 169.4 kB / 434 MB, free: 3.109 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.4093, allocations: 25.7 kB / 434 MB, free: 3.078 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.107e-05/0.4094, allocations: 92.42 kB / 434.1 MB, free: 2.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.33e-05/0.4095, allocations: 19.88 kB / 434.1 MB, free: 2.961 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.153e-05/0.4095, allocations: 25.72 kB / 434.1 MB, free: 2.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.4097, allocations: 322.8 kB / 434.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.942e-05/0.4097, allocations: 23.98 kB / 434.5 MB, free: 2.582 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.4098, allocations: 81.44 kB / 434.6 MB, free: 2.469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001759/0.41, allocations: 117.3 kB / 434.7 MB, free: 2.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.41, allocations: 3.938 kB / 434.7 MB, free: 2.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002156/0.4102, allocations: 125.7 kB / 434.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.4103, allocations: 14.69 kB / 434.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.4103, allocations: 0 / 434.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.682e-05/0.4103, allocations: 4 kB / 434.8 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.4104, allocations: 27.92 kB / 434.9 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.4104, allocations: 4 kB / 434.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.203e-05/0.4105, allocations: 15.83 kB / 434.9 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.4105, allocations: 4 kB / 434.9 MB, free: 2.121 MB / 334.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.00015/0.4106, allocations: 145.7 kB / 435 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001782/0.4108, allocations: 105.6 kB / 435.1 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.49e-05/0.4109, allocations: 20.7 kB / 435.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.4109, allocations: 0 / 435.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.4109, allocations: 4 kB / 435.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.4109, allocations: 0 / 435.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002854/0.4112, allocations: 197.5 kB / 435.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.4112, allocations: 0 / 435.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.4113, allocations: 23.98 kB / 435.4 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.4113, allocations: 0 / 435.4 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.4113, allocations: 4 kB / 435.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.4113, allocations: 4 kB / 435.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4113, allocations: 0 / 435.4 MB, free: 1.559 MB / 334.1 MB [/var/lib/jenkins/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/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/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.0005287/0.4118, allocations: 396.3 kB / 435.8 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.4119, allocations: 101 kB / 435.9 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.412, allocations: 4 kB / 435.9 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.4121, allocations: 7.984 kB / 435.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.224e-05/0.4121, allocations: 0 / 435.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.4121, allocations: 4.094 kB / 435.9 MB, free: 1.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001177/0.4122, allocations: 123.2 kB / 436 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4122, allocations: 4 kB / 436 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000282/0.4125, allocations: 12 kB / 436 MB, free: 0.8828 MB / 334.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.0001647/0.4127, allocations: 111.2 kB / 436.1 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000266/0.413, allocations: 76.47 kB / 436.2 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.413, allocations: 4.062 kB / 436.2 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.756e-05/0.413, allocations: 11.98 kB / 436.2 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005156/0.4135, allocations: 70.81 kB / 436.3 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005363/0.414, allocations: 247.8 kB / 436.5 MB, free: 340 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004667/0.4145, allocations: 0.7081 MB / 437.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.987e-05/0.4145, allocations: 8.562 kB / 437.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.034e-05/0.4146, allocations: 15.44 kB / 437.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.4146, allocations: 0 / 437.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of Templates: time 0.00415/0.4187, allocations: 0.9748 MB / 438.2 MB, free: 14.61 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 4.894037398509681]