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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 104 kB / 19.6 MB, free: 2.707 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002095/0.002095, allocations: 196.5 kB / 22.76 MB, free: 5.48 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 225.6 MB / 251.4 MB, free: 13.45 MB / 206.1 MB [Timeout remaining time 88] 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.00154/0.00154, allocations: 51.89 kB / 369.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3184, allocations: 52.14 MB / 421.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003381/0.3218, allocations: 1.618 MB / 422.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005342/0.3223, allocations: 195.3 kB / 423.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.439e-05/0.3224, allocations: 0 / 423.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.3226, allocations: 11.86 kB / 423.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.3227, allocations: 19.84 kB / 423.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002563/0.323, allocations: 47.91 kB / 423.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001714/0.3232, allocations: 67.75 kB / 423.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.3233, allocations: 27.98 kB / 423.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.042e-05/0.3234, allocations: 27.86 kB / 423.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/0.3235, allocations: 35.84 kB / 423.3 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.774e-05/0.3235, allocations: 8 kB / 423.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.21e-05/0.3235, allocations: 8 kB / 423.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.579e-05/0.3236, allocations: 31.84 kB / 423.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.654e-05/0.3237, allocations: 35.75 kB / 423.4 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001851/0.3238, allocations: 100.8 kB / 423.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3238, allocations: 0 / 423.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3238, allocations: 0 / 423.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.3239, allocations: 0 / 423.5 MB, free: 12.99 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.0006826/0.3245, allocations: 414.8 kB / 423.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.3246, allocations: 11.89 kB / 423.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.027e-05/0.3246, allocations: 20.84 kB / 424 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002544/0.3249, allocations: 208.2 kB / 424.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.3249, allocations: 4.375 kB / 424.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.798e-05/0.3249, allocations: 8.375 kB / 424.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004417/0.3254, allocations: 210.2 kB / 424.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.3254, allocations: 192 / 424.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.3254, allocations: 7.938 kB / 424.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.3254, allocations: 4 kB / 424.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001415/0.3255, allocations: 55.89 kB / 424.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004895/0.326, allocations: 377.9 kB / 424.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002465/0.3263, allocations: 123.6 kB / 424.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.3264, allocations: 82.67 kB / 425 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.3264, allocations: 4 kB / 425 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.941e-05/0.3265, allocations: 34.56 kB / 425 MB, free: 11.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.3265, allocations: 0 / 425 MB, free: 11.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004201/0.3269, allocations: 165.4 kB / 425.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.327, allocations: 111.1 kB / 425.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.3272, allocations: 170.2 kB / 425.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.3272, allocations: 25.7 kB / 425.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.054e-05/0.3273, allocations: 92.42 kB / 425.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.663e-05/0.3273, allocations: 4 kB / 425.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-05/0.3273, allocations: 37.66 kB / 425.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.3275, allocations: 322.8 kB / 426 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.448e-05/0.3275, allocations: 15.98 kB / 426 MB, free: 10.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.3276, allocations: 85.38 kB / 426.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000176/0.3278, allocations: 121.3 kB / 426.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.3278, allocations: 7.938 kB / 426.2 MB, free: 9.977 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002206/0.328, allocations: 125.4 kB / 426.3 MB, free: 9.848 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.3281, allocations: 4 kB / 426.3 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.3281, allocations: 4.344 kB / 426.3 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.3281, allocations: 8 kB / 426.3 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.3282, allocations: 23.92 kB / 426.3 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.3282, allocations: 4 kB / 426.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.688e-05/0.3283, allocations: 11.88 kB / 426.4 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.3283, allocations: 8 kB / 426.4 MB, free: 9.785 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.0001325/0.3284, allocations: 137.7 kB / 426.5 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001844/0.3286, allocations: 109.8 kB / 426.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.339e-05/0.3287, allocations: 24.7 kB / 426.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3287, allocations: 4 kB / 426.6 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.3287, allocations: 0 / 426.6 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.3287, allocations: 3.984 kB / 426.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002902/0.329, allocations: 209.5 kB / 426.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.329, allocations: 0 / 426.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.3291, allocations: 23.92 kB / 426.9 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.3291, allocations: 4 kB / 426.9 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.3291, allocations: 0 / 426.9 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3291, allocations: 0 / 426.9 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.3291, allocations: 4 kB / 426.9 MB, free: 9.207 MB / 334.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.0004856/0.3296, allocations: 384.9 kB / 427.2 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.754e-05/0.3297, allocations: 104.9 kB / 427.4 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.988e-05/0.3297, allocations: 4 kB / 427.4 MB, free: 8.688 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.3298, allocations: 7.984 kB / 427.4 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.862e-05/0.3298, allocations: 4 kB / 427.4 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.3298, allocations: 4 kB / 427.4 MB, free: 8.672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001007/0.3299, allocations: 118.1 kB / 427.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3299, allocations: 0 / 427.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000288/0.3302, allocations: 16 kB / 427.5 MB, free: 8.543 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.0001447/0.3304, allocations: 107.2 kB / 427.6 MB, free: 8.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000239/0.3306, allocations: 75.84 kB / 427.7 MB, free: 8.355 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3306, allocations: 0 / 427.7 MB, free: 8.355 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.673e-05/0.3307, allocations: 16.61 kB / 427.7 MB, free: 8.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004827/0.3311, allocations: 68 kB / 427.8 MB, free: 8.273 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005286/0.3317, allocations: 265.5 kB / 428 MB, free: 7.977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000404/0.3321, allocations: 0.7121 MB / 428.7 MB, free: 7.238 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.748e-05/0.3321, allocations: 15.44 kB / 428.8 MB, free: 7.223 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3321, allocations: 0 / 428.8 MB, free: 7.223 MB / 334.1 MB Notification: Performance of Templates: time 0.003033/0.3351, allocations: 1.191 MB / 429.9 MB, free: 6.035 MB / 334.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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins1/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