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.001536/0.001536, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 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.001665/0.001665, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 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.485/1.485, allocations: 177 MB / 204.4 MB, free: 5.617 MB / 186.7 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 5.139e-06/5.139e-06, allocations: 3.984 kB / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.759e-05/3.273e-05, allocations: 6.312 kB / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.004775/0.004808, allocations: 1.629 MB / 273.8 MB, free: 168 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007621/0.00557, allocations: 171.4 kB / 274 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.005682, allocations: 3.938 kB / 274 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.005818, allocations: 15.81 kB / 274 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.005983, allocations: 15.88 kB / 274 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000352/0.006335, allocations: 51.81 kB / 274.1 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002043/0.00654, allocations: 67.7 kB / 274.1 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.0067, allocations: 27.98 kB / 274.2 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.0068, allocations: 35.89 kB / 274.2 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.006921, allocations: 27.91 kB / 274.2 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.234e-05/0.006953, allocations: 4 kB / 274.2 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.433e-05/0.006978, allocations: 8 kB / 274.2 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.475e-05/0.007062, allocations: 27.91 kB / 274.3 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.84e-05/0.007131, allocations: 19.92 kB / 274.3 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002393/0.00737, allocations: 91.64 kB / 274.4 MB, free: 15.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.007374, allocations: 0 / 274.4 MB, free: 15.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.007375, allocations: 0 / 274.4 MB, free: 15.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.007381, allocations: 0 / 274.4 MB, free: 15.61 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.0008526/0.008234, allocations: 349.6 kB / 274.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.008286, allocations: 11.98 kB / 274.7 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.477e-05/0.008371, allocations: 16.89 kB / 274.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003379/0.008709, allocations: 149.5 kB / 274.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.008731, allocations: 8.375 kB / 274.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.008753, allocations: 8.375 kB / 274.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006709/0.009424, allocations: 206.3 kB / 275.1 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.009438, allocations: 4.125 kB / 275.1 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.009456, allocations: 4.375 kB / 275.1 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.009468, allocations: 4.375 kB / 275.1 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002247/0.009693, allocations: 55.89 kB / 275.2 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006726/0.01037, allocations: 325.5 kB / 275.5 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003378/0.0107, allocations: 119.8 kB / 275.6 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002313/0.01093, allocations: 78.59 kB / 275.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.01096, allocations: 3.938 kB / 275.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.3e-05/0.01102, allocations: 38.5 kB / 275.7 MB, free: 14.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 4.558e-06/0.01102, allocations: 3.984 kB / 275.7 MB, free: 14.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0006708/0.01169, allocations: 169.6 kB / 275.9 MB, free: 13.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001473/0.01184, allocations: 114.8 kB / 276 MB, free: 13.78 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.0121, allocations: 164.5 kB / 276.2 MB, free: 13.61 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.01213, allocations: 25.7 kB / 276.2 MB, free: 13.58 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.01226, allocations: 96.41 kB / 276.3 MB, free: 13.48 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.643e-05/0.01228, allocations: 3.953 kB / 276.3 MB, free: 13.47 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.255e-05/0.01236, allocations: 25.7 kB / 276.3 MB, free: 13.44 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002328/0.01259, allocations: 314.8 kB / 276.6 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.431e-05/0.01266, allocations: 11.98 kB / 276.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.034e-05/0.01273, allocations: 17.72 kB / 276.7 MB, free: 13.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001233/0.01285, allocations: 37.7 kB / 276.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.01285, allocations: 0 / 276.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002083/0.01306, allocations: 57.58 kB / 276.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.01308, allocations: 7.938 kB / 276.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.01309, allocations: 4 kB / 276.8 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.01311, allocations: 0 / 276.8 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.397e-05/0.0132, allocations: 7.984 kB / 276.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.01321, allocations: 4.062 kB / 276.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.706e-05/0.01327, allocations: 4 kB / 276.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.01328, allocations: 0 / 276.8 MB, free: 12.96 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.0001716/0.01345, allocations: 125.8 kB / 276.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00032/0.01377, allocations: 105.6 kB / 277 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.268e-05/0.01384, allocations: 24.7 kB / 277 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.01385, allocations: 4 kB / 277 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.01385, allocations: 0 / 277 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.01386, allocations: 0 / 277 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003904/0.01425, allocations: 137.2 kB / 277.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.01425, allocations: 4 kB / 277.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001914/0.01444, allocations: 27.92 kB / 277.2 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.01445, allocations: 0 / 277.2 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.01446, allocations: 4 kB / 277.2 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.318e-06/0.01447, allocations: 11.88 kB / 277.2 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.103e-06/0.01447, allocations: 0 / 277.2 MB, free: 12.48 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:7987:5-7987: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.0007311/0.01521, allocations: 380.4 kB / 277.6 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.753e-05/0.01529, allocations: 23.94 kB / 277.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.856e-05/0.01532, allocations: 4 kB / 277.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.01553, allocations: 3.938 kB / 277.6 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.661e-05/0.01558, allocations: 4 kB / 277.6 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/0.0156, allocations: 11.94 kB / 277.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003981/0.016, allocations: 116.9 kB / 277.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.016, allocations: 0 / 277.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005122/0.01651, allocations: 12 kB / 277.8 MB, free: 11.91 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.0001888/0.0167, allocations: 103.2 kB / 277.9 MB, free: 11.8 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002715/0.01697, allocations: 59.84 kB / 277.9 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.01697, allocations: 0 / 277.9 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.254e-05/0.01703, allocations: 11.98 kB / 277.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008218/0.01786, allocations: 70.03 kB / 278 MB, free: 11.67 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000729/0.01859, allocations: 251.4 kB / 278.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000136/0.01872, allocations: 96.56 kB / 278.3 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.04e-05/0.01875, allocations: 11.92 kB / 278.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.25e-05/0.01879, allocations: 12.5 kB / 278.4 MB, free: 11.25 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01879, allocations: 0 / 278.4 MB, free: 11.25 MB / 266.7 MB Notification: Performance of Templates: time 0.004162/0.02296, allocations: 0.9285 MB / 279.3 MB, free: 10.34 MB / 266.7 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.338991503929719]