Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 92.62 kB / 20.96 MB, free: 3.469 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 149.5 kB / 24.26 MB, free: 176 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.938e-05/3.107e-05, allocations: 2.312 kB / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003251/0.003282, allocations: 1.612 MB / 268.9 MB, free: 5.109 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005945/0.003877, allocations: 175.3 kB / 269.1 MB, free: 4.938 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.003985, allocations: 7.938 kB / 269.1 MB, free: 4.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001226/0.004108, allocations: 15.86 kB / 269.1 MB, free: 4.914 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001529/0.004261, allocations: 11.86 kB / 269.1 MB, free: 4.902 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002738/0.004535, allocations: 51.81 kB / 269.2 MB, free: 4.852 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001616/0.004696, allocations: 75.58 kB / 269.3 MB, free: 4.777 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.004827, allocations: 31.92 kB / 269.3 MB, free: 4.746 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.474e-05/0.004902, allocations: 35.91 kB / 269.3 MB, free: 4.711 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.005003, allocations: 31.89 kB / 269.4 MB, free: 4.68 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.638e-05/0.00503, allocations: 4 kB / 269.4 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.65e-05/0.005046, allocations: 8 kB / 269.4 MB, free: 4.668 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.91e-05/0.005105, allocations: 23.92 kB / 269.4 MB, free: 4.645 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.495e-05/0.00516, allocations: 23.91 kB / 269.4 MB, free: 4.621 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002007/0.005361, allocations: 83.64 kB / 269.5 MB, free: 4.539 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.005363, allocations: 0 / 269.5 MB, free: 4.539 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.005364, allocations: 4 kB / 269.5 MB, free: 4.535 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.005369, allocations: 4 kB / 269.5 MB, free: 4.531 MB / 250.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.0006952/0.006064, allocations: 333.8 kB / 269.8 MB, free: 4.172 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.006105, allocations: 8.031 kB / 269.8 MB, free: 4.164 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.805e-05/0.006173, allocations: 24.84 kB / 269.9 MB, free: 4.141 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002677/0.006441, allocations: 153.5 kB / 270 MB, free: 3.965 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.006455, allocations: 4.281 kB / 270 MB, free: 3.961 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.006474, allocations: 12.38 kB / 270 MB, free: 3.949 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000489/0.006963, allocations: 210.3 kB / 270.2 MB, free: 3.723 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.006976, allocations: 4.125 kB / 270.2 MB, free: 3.719 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.304e-05/0.006999, allocations: 8.359 kB / 270.2 MB, free: 3.711 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.007006, allocations: 384 / 270.2 MB, free: 3.711 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001576/0.007164, allocations: 55.89 kB / 270.3 MB, free: 3.656 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005256/0.007689, allocations: 317.5 kB / 270.6 MB, free: 3.309 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002406/0.00793, allocations: 119.8 kB / 270.7 MB, free: 3.164 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003051/0.008235, allocations: 78.66 kB / 270.8 MB, free: 3.078 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.008263, allocations: 4 kB / 270.8 MB, free: 3.074 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.766e-05/0.008311, allocations: 38.5 kB / 270.8 MB, free: 3.027 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.012e-06/0.008312, allocations: 0 / 270.8 MB, free: 3.027 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004789/0.008791, allocations: 181.6 kB / 271 MB, free: 2.844 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.356e-05/0.008884, allocations: 106.8 kB / 271.1 MB, free: 2.715 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.009066, allocations: 166.2 kB / 271.3 MB, free: 2.543 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.009088, allocations: 25.95 kB / 271.3 MB, free: 2.512 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.68e-05/0.009175, allocations: 100.4 kB / 271.4 MB, free: 2.406 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.394e-05/0.009189, allocations: 4 kB / 271.4 MB, free: 2.402 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.706e-05/0.009246, allocations: 25.66 kB / 271.4 MB, free: 2.371 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.009427, allocations: 314.8 kB / 271.8 MB, free: 2.055 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.259e-05/0.009469, allocations: 11.98 kB / 271.8 MB, free: 2.043 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.402e-05/0.009513, allocations: 17.72 kB / 271.8 MB, free: 2.02 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.794e-05/0.009601, allocations: 33.64 kB / 271.8 MB, free: 1.98 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.009604, allocations: 4.062 kB / 271.8 MB, free: 1.977 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001343/0.009738, allocations: 57.58 kB / 271.9 MB, free: 1.914 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.009762, allocations: 14.91 kB / 271.9 MB, free: 1.902 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.009767, allocations: 0 / 271.9 MB, free: 1.902 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.009783, allocations: 0 / 271.9 MB, free: 1.902 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.179e-05/0.009855, allocations: 7.984 kB / 271.9 MB, free: 1.895 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.00986, allocations: 0 / 271.9 MB, free: 1.895 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.507e-05/0.009896, allocations: 4 kB / 271.9 MB, free: 1.891 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.009902, allocations: 0 / 271.9 MB, free: 1.891 MB / 250.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.0001234/0.01003, allocations: 125.9 kB / 272 MB, free: 1.758 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002133/0.01024, allocations: 105.6 kB / 272.1 MB, free: 1.648 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.819e-05/0.0103, allocations: 24.7 kB / 272.1 MB, free: 1.617 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.0103, allocations: 4 kB / 272.2 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.0103, allocations: 0 / 272.2 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.01031, allocations: 0 / 272.2 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002398/0.01055, allocations: 137.2 kB / 272.3 MB, free: 1.449 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.01055, allocations: 4 kB / 272.3 MB, free: 1.445 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.01067, allocations: 23.98 kB / 272.3 MB, free: 1.422 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.01067, allocations: 0 / 272.3 MB, free: 1.422 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.01069, allocations: 8 kB / 272.3 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.01069, allocations: 7.875 kB / 272.3 MB, free: 1.406 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.01069, allocations: 0 / 272.3 MB, free: 1.406 MB / 250.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.0005233/0.01122, allocations: 380.4 kB / 272.7 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.976e-05/0.01128, allocations: 23.89 kB / 272.7 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.0113, allocations: 4 kB / 272.7 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.01142, allocations: 11.94 kB / 272.7 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.543e-05/0.01146, allocations: 7.938 kB / 272.7 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/0.01147, allocations: 4 kB / 272.8 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001095/0.01158, allocations: 121.1 kB / 272.9 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01158, allocations: 0 / 272.9 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002773/0.01186, allocations: 8 kB / 272.9 MB, free: 0.8398 MB / 250.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.0001478/0.012, allocations: 106.6 kB / 273 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000211/0.01221, allocations: 59.91 kB / 273 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.01222, allocations: 0 / 273 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.353e-05/0.01226, allocations: 15.92 kB / 273.1 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005167/0.01278, allocations: 66.73 kB / 273.1 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005207/0.0133, allocations: 247.4 kB / 273.4 MB, free: 328 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001231/0.01342, allocations: 100.2 kB / 273.5 MB, free: 208 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.33e-05/0.01344, allocations: 4.172 kB / 273.5 MB, free: 204 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.483e-05/0.01348, allocations: 16.5 kB / 273.5 MB, free: 188 kB / 250.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01348, allocations: 0 / 273.5 MB, free: 188 kB / 250.7 MB Notification: Performance of Templates: time 0.003833/0.01731, allocations: 0.9279 MB / 274.4 MB, free: 15.27 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.155775775900111]