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.0007502/0.0007502, allocations: 84 kB / 21.43 MB, free: 3.133 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.002908/0.002908, allocations: 153.4 kB / 24.69 MB, free: 9.434 MB / 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 0.8355/0.8355, allocations: 173.4 MB / 201.2 MB, free: 9.422 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 1.573e-06/1.573e-06, allocations: 0 / 319.7 MB, free: 5.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.279e-05/2.437e-05, allocations: 10.16 kB / 319.7 MB, free: 5.719 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.001948/0.001972, allocations: 1.605 MB / 321.3 MB, free: 4.098 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003291/0.002301, allocations: 175.3 kB / 321.5 MB, free: 3.926 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.079e-05/0.002372, allocations: 8 kB / 321.5 MB, free: 3.918 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.568e-05/0.002458, allocations: 15.8 kB / 321.5 MB, free: 3.902 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001137/0.002571, allocations: 19.86 kB / 321.5 MB, free: 3.883 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001745/0.002746, allocations: 47.81 kB / 321.6 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001107/0.002857, allocations: 71.77 kB / 321.6 MB, free: 3.766 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.002959, allocations: 35.84 kB / 321.7 MB, free: 3.73 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.397e-05/0.003003, allocations: 31.91 kB / 321.7 MB, free: 3.699 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.012e-05/0.003073, allocations: 31.89 kB / 321.7 MB, free: 3.668 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.744e-05/0.0031, allocations: 8 kB / 321.7 MB, free: 3.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.799e-06/0.00311, allocations: 4 kB / 321.7 MB, free: 3.656 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.908e-05/0.003149, allocations: 27.86 kB / 321.8 MB, free: 3.629 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.878e-05/0.003178, allocations: 27.92 kB / 321.8 MB, free: 3.602 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.003295, allocations: 83.69 kB / 321.9 MB, free: 3.52 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.513e-06/0.003296, allocations: 4 kB / 321.9 MB, free: 3.516 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.003297, allocations: 0 / 321.9 MB, free: 3.516 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.003301, allocations: 0 / 321.9 MB, free: 3.516 MB / 282.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.0004148/0.003715, allocations: 333.1 kB / 322.2 MB, free: 3.16 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.979e-05/0.003745, allocations: 12.03 kB / 322.2 MB, free: 3.148 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.852e-05/0.003774, allocations: 12.84 kB / 322.2 MB, free: 3.137 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001494/0.003923, allocations: 151.3 kB / 322.4 MB, free: 2.965 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.003934, allocations: 20.3 kB / 322.4 MB, free: 2.945 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.003945, allocations: 4.375 kB / 322.4 MB, free: 2.941 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002874/0.004232, allocations: 213.1 kB / 322.6 MB, free: 2.715 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.373e-06/0.004239, allocations: 192 / 322.6 MB, free: 2.715 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-06/0.004248, allocations: 4.312 kB / 322.6 MB, free: 2.711 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.004254, allocations: 8.312 kB / 322.6 MB, free: 2.703 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.416e-05/0.004328, allocations: 55.91 kB / 322.7 MB, free: 2.648 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002785/0.004606, allocations: 317.5 kB / 323 MB, free: 2.301 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.004726, allocations: 119.9 kB / 323.1 MB, free: 2.156 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.918e-05/0.004795, allocations: 66.61 kB / 323.2 MB, free: 2.082 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.004816, allocations: 4 kB / 323.2 MB, free: 2.078 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.004838, allocations: 46.48 kB / 323.2 MB, free: 2.023 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 9.02e-07/0.004838, allocations: 0 / 323.2 MB, free: 2.023 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002391/0.005077, allocations: 161.5 kB / 323.4 MB, free: 1.859 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.005126, allocations: 114.8 kB / 323.5 MB, free: 1.723 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.989e-05/0.005215, allocations: 169.1 kB / 323.6 MB, free: 1.551 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.005226, allocations: 25.7 kB / 323.7 MB, free: 1.52 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.277e-05/0.005269, allocations: 96.42 kB / 323.8 MB, free: 1.418 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.767e-06/0.005277, allocations: 3.984 kB / 323.8 MB, free: 1.414 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.611e-05/0.005304, allocations: 25.67 kB / 323.8 MB, free: 1.383 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.63e-05/0.00538, allocations: 318.8 kB / 324.1 MB, free: 1.062 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.079e-05/0.005401, allocations: 8 kB / 324.1 MB, free: 1.055 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.303e-05/0.005424, allocations: 29.86 kB / 324.1 MB, free: 1.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.72e-05/0.005461, allocations: 29.64 kB / 324.2 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.005463, allocations: 0 / 324.2 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.314e-05/0.005526, allocations: 53.64 kB / 324.2 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.00554, allocations: 11.12 kB / 324.2 MB, free: 0.918 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.005544, allocations: 0 / 324.2 MB, free: 0.918 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.005554, allocations: 7.938 kB / 324.2 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.074e-05/0.005594, allocations: 12.06 kB / 324.3 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.005599, allocations: 3.938 kB / 324.3 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.564e-05/0.005614, allocations: 7.984 kB / 324.3 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-06/0.005619, allocations: 0 / 324.3 MB, free: 0.8867 MB / 282.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 6.26e-05/0.005682, allocations: 121.8 kB / 324.4 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.133e-05/0.005773, allocations: 105.5 kB / 324.5 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.634e-05/0.005799, allocations: 20.72 kB / 324.5 MB, free: 0.625 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.005801, allocations: 4 kB / 324.5 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.005805, allocations: 0 / 324.5 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.005809, allocations: 4 kB / 324.5 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001219/0.00593, allocations: 137.2 kB / 324.6 MB, free: 464 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.005933, allocations: 4 kB / 324.7 MB, free: 460 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.136e-05/0.005984, allocations: 23.98 kB / 324.7 MB, free: 436 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.005986, allocations: 0 / 324.7 MB, free: 436 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.806e-06/0.005995, allocations: 11.98 kB / 324.7 MB, free: 424 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.005997, allocations: 3.938 kB / 324.7 MB, free: 420 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.005998, allocations: 0 / 324.7 MB, free: 420 kB / 282.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:7979:5-7979: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.0002374/0.006235, allocations: 388.3 kB / 325.1 MB, free: 8 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.557e-05/0.006281, allocations: 27.97 kB / 325.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.155e-05/0.006292, allocations: 4 kB / 325.1 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.738e-05/0.00635, allocations: 11.92 kB / 325.1 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.284e-05/0.006373, allocations: 0 / 325.1 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.006377, allocations: 4 kB / 325.1 MB, free: 15.96 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.59e-05/0.006433, allocations: 123.1 kB / 325.2 MB, free: 15.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006433, allocations: 0 / 325.2 MB, free: 15.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000163/0.006596, allocations: 8 kB / 325.2 MB, free: 15.83 MB / 298.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 7.109e-05/0.006667, allocations: 111.2 kB / 325.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001047/0.006772, allocations: 51.97 kB / 325.4 MB, free: 15.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.006773, allocations: 3.938 kB / 325.4 MB, free: 15.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.701e-05/0.00679, allocations: 4 kB / 325.4 MB, free: 15.65 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.007086, allocations: 68.25 kB / 325.5 MB, free: 15.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003218/0.007408, allocations: 265.3 kB / 325.7 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.74e-05/0.007505, allocations: 96.31 kB / 325.8 MB, free: 15.17 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.779e-05/0.007533, allocations: 12.5 kB / 325.8 MB, free: 15.16 MB / 298.7 MB Notification: Performance of SimCode: time 4.21e-07/0.007534, allocations: 0 / 325.8 MB, free: 15.16 MB / 298.7 MB Notification: Performance of Templates: time 0.001631/0.009164, allocations: 1.096 MB / 326.9 MB, free: 14.07 MB / 298.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=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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 4.07367626298219]