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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001008/0.001008, allocations: 96.78 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001201/0.001201, allocations: 207.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.635/1.635, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003122/0.0003122, allocations: 4 kB / 306.6 MB, free: 1.406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1585, allocations: 51.48 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002869/0.1615, allocations: 1.305 MB / 359.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006705/0.1622, allocations: 175.5 kB / 359.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.1624, allocations: 4 kB / 359.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.1625, allocations: 11.92 kB / 359.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002034/0.1627, allocations: 11.92 kB / 359.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000354/0.1631, allocations: 47.89 kB / 359.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001435/0.1632, allocations: 43.89 kB / 359.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.1634, allocations: 36.14 kB / 359.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.157e-05/0.1635, allocations: 19.88 kB / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.1636, allocations: 31.84 kB / 359.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.998e-05/0.1637, allocations: 0 / 359.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.78e-05/0.1637, allocations: 8 kB / 359.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.162e-05/0.1637, allocations: 15.92 kB / 359.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.749e-05/0.1638, allocations: 41.64 kB / 359.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.1639, allocations: 63.81 kB / 359.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.164, allocations: 0 / 359.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.164, allocations: 0 / 359.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.164, allocations: 0 / 359.9 MB, free: 12.11 MB / 302.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.0007332/0.1647, allocations: 393.8 kB / 360.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.103e-05/0.1648, allocations: 8.031 kB / 360.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.148e-05/0.1649, allocations: 15.91 kB / 360.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003603/0.1652, allocations: 210.2 kB / 360.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.1653, allocations: 8 kB / 360.5 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.702e-05/0.1653, allocations: 7.953 kB / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006902/0.166, allocations: 217.7 kB / 360.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.166, allocations: 0 / 360.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.1661, allocations: 0 / 360.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.437e-06/0.1661, allocations: 0 / 360.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.1663, allocations: 59.91 kB / 360.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008398/0.1671, allocations: 397.7 kB / 361.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003062/0.1675, allocations: 123.8 kB / 361.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.28e-05/0.1675, allocations: 8.125 kB / 361.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.589e-05/0.1676, allocations: 38.55 kB / 361.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.094e-06/0.1676, allocations: 0 / 361.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.000694/0.1683, allocations: 165.6 kB / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/0.1684, allocations: 118.8 kB / 361.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000232/0.1687, allocations: 162.1 kB / 361.8 MB, free: 9.977 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.1687, allocations: 25.7 kB / 361.8 MB, free: 9.945 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.699e-05/0.1688, allocations: 92.42 kB / 361.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.1688, allocations: 11.98 kB / 361.9 MB, free: 9.836 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-06/0.1689, allocations: 0 / 361.9 MB, free: 9.836 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.169, allocations: 326.8 kB / 362.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.992e-05/0.1691, allocations: 23.98 kB / 362.2 MB, free: 9.484 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.1693, allocations: 89.31 kB / 362.3 MB, free: 9.363 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001235/0.1694, allocations: 35.98 kB / 362.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.1694, allocations: 0 / 362.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003325/0.1698, allocations: 137.2 kB / 362.5 MB, free: 9.188 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.1698, allocations: 4 kB / 362.5 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.1698, allocations: 4 kB / 362.5 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.1698, allocations: 4 kB / 362.5 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.17, allocations: 32.27 kB / 362.5 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.17, allocations: 4 kB / 362.5 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.813e-05/0.1701, allocations: 4 kB / 362.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.1701, allocations: 7.984 kB / 362.5 MB, free: 9.129 MB / 302.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.u,hold1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001855/0.1703, allocations: 145.7 kB / 362.7 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002381/0.1706, allocations: 93.58 kB / 362.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.232e-05/0.1707, allocations: 20.7 kB / 362.8 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1707, allocations: 4 kB / 362.8 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/0.1707, allocations: 4 kB / 362.8 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.1707, allocations: 0 / 362.8 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004296/0.1712, allocations: 205.4 kB / 363 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.1712, allocations: 480 / 363 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001641/0.1714, allocations: 23.98 kB / 363 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.1714, allocations: 0 / 363 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.1714, allocations: 4 kB / 363 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.1714, allocations: 0 / 363 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.1714, allocations: 3.938 kB / 363 MB, free: 8.57 MB / 302.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:7903:5-7903: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.0007609/0.1722, allocations: 431.7 kB / 363.5 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.1723, allocations: 100.9 kB / 363.6 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.026e-05/0.1724, allocations: 0 / 363.6 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.1726, allocations: 7.984 kB / 363.6 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.904e-05/0.1726, allocations: 8 kB / 363.6 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.1727, allocations: 0 / 363.6 MB, free: 7.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001307/0.1728, allocations: 126.4 kB / 363.7 MB, free: 7.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1728, allocations: 0 / 363.7 MB, free: 7.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004462/0.1733, allocations: 12 kB / 363.7 MB, free: 7.848 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002045/0.1735, allocations: 109.5 kB / 363.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003145/0.1738, allocations: 84.41 kB / 363.9 MB, free: 7.648 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/0.1738, allocations: 4 kB / 363.9 MB, free: 7.645 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.315e-05/0.1739, allocations: 15.98 kB / 363.9 MB, free: 7.629 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005678/0.1745, allocations: 59.89 kB / 364 MB, free: 7.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007058/0.1752, allocations: 267.1 kB / 364.2 MB, free: 7.281 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004342/0.1757, allocations: 0.7082 MB / 364.9 MB, free: 6.547 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.871e-05/0.1757, allocations: 12.55 kB / 365 MB, free: 6.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.181e-05/0.1758, allocations: 15.44 kB / 365 MB, free: 6.516 MB / 302.1 MB Notification: Performance of SimCode: time 1.603e-06/0.1758, allocations: 0 / 365 MB, free: 6.516 MB / 302.1 MB Notification: Performance of Templates: time 0.005339/0.1812, allocations: 0.8178 MB / 365.8 MB, free: 5.707 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile (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) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches