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.001883/0.001883, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002754/0.002754, allocations: 165.3 kB / 24.27 MB, free: 156 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.619/1.619, allocations: 177.1 MB / 204.6 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] 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 1.854e-06/1.854e-06, allocations: 0 / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.966e-05/3.151e-05, allocations: 2.312 kB / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003484/0.003516, allocations: 1.649 MB / 274 MB, free: 204 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000541/0.004057, allocations: 175.3 kB / 274.1 MB, free: 28 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.326e-05/0.00415, allocations: 7.938 kB / 274.1 MB, free: 20 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001053/0.004255, allocations: 7.875 kB / 274.1 MB, free: 12 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001518/0.004407, allocations: 19.97 kB / 274.2 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000231/0.004638, allocations: 43.83 kB / 274.2 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001496/0.004788, allocations: 75.66 kB / 274.3 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.004908, allocations: 23.97 kB / 274.3 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.716e-05/0.004975, allocations: 31.91 kB / 274.3 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.005089, allocations: 31.89 kB / 274.4 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.307e-05/0.005122, allocations: 8 kB / 274.4 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.685e-05/0.005139, allocations: 4 kB / 274.4 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.107e-05/0.0052, allocations: 23.92 kB / 274.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.517e-05/0.005255, allocations: 27.91 kB / 274.4 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001931/0.005448, allocations: 87.58 kB / 274.5 MB, free: 15.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.005452, allocations: 4 kB / 274.5 MB, free: 15.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.005454, allocations: 4 kB / 274.5 MB, free: 15.63 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.00546, allocations: 0 / 274.5 MB, free: 15.63 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.0006619/0.006122, allocations: 447.7 kB / 275 MB, free: 15.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.006157, allocations: 8.031 kB / 275 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.233e-05/0.006219, allocations: 12.89 kB / 275 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000267/0.006486, allocations: 156.3 kB / 275.1 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.006504, allocations: 12.36 kB / 275.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.43e-05/0.006518, allocations: 4.375 kB / 275.2 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004303/0.006949, allocations: 188.5 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.006958, allocations: 192 / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.006971, allocations: 4.375 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.006978, allocations: 384 / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.007096, allocations: 39.86 kB / 275.4 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005444/0.007641, allocations: 434.2 kB / 275.8 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002259/0.007866, allocations: 125.4 kB / 275.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.008011, allocations: 75.09 kB / 276 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.008037, allocations: 3.938 kB / 276 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.827e-05/0.008075, allocations: 41.39 kB / 276 MB, free: 13.92 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.102e-06/0.008077, allocations: 0 / 276 MB, free: 13.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003841/0.008461, allocations: 129.4 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.758e-05/0.008558, allocations: 114.7 kB / 276.3 MB, free: 13.65 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002346/0.008793, allocations: 230.9 kB / 276.5 MB, free: 13.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.628e-05/0.008819, allocations: 29.7 kB / 276.5 MB, free: 13.37 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.008927, allocations: 139.2 kB / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.229e-05/0.00894, allocations: 8.203 kB / 276.7 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.032e-05/0.009, allocations: 35.36 kB / 276.7 MB, free: 13.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002702/0.00927, allocations: 0.4884 MB / 277.2 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.678e-05/0.009307, allocations: 7.984 kB / 277.2 MB, free: 12.67 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.314e-05/0.00935, allocations: 23.38 kB / 277.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.271e-05/0.009423, allocations: 31.36 kB / 277.3 MB, free: 12.6 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.009425, allocations: 3.938 kB / 277.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001181/0.009543, allocations: 57.7 kB / 277.3 MB, free: 12.53 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.00956, allocations: 11.94 kB / 277.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.009565, allocations: 0 / 277.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.009577, allocations: 0 / 277.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.861e-05/0.009636, allocations: 4 kB / 277.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.009643, allocations: 3.938 kB / 277.3 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.91e-05/0.009672, allocations: 4 kB / 277.4 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.009678, allocations: 0 / 277.4 MB, free: 12.51 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.0001368/0.009815, allocations: 164.6 kB / 277.5 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001736/0.009989, allocations: 85.95 kB / 277.6 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.652e-05/0.01005, allocations: 28.77 kB / 277.6 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.01005, allocations: 0 / 277.6 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.01005, allocations: 0 / 277.6 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.01006, allocations: 4 kB / 277.6 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002543/0.01031, allocations: 148.5 kB / 277.8 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.01031, allocations: 0 / 277.8 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.01043, allocations: 31.92 kB / 277.8 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.01044, allocations: 0 / 277.8 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.01045, allocations: 4 kB / 277.8 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.187e-06/0.01045, allocations: 3.938 kB / 277.8 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01045, allocations: 0 / 277.8 MB, free: 12 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:8001:5-8001: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.0005488/0.011, allocations: 469.1 kB / 278.3 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.538e-05/0.01107, allocations: 23.92 kB / 278.3 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.657e-05/0.01108, allocations: 4 kB / 278.3 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.01119, allocations: 11.92 kB / 278.3 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.357e-05/0.01123, allocations: 4 kB / 278.3 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.01124, allocations: 4 kB / 278.3 MB, free: 11.47 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001258/0.01136, allocations: 158 kB / 278.5 MB, free: 11.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01136, allocations: 4 kB / 278.5 MB, free: 11.31 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000261/0.01163, allocations: 12 kB / 278.5 MB, free: 11.3 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.0001348/0.01176, allocations: 99.19 kB / 278.6 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001751/0.01194, allocations: 55.55 kB / 278.6 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01194, allocations: 0 / 278.6 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.576e-05/0.01198, allocations: 23.8 kB / 278.7 MB, free: 11.11 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004566/0.01244, allocations: 58.83 kB / 278.7 MB, free: 11.05 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004895/0.01293, allocations: 238.8 kB / 279 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001211/0.01305, allocations: 96.3 kB / 279 MB, free: 10.67 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.255e-05/0.01307, allocations: 4 kB / 279 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.307e-05/0.01311, allocations: 12.5 kB / 279.1 MB, free: 10.65 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01311, allocations: 0 / 279.1 MB, free: 10.65 MB / 266.7 MB Notification: Performance of Templates: time 0.004102/0.01721, allocations: 0.9289 MB / 280 MB, free: 9.746 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.530735801905394]