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.001474/0.001474, allocations: 118.6 kB / 18.5 MB, free: 4.543 MB / 14.72 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.001512/0.001512, allocations: 202.6 kB / 21.45 MB, free: 1.59 MB / 14.72 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.627/1.627, allocations: 230.2 MB / 254.5 MB, free: 15.21 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002015/0.002015, allocations: 63.91 kB / 373.8 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1475, allocations: 53.32 MB / 427.1 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003544/0.151, allocations: 1.624 MB / 428.8 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005455/0.1516, allocations: 183.4 kB / 428.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.1517, allocations: 7.938 kB / 429 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.1518, allocations: 7.875 kB / 429 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.152, allocations: 19.86 kB / 429 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.1522, allocations: 43.89 kB / 429 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001631/0.1524, allocations: 71.77 kB / 429.1 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.1525, allocations: 23.97 kB / 429.1 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.934e-05/0.1526, allocations: 27.92 kB / 429.1 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.1527, allocations: 39.78 kB / 429.2 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.1527, allocations: 8 kB / 429.2 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.548e-05/0.1528, allocations: 4 kB / 429.2 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.277e-05/0.1528, allocations: 23.92 kB / 429.2 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.992e-05/0.1529, allocations: 51.66 kB / 429.3 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.153, allocations: 87.52 kB / 429.4 MB, free: 2.227 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.153, allocations: 4 kB / 429.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.153, allocations: 0 / 429.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.1531, allocations: 3.938 kB / 429.4 MB, free: 2.219 MB / 350.1 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.0006551/0.1537, allocations: 418.8 kB / 429.8 MB, free: 1.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.1538, allocations: 16.03 kB / 429.8 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.841e-05/0.1538, allocations: 12.89 kB / 429.8 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/0.1541, allocations: 204.2 kB / 430 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.1541, allocations: 4.375 kB / 430 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.778e-05/0.1541, allocations: 8.375 kB / 430 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004501/0.1545, allocations: 212.6 kB / 430.2 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.1545, allocations: 192 / 430.2 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.1546, allocations: 3.938 kB / 430.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.1546, allocations: 0 / 430.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001585/0.1547, allocations: 59.89 kB / 430.3 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000525/0.1553, allocations: 397.8 kB / 430.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.1555, allocations: 123.6 kB / 430.8 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.1556, allocations: 70.61 kB / 430.9 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.257e-05/0.1556, allocations: 8.125 kB / 430.9 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/0.1557, allocations: 34.56 kB / 430.9 MB, free: 480 kB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.252e-06/0.1557, allocations: 0 / 430.9 MB, free: 480 kB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004367/0.1561, allocations: 165.5 kB / 431.1 MB, free: 308 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.272e-05/0.1562, allocations: 111.1 kB / 431.2 MB, free: 172 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001596/0.1564, allocations: 162.2 kB / 431.3 MB, free: 0 / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.321e-05/0.1564, allocations: 25.7 kB / 431.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.386e-05/0.1565, allocations: 96.36 kB / 431.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.83e-05/0.1565, allocations: 16.31 kB / 431.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.015e-05/0.1565, allocations: 29.72 kB / 431.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1567, allocations: 318.8 kB / 431.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.093e-05/0.1568, allocations: 19.98 kB / 431.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.1569, allocations: 97.3 kB / 431.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.157, allocations: 113.3 kB / 432 MB, free: 15.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1571, allocations: 3.938 kB / 432 MB, free: 15.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002263/0.1573, allocations: 125.4 kB / 432.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.1573, allocations: 8.344 kB / 432.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.1573, allocations: 4 kB / 432.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.1573, allocations: 4 kB / 432.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.1574, allocations: 23.98 kB / 432.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.1575, allocations: 7.938 kB / 432.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.944e-05/0.1575, allocations: 11.94 kB / 432.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.1575, allocations: 8 kB / 432.2 MB, free: 15 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,integerConstant.y,sum2.y,sum2.u[2],sum2.u[1],sum1.y,sum1.u[2],sum1.u[1],sample2.y,hold1.y,hold1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001476/0.1577, allocations: 133.8 kB / 432.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001809/0.1579, allocations: 113.5 kB / 432.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.267e-05/0.1579, allocations: 16.72 kB / 432.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1579, allocations: 0 / 432.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.1579, allocations: 4 kB / 432.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.1579, allocations: 0 / 432.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002905/0.1582, allocations: 197.5 kB / 432.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1582, allocations: 0 / 432.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.1583, allocations: 31.86 kB / 432.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1583, allocations: 0 / 432.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.1584, allocations: 12 kB / 432.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.1584, allocations: 3.984 kB / 432.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1584, allocations: 4 kB / 432.7 MB, free: 14.43 MB / 366.1 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332: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:342:7-342: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:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8012:5-8012: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.0004972/0.1589, allocations: 383.1 kB / 433.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.586e-05/0.159, allocations: 97 kB / 433.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.542e-05/0.159, allocations: 7.984 kB / 433.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.1591, allocations: 4 kB / 433.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.681e-05/0.1591, allocations: 0 / 433.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.1591, allocations: 8 kB / 433.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001158/0.1593, allocations: 119.9 kB / 433.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1593, allocations: 0 / 433.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002879/0.1595, allocations: 16 kB / 433.4 MB, free: 13.77 MB / 366.1 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.0001514/0.1597, allocations: 111.3 kB / 433.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002393/0.1599, allocations: 83.7 kB / 433.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.1599, allocations: 4.688 kB / 433.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.419e-05/0.16, allocations: 15.94 kB / 433.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005111/0.1605, allocations: 63.91 kB / 433.6 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005051/0.161, allocations: 251.5 kB / 433.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003877/0.1614, allocations: 0.708 MB / 434.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.811e-05/0.1614, allocations: 8.688 kB / 434.6 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.491e-05/0.1615, allocations: 11.44 kB / 434.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1615, allocations: 4 kB / 434.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of Templates: time 0.003909/0.1654, allocations: 0.9454 MB / 435.5 MB, free: 11.52 MB / 366.1 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: 5.073907607235014]