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.0008148/0.0008148, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.003131/0.003131, allocations: 158.8 kB / 24.7 MB, free: 9.441 MB / 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 0.8579/0.8579, allocations: 177 MB / 204.9 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] 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 1.873e-06/1.873e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.828e-05/3.016e-05, allocations: 6.281 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002206/0.002236, allocations: 1.623 MB / 327.4 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004049/0.002641, allocations: 171.3 kB / 327.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.745e-05/0.002728, allocations: 7.938 kB / 327.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.002837, allocations: 11.86 kB / 327.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001569/0.002994, allocations: 27.78 kB / 327.6 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002069/0.003201, allocations: 39.89 kB / 327.7 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001155/0.003316, allocations: 63.78 kB / 327.7 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.003433, allocations: 31.91 kB / 327.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.812e-05/0.003482, allocations: 35.89 kB / 327.8 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.998e-05/0.003562, allocations: 31.89 kB / 327.8 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.561e-05/0.003587, allocations: 12 kB / 327.8 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.028e-05/0.003597, allocations: 4 kB / 327.8 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.57e-05/0.003643, allocations: 23.92 kB / 327.9 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.572e-05/0.003679, allocations: 23.92 kB / 327.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001364/0.003815, allocations: 91.62 kB / 328 MB, free: 13.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.003818, allocations: 0 / 328 MB, free: 13.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.003819, allocations: 0 / 328 MB, free: 13.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.003823, allocations: 0 / 328 MB, free: 13.21 MB / 298.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.0004862/0.00431, allocations: 333.8 kB / 328.3 MB, free: 12.85 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.004355, allocations: 19.97 kB / 328.3 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.659e-05/0.004392, allocations: 12.89 kB / 328.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001794/0.004571, allocations: 154.2 kB / 328.5 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-06/0.004581, allocations: 4.375 kB / 328.5 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.004593, allocations: 8.375 kB / 328.5 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000319/0.004912, allocations: 210.2 kB / 328.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.004922, allocations: 4.172 kB / 328.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.004931, allocations: 4.375 kB / 328.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.004939, allocations: 8.375 kB / 328.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.97e-05/0.005029, allocations: 55.84 kB / 328.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000329/0.005358, allocations: 317.6 kB / 329.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001302/0.005488, allocations: 123.8 kB / 329.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.724e-05/0.005565, allocations: 74.55 kB / 329.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.005586, allocations: 4 kB / 329.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.005608, allocations: 42.55 kB / 329.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.573e-06/0.00561, allocations: 4 kB / 329.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002631/0.005873, allocations: 157.4 kB / 329.5 MB, free: 11.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.462e-05/0.005938, allocations: 110.8 kB / 329.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.976e-05/0.006037, allocations: 174 kB / 329.8 MB, free: 11.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/0.006048, allocations: 25.7 kB / 329.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.725e-05/0.006095, allocations: 96.42 kB / 329.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.186e-05/0.006107, allocations: 11.88 kB / 329.9 MB, free: 11.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.848e-05/0.006135, allocations: 21.72 kB / 329.9 MB, free: 11.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.303e-05/0.006218, allocations: 323.1 kB / 330.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.599e-05/0.006244, allocations: 8 kB / 330.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.276e-05/0.006267, allocations: 25.7 kB / 330.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.116e-05/0.006308, allocations: 21.72 kB / 330.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.006311, allocations: 3.984 kB / 330.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.997e-05/0.006381, allocations: 57.58 kB / 330.3 MB, free: 10.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.006396, allocations: 15.34 kB / 330.3 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.006402, allocations: 4 kB / 330.4 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.006414, allocations: 0 / 330.4 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.274e-05/0.006467, allocations: 4 kB / 330.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.006472, allocations: 0 / 330.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.797e-05/0.00649, allocations: 7.984 kB / 330.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.006496, allocations: 0 / 330.4 MB, free: 10.57 MB / 298.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 7.055e-05/0.006566, allocations: 121.8 kB / 330.5 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.006667, allocations: 113.9 kB / 330.6 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.352e-05/0.006701, allocations: 20.72 kB / 330.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.006704, allocations: 4 kB / 330.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.006708, allocations: 0 / 330.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.006712, allocations: 4 kB / 330.6 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001469/0.006859, allocations: 133.1 kB / 330.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.006861, allocations: 0 / 330.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.456e-05/0.006925, allocations: 27.92 kB / 330.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.006927, allocations: 0 / 330.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.006936, allocations: 8 kB / 330.8 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.006939, allocations: 7.922 kB / 330.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.00694, allocations: 0 / 330.8 MB, free: 10.09 MB / 298.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.0002886/0.007229, allocations: 380.4 kB / 331.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.025e-05/0.007269, allocations: 23.94 kB / 331.2 MB, free: 9.676 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.231e-05/0.007281, allocations: 0 / 331.2 MB, free: 9.676 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.18e-05/0.007343, allocations: 19.91 kB / 331.2 MB, free: 9.656 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.84e-05/0.007371, allocations: 0 / 331.2 MB, free: 9.656 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.007377, allocations: 4 kB / 331.2 MB, free: 9.652 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.77e-05/0.007435, allocations: 119.2 kB / 331.3 MB, free: 9.535 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007435, allocations: 4 kB / 331.3 MB, free: 9.531 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001655/0.007601, allocations: 8 kB / 331.3 MB, free: 9.523 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 8.844e-05/0.007689, allocations: 107.7 kB / 331.4 MB, free: 9.406 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001181/0.007807, allocations: 47.91 kB / 331.5 MB, free: 9.359 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.00781, allocations: 8 kB / 331.5 MB, free: 9.352 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.783e-05/0.007828, allocations: 4.188 kB / 331.5 MB, free: 9.348 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.008163, allocations: 71.98 kB / 331.6 MB, free: 9.277 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003474/0.008511, allocations: 276.9 kB / 331.8 MB, free: 8.969 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.385e-05/0.008585, allocations: 96.64 kB / 331.9 MB, free: 8.855 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.051e-05/0.008615, allocations: 12.5 kB / 332 MB, free: 8.844 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.008616, allocations: 0 / 332 MB, free: 8.844 MB / 298.7 MB Notification: Performance of Templates: time 0.002007/0.01062, allocations: 1.093 MB / 333 MB, free: 7.75 MB / 298.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.112119401805103]