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.001322/0.001322, allocations: 81.58 kB / 20.68 MB, free: 1.023 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.001368/0.001368, allocations: 151.1 kB / 23.94 MB, free: 4.164 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.464/1.464, allocations: 173.4 MB / 200.4 MB, free: 12.88 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 2.314e-06/2.314e-06, allocations: 0 / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.92e-05/4.152e-05, allocations: 6.219 kB / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003008/0.00305, allocations: 1.608 MB / 320.5 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000548/0.003598, allocations: 177.7 kB / 320.7 MB, free: 2.371 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.003704, allocations: 7 kB / 320.7 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001283/0.003833, allocations: 11.8 kB / 320.7 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001678/0.004, allocations: 16.59 kB / 320.7 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002807/0.004281, allocations: 46.78 kB / 320.8 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001557/0.004437, allocations: 64.48 kB / 320.8 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001284/0.004565, allocations: 38.42 kB / 320.9 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.214e-05/0.004617, allocations: 35.7 kB / 320.9 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.437e-05/0.004702, allocations: 31.52 kB / 321 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.263e-05/0.004734, allocations: 10.5 kB / 321 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.748e-05/0.004752, allocations: 5 kB / 321 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.241e-05/0.004804, allocations: 24.34 kB / 321 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.12e-05/0.004845, allocations: 26.58 kB / 321 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001844/0.00503, allocations: 83.25 kB / 321.1 MB, free: 2.184 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.005033, allocations: 5.594 kB / 321.1 MB, free: 2.18 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.005034, allocations: 0 / 321.1 MB, free: 2.18 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.005038, allocations: 3.938 kB / 321.1 MB, free: 2.176 MB / 286.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.0005166/0.005555, allocations: 329.8 kB / 321.4 MB, free: 1.867 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.005594, allocations: 10.16 kB / 321.4 MB, free: 1.867 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.942e-05/0.005633, allocations: 18.47 kB / 321.5 MB, free: 1.855 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002032/0.005837, allocations: 153.4 kB / 321.6 MB, free: 1.703 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/0.005853, allocations: 7.781 kB / 321.6 MB, free: 1.699 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.223e-05/0.005875, allocations: 9.094 kB / 321.6 MB, free: 1.695 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004173/0.006292, allocations: 206.2 kB / 321.8 MB, free: 1.578 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.006305, allocations: 192 / 321.8 MB, free: 1.578 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.006319, allocations: 13.16 kB / 321.8 MB, free: 1.566 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.006327, allocations: 2.625 kB / 321.8 MB, free: 1.566 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.006461, allocations: 63.05 kB / 321.9 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003511/0.006812, allocations: 315.2 kB / 322.2 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001929/0.007005, allocations: 120.2 kB / 322.3 MB, free: 1.145 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.007117, allocations: 70.12 kB / 322.4 MB, free: 1.105 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.007147, allocations: 2.906 kB / 322.4 MB, free: 1.105 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.007166, allocations: 38.2 kB / 322.4 MB, free: 1.062 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.122e-06/0.007167, allocations: 4 kB / 322.4 MB, free: 1.059 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003773/0.007544, allocations: 166.2 kB / 322.6 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.007588, allocations: 116.5 kB / 322.7 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001459/0.007734, allocations: 160.4 kB / 322.9 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/0.007744, allocations: 30.27 kB / 322.9 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.813e-05/0.007782, allocations: 94.42 kB / 323 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.153e-05/0.007794, allocations: 2.312 kB / 323 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.231e-05/0.007826, allocations: 29.14 kB / 323 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.204e-05/0.007868, allocations: 322.2 kB / 323.3 MB, free: 260 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.915e-05/0.007907, allocations: 12.7 kB / 323.4 MB, free: 256 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.091e-05/0.007938, allocations: 15.94 kB / 323.4 MB, free: 240 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.381e-05/0.008002, allocations: 32.95 kB / 323.4 MB, free: 216 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.008004, allocations: 0 / 323.4 MB, free: 216 kB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.822e-05/0.008102, allocations: 56.23 kB / 323.5 MB, free: 176 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.008115, allocations: 15.34 kB / 323.5 MB, free: 168 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.008119, allocations: 0 / 323.5 MB, free: 168 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.008137, allocations: 0.7969 kB / 323.5 MB, free: 168 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.303e-05/0.0082, allocations: 4.094 kB / 323.5 MB, free: 168 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.008206, allocations: 5.031 kB / 323.5 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.033e-05/0.008236, allocations: 3.422 kB / 323.5 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.325e-06/0.008245, allocations: 1.094 kB / 323.5 MB, free: 164 kB / 286.1 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 7.326e-05/0.008318, allocations: 122 kB / 323.6 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001924/0.00851, allocations: 104 kB / 323.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.033e-05/0.008561, allocations: 22.8 kB / 323.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.008566, allocations: 13.83 kB / 323.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.008572, allocations: 1.219 kB / 323.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.008578, allocations: 1.922 kB / 323.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002457/0.008824, allocations: 139.3 kB / 323.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.008827, allocations: 2.125 kB / 323.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.008944, allocations: 21.97 kB / 323.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.008947, allocations: 1.641 kB / 323.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.008958, allocations: 1 kB / 323.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.063e-06/0.008965, allocations: 5.953 kB / 323.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.008967, allocations: 1 kB / 323.9 MB, free: 15.8 MB / 302.1 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.0004824/0.009449, allocations: 391.3 kB / 324.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.538e-05/0.009505, allocations: 24.38 kB / 324.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.009524, allocations: 3.188 kB / 324.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.009639, allocations: 8.562 kB / 324.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.414e-05/0.009683, allocations: 11.66 kB / 324.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.009691, allocations: 2.594 kB / 324.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001036/0.009795, allocations: 125 kB / 324.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.009795, allocations: 5.312 kB / 324.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002994/0.01009, allocations: 12.06 kB / 324.5 MB, free: 15.42 MB / 302.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.0001391/0.01023, allocations: 105.7 kB / 324.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001767/0.01041, allocations: 46.41 kB / 324.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01041, allocations: 0 / 324.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.645e-05/0.01046, allocations: 17.67 kB / 324.6 MB, free: 15.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004769/0.01093, allocations: 63.47 kB / 324.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005028/0.01144, allocations: 246.5 kB / 325 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001178/0.01156, allocations: 96.78 kB / 325 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.149e-05/0.01158, allocations: 2.672 kB / 325 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.284e-05/0.01161, allocations: 12.52 kB / 325.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.01161, allocations: 1.125 kB / 325.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of Templates: time 0.004114/0.01572, allocations: 0.9124 MB / 326 MB, free: 14.88 MB / 302.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/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.2379884123802185]