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.001154/0.001154, allocations: 95.5 kB / 21.2 MB, free: 3.375 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.001215/0.001215, allocations: 160.5 kB / 24.55 MB, free: 20 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 0.9993/0.9993, allocations: 177 MB / 204.8 MB, free: 5.254 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 2.214e-06/2.214e-06, allocations: 0 / 272.9 MB, free: 1.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.02e-05/3.241e-05, allocations: 5.266 kB / 272.9 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.005861/0.005894, allocations: 1.673 MB / 274.6 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004832/0.006377, allocations: 183.3 kB / 274.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.042e-05/0.006467, allocations: 0 / 274.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001241/0.006592, allocations: 11.86 kB / 274.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001572/0.006749, allocations: 19.81 kB / 274.8 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000243/0.006992, allocations: 55.8 kB / 274.9 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003162/0.01015, allocations: 63.78 kB / 274.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.01029, allocations: 27.92 kB / 274.9 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.491e-05/0.01035, allocations: 39.89 kB / 275 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.397e-05/0.01043, allocations: 27.91 kB / 275 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.652e-05/0.01046, allocations: 7.984 kB / 275 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.19e-05/0.01047, allocations: 8 kB / 275 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.79e-05/0.01052, allocations: 23.92 kB / 275 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.415e-05/0.01055, allocations: 23.92 kB / 275.1 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001427/0.0107, allocations: 63.73 kB / 275.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.0107, allocations: 3.938 kB / 275.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.0107, allocations: 0 / 275.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.01071, allocations: 0 / 275.1 MB, free: 15.07 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.0004632/0.01117, allocations: 440 kB / 275.6 MB, free: 14.6 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.01121, allocations: 19.98 kB / 275.6 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.592e-05/0.01126, allocations: 16.84 kB / 275.6 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001737/0.01143, allocations: 160.4 kB / 275.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.01144, allocations: 4.375 kB / 275.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.384e-05/0.01145, allocations: 8.375 kB / 275.8 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003036/0.01176, allocations: 184.3 kB / 275.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.01177, allocations: 4.188 kB / 276 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.01178, allocations: 4.375 kB / 276 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.01179, allocations: 4.375 kB / 276 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.079e-05/0.01183, allocations: 23.86 kB / 276 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003779/0.0122, allocations: 422.3 kB / 276.4 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002217/0.01243, allocations: 113.1 kB / 276.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.243e-05/0.01249, allocations: 63.3 kB / 276.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.01251, allocations: 4 kB / 276.6 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.01253, allocations: 45.38 kB / 276.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 2.114e-06/0.01254, allocations: 0 / 276.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002399/0.01278, allocations: 113.4 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.788e-05/0.01283, allocations: 110.8 kB / 276.8 MB, free: 13.14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.01295, allocations: 215.3 kB / 277 MB, free: 12.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.01296, allocations: 25.7 kB / 277.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.645e-05/0.01303, allocations: 143.1 kB / 277.2 MB, free: 12.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.71e-05/0.01304, allocations: 11.94 kB / 277.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.053e-05/0.01308, allocations: 23.38 kB / 277.2 MB, free: 12.69 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.01321, allocations: 0.4925 MB / 277.7 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.596e-05/0.01323, allocations: 7.938 kB / 277.7 MB, free: 12.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.889e-05/0.01325, allocations: 19.38 kB / 277.8 MB, free: 12.15 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.375e-05/0.01328, allocations: 23.38 kB / 277.8 MB, free: 12.12 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.01328, allocations: 0 / 277.8 MB, free: 12.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.5e-05/0.01335, allocations: 49.58 kB / 277.8 MB, free: 12.06 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.01336, allocations: 7.938 kB / 277.8 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.01337, allocations: 0 / 277.8 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.01338, allocations: 128 / 277.8 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.128e-05/0.01345, allocations: 8 kB / 277.9 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/0.01346, allocations: 4 kB / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.707e-05/0.01348, allocations: 4 kB / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.01348, allocations: 0 / 277.9 MB, free: 12.04 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 7.657e-05/0.01356, allocations: 160.6 kB / 278 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.882e-05/0.01365, allocations: 81.53 kB / 278.1 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.747e-05/0.01369, allocations: 24.7 kB / 278.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.01369, allocations: 0 / 278.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.01369, allocations: 4 kB / 278.1 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.0137, allocations: 0 / 278.1 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001394/0.01384, allocations: 148.5 kB / 278.3 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.01384, allocations: 0 / 278.3 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.383e-05/0.0139, allocations: 23.92 kB / 278.3 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.0139, allocations: 4 kB / 278.3 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.01392, allocations: 3.984 kB / 278.3 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.01392, allocations: 3.938 kB / 278.3 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.01392, allocations: 4 kB / 278.3 MB, free: 11.54 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.0002786/0.0142, allocations: 459 kB / 278.8 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.691e-05/0.01424, allocations: 19.94 kB / 278.8 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.01425, allocations: 0 / 278.8 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.119e-05/0.01431, allocations: 11.94 kB / 278.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.223e-05/0.01435, allocations: 7.984 kB / 278.8 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.01435, allocations: 0 / 278.8 MB, free: 11.03 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.959e-05/0.01441, allocations: 156.6 kB / 278.9 MB, free: 10.88 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01441, allocations: 0 / 278.9 MB, free: 10.88 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001713/0.01458, allocations: 8 kB / 279 MB, free: 10.87 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.0001204/0.0147, allocations: 103.2 kB / 279.1 MB, free: 10.76 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001362/0.01484, allocations: 39.55 kB / 279.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.01484, allocations: 0 / 279.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.874e-05/0.01486, allocations: 15.62 kB / 279.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000383/0.01524, allocations: 42.83 kB / 279.2 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004497/0.01569, allocations: 242.6 kB / 279.4 MB, free: 10.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.348e-05/0.01574, allocations: 71.53 kB / 279.5 MB, free: 10.29 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.319e-05/0.01577, allocations: 11.98 kB / 279.5 MB, free: 10.28 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.24e-05/0.0158, allocations: 12.5 kB / 279.5 MB, free: 10.27 MB / 266.7 MB Notification: Performance of SimCode: time 7.52e-07/0.0158, allocations: 0 / 279.5 MB, free: 10.27 MB / 266.7 MB Notification: Performance of Templates: time 0.003287/0.01909, allocations: 0.9602 MB / 280.4 MB, free: 9.324 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8857707479037344]