Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002021/0.002021, allocations: 161 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.064/1.064, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.495e-06/2.495e-06, allocations: 0 / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.736e-05/3.986e-05, allocations: 2.312 kB / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.00407/0.00411, allocations: 1.684 MB / 274.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006085/0.004718, allocations: 175.3 kB / 274.8 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.004832, allocations: 7.938 kB / 274.8 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.00497, allocations: 15.86 kB / 274.8 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.005141, allocations: 15.81 kB / 274.9 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.005431, allocations: 43.88 kB / 274.9 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001435/0.005575, allocations: 71.77 kB / 275 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.005716, allocations: 23.92 kB / 275 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.536e-05/0.005791, allocations: 35.89 kB / 275 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.005905, allocations: 31.91 kB / 275.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.078e-05/0.005936, allocations: 8 kB / 275.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.564e-05/0.005952, allocations: 11.94 kB / 275.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.578e-05/0.006008, allocations: 23.91 kB / 275.1 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.653e-05/0.006054, allocations: 23.92 kB / 275.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001676/0.006222, allocations: 63.73 kB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.006227, allocations: 4 kB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.006228, allocations: 0 / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.006233, allocations: 0 / 275.2 MB, free: 15.32 MB / 266.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.0006244/0.006858, allocations: 440 kB / 275.6 MB, free: 14.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.006907, allocations: 8.031 kB / 275.6 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.777e-05/0.006975, allocations: 24.84 kB / 275.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002777/0.007252, allocations: 157.1 kB / 275.8 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.007269, allocations: 4.375 kB / 275.8 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.42e-05/0.007293, allocations: 8.375 kB / 275.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004936/0.007787, allocations: 187.8 kB / 276 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.007803, allocations: 192 / 276 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.007817, allocations: 384 / 276 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.007827, allocations: 4.375 kB / 276 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.339e-05/0.007901, allocations: 31.86 kB / 276 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004984/0.008399, allocations: 422.3 kB / 276.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001924/0.008591, allocations: 117.3 kB / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.867e-05/0.00869, allocations: 59.17 kB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.008719, allocations: 0 / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.751e-05/0.008757, allocations: 49.3 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.573e-06/0.008759, allocations: 3.938 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003553/0.009114, allocations: 113.5 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.193e-05/0.009206, allocations: 114.8 kB / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.009398, allocations: 217.1 kB / 277.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.009415, allocations: 25.7 kB / 277.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.228e-05/0.009498, allocations: 139.2 kB / 277.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.734e-05/0.009515, allocations: 3.953 kB / 277.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.723e-05/0.009572, allocations: 31.36 kB / 277.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.009748, allocations: 0.4884 MB / 277.8 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.982e-05/0.009767, allocations: 4 kB / 277.8 MB, free: 12.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.644e-05/0.009794, allocations: 15.62 kB / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.5e-05/0.009839, allocations: 31.38 kB / 277.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.009843, allocations: 8 kB / 277.8 MB, free: 12.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.995e-05/0.009933, allocations: 37.66 kB / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.009957, allocations: 15.92 kB / 277.9 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.009963, allocations: 3.938 kB / 277.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.009985, allocations: 0 / 277.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.117e-05/0.01008, allocations: 4 kB / 277.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.01008, allocations: 0 / 277.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.107e-05/0.01012, allocations: 8.062 kB / 277.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.01012, allocations: 3.984 kB / 277.9 MB, free: 12.29 MB / 266.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 0.0004811/0.01061, allocations: 156.6 kB / 278.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001809/0.01079, allocations: 85.91 kB / 278.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.303e-05/0.01085, allocations: 24.7 kB / 278.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.01085, allocations: 0 / 278.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.01086, allocations: 0 / 278.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/0.01087, allocations: 4 kB / 278.2 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002816/0.01115, allocations: 140.5 kB / 278.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.01115, allocations: 0 / 278.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001424/0.0113, allocations: 27.98 kB / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.0113, allocations: 0 / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.01132, allocations: 11.94 kB / 278.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.804e-06/0.01133, allocations: 3.938 kB / 278.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.01133, allocations: 3.938 kB / 278.4 MB, free: 11.79 MB / 266.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:8020:5-8020: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.0005074/0.01184, allocations: 443.6 kB / 278.8 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.566e-05/0.0119, allocations: 27.94 kB / 278.8 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.01192, allocations: 0 / 278.8 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.01204, allocations: 15.94 kB / 278.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.841e-05/0.01208, allocations: 3.984 kB / 278.8 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.01209, allocations: 4 kB / 278.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.037e-05/0.01218, allocations: 149.4 kB / 279 MB, free: 11.13 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01218, allocations: 0 / 279 MB, free: 11.13 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003175/0.0125, allocations: 8 kB / 279 MB, free: 11.12 MB / 266.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 0.0001367/0.01264, allocations: 111.2 kB / 279.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001504/0.01279, allocations: 47.48 kB / 279.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.01279, allocations: 0 / 279.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.26e-05/0.01281, allocations: 11.69 kB / 279.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005085/0.01332, allocations: 50.03 kB / 279.2 MB, free: 10.9 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005531/0.01387, allocations: 234.8 kB / 279.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.818e-05/0.01395, allocations: 71.33 kB / 279.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.201e-05/0.01398, allocations: 4 kB / 279.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.647e-05/0.01403, allocations: 16.73 kB / 279.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.01403, allocations: 4 kB / 279.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of Templates: time 0.002977/0.01701, allocations: 0.9169 MB / 280.5 MB, free: 9.621 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1576284510083497]