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.0009183/0.0009183, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.00101/0.00101, allocations: 167.7 kB / 24.99 MB, free: 8.219 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 1.041/1.041, allocations: 177 MB / 205.2 MB, free: 5.582 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.944e-06/1.944e-06, allocations: 0 / 273 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.611e-05/2.805e-05, allocations: 6.312 kB / 273 MB, free: 1.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003227/0.003255, allocations: 1.664 MB / 274.7 MB, free: 68 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005573/0.003812, allocations: 183.3 kB / 274.8 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.003921, allocations: 4 kB / 274.8 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.004043, allocations: 11.86 kB / 274.9 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001491/0.004192, allocations: 15.81 kB / 274.9 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000263/0.004455, allocations: 47.81 kB / 274.9 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001418/0.004597, allocations: 63.84 kB / 275 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.004735, allocations: 27.91 kB / 275 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.82e-05/0.004803, allocations: 39.91 kB / 275 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.563e-05/0.004898, allocations: 31.89 kB / 275.1 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.841e-05/0.004927, allocations: 4 kB / 275.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.51e-05/0.004942, allocations: 8 kB / 275.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.882e-05/0.005001, allocations: 27.86 kB / 275.1 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.5e-05/0.005046, allocations: 23.91 kB / 275.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001586/0.005204, allocations: 63.69 kB / 275.2 MB, free: 15.52 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.005207, allocations: 0 / 275.2 MB, free: 15.52 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.00521, allocations: 0 / 275.2 MB, free: 15.52 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.005216, allocations: 0 / 275.2 MB, free: 15.52 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.0005401/0.005757, allocations: 440.1 kB / 275.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.005799, allocations: 15.98 kB / 275.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.172e-05/0.005861, allocations: 24.84 kB / 275.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.006096, allocations: 160.3 kB / 275.8 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.006111, allocations: 4.375 kB / 275.8 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.006128, allocations: 12.31 kB / 275.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003887/0.006517, allocations: 180.3 kB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.006527, allocations: 8.172 kB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.006541, allocations: 4.375 kB / 276 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.00655, allocations: 384 / 276 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.481e-05/0.006615, allocations: 27.86 kB / 276.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004756/0.007091, allocations: 422.3 kB / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001738/0.007264, allocations: 113.2 kB / 276.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.889e-05/0.007353, allocations: 63.17 kB / 276.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.007378, allocations: 4 kB / 276.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.00741, allocations: 45.38 kB / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.854e-06/0.007412, allocations: 0 / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003365/0.007749, allocations: 113.4 kB / 276.8 MB, free: 13.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.989e-05/0.007828, allocations: 106.8 kB / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001734/0.008002, allocations: 219.3 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.008018, allocations: 25.7 kB / 277.1 MB, free: 13.33 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.684e-05/0.008105, allocations: 139.2 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.008123, allocations: 7.938 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.021e-05/0.008173, allocations: 27.38 kB / 277.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.008333, allocations: 0.4963 MB / 277.8 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.501e-05/0.008348, allocations: 4 kB / 277.8 MB, free: 12.63 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.244e-05/0.00837, allocations: 19.38 kB / 277.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.25e-05/0.008413, allocations: 23.38 kB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.008415, allocations: 0 / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.292e-05/0.008508, allocations: 49.58 kB / 277.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.008531, allocations: 7.938 kB / 277.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.008539, allocations: 4 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.008556, allocations: 128 / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.604e-05/0.008632, allocations: 8 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.008638, allocations: 0 / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.54e-05/0.008664, allocations: 0 / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.008676, allocations: 8 kB / 277.9 MB, free: 12.49 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 9.522e-05/0.008771, allocations: 152.6 kB / 278.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.008925, allocations: 85.53 kB / 278.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.96e-05/0.008975, allocations: 24.7 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.008981, allocations: 4 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.008985, allocations: 0 / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.008989, allocations: 0 / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002403/0.00923, allocations: 148.5 kB / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.009232, allocations: 0 / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.009339, allocations: 27.92 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.009343, allocations: 0 / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.009356, allocations: 4 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.829e-06/0.009366, allocations: 11.94 kB / 278.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.009367, allocations: 0 / 278.4 MB, free: 11.98 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.0004305/0.009798, allocations: 452.3 kB / 278.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.556e-05/0.009853, allocations: 23.94 kB / 278.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.009873, allocations: 8 kB / 278.9 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.009984, allocations: 7.938 kB / 278.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.698e-05/0.01002, allocations: 3.984 kB / 278.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.01003, allocations: 4 kB / 278.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.831e-05/0.01012, allocations: 152.8 kB / 279 MB, free: 11.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01012, allocations: 0 / 279 MB, free: 11.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003164/0.01043, allocations: 8 kB / 279 MB, free: 11.32 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.0001006/0.01053, allocations: 103.2 kB / 279.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.973e-05/0.01063, allocations: 35.61 kB / 279.2 MB, free: 11.17 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.01064, allocations: 4 kB / 279.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.365e-05/0.01065, allocations: 11.62 kB / 279.2 MB, free: 11.15 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003409/0.01099, allocations: 46.77 kB / 279.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003675/0.01136, allocations: 238.7 kB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.442e-05/0.01142, allocations: 79.53 kB / 279.5 MB, free: 10.74 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.271e-05/0.01144, allocations: 11.97 kB / 279.5 MB, free: 10.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.103e-05/0.01148, allocations: 12.5 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.01148, allocations: 0 / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of Templates: time 0.003094/0.01457, allocations: 0.9184 MB / 280.5 MB, free: 9.809 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.924910551868379]