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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 91.36 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001482/0.001481, allocations: 178.5 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 223.3 MB / 241.6 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00039/0.0003901, allocations: 13 kB / 301.4 MB, free: 6.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1614/0.1618, allocations: 50.42 MB / 351.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002754/0.1647, allocations: 1.315 MB / 353.2 MB, free: 2.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000587/0.1653, allocations: 179.4 kB / 353.3 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.1655, allocations: 4 kB / 353.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.1656, allocations: 7.938 kB / 353.3 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.1659, allocations: 11.92 kB / 353.3 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003823/0.1663, allocations: 42.03 kB / 353.4 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001522/0.1664, allocations: 67.77 kB / 353.5 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001663/0.1666, allocations: 35.98 kB / 353.5 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.298e-05/0.1667, allocations: 7.938 kB / 353.5 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001573/0.1668, allocations: 39.77 kB / 353.5 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.848e-05/0.1669, allocations: 4 kB / 353.5 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.575e-05/0.1669, allocations: 4 kB / 353.5 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.498e-05/0.1669, allocations: 19.92 kB / 353.6 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.649e-05/0.167, allocations: 61.39 kB / 353.6 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001625/0.1672, allocations: 75.69 kB / 353.7 MB, free: 1.844 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1672, allocations: 0 / 353.7 MB, free: 1.844 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.709e-06/0.1672, allocations: 0 / 353.7 MB, free: 1.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.1672, allocations: 3.938 kB / 353.7 MB, free: 1.84 MB / 286.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.000751/0.168, allocations: 399.3 kB / 354.1 MB, free: 1.398 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.786e-05/0.1681, allocations: 8.031 kB / 354.1 MB, free: 1.391 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.028e-05/0.1682, allocations: 12.84 kB / 354.1 MB, free: 1.379 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002886/0.1685, allocations: 208 kB / 354.3 MB, free: 1.137 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.1685, allocations: 8.359 kB / 354.3 MB, free: 1.129 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.1685, allocations: 8.375 kB / 354.3 MB, free: 1.121 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004957/0.169, allocations: 218.2 kB / 354.5 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.169, allocations: 192 / 354.5 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.771e-05/0.1691, allocations: 7.875 kB / 354.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.1691, allocations: 4 kB / 354.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001538/0.1692, allocations: 59.89 kB / 354.6 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006103/0.1699, allocations: 393.7 kB / 355 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002179/0.1701, allocations: 135.8 kB / 355.1 MB, free: 220 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.1702, allocations: 82.61 kB / 355.2 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.1703, allocations: 0 / 355.2 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.1703, allocations: 38.56 kB / 355.3 MB, free: 80 kB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.683e-06/0.1703, allocations: 0 / 355.3 MB, free: 80 kB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005646/0.1709, allocations: 169.4 kB / 355.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.171, allocations: 114.8 kB / 355.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/0.1712, allocations: 162.1 kB / 355.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.1712, allocations: 25.7 kB / 355.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.974e-05/0.1713, allocations: 92.42 kB / 355.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.1714, allocations: 12.23 kB / 355.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.369e-05/0.1714, allocations: 21.72 kB / 355.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.1716, allocations: 322.8 kB / 356.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.372e-05/0.1716, allocations: 19.98 kB / 356.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001202/0.1718, allocations: 85.44 kB / 356.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/0.172, allocations: 121.2 kB / 356.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.172, allocations: 7.938 kB / 356.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002405/0.1722, allocations: 133.3 kB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.1723, allocations: 10.75 kB / 356.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.1723, allocations: 4 kB / 356.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.1723, allocations: 4.344 kB / 356.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.1724, allocations: 27.92 kB / 356.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.1725, allocations: 4 kB / 356.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.974e-05/0.1725, allocations: 12 kB / 356.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/0.1726, allocations: 4 kB / 356.6 MB, free: 14.61 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.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.0001497/0.1727, allocations: 141.6 kB / 356.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002163/0.1729, allocations: 105.9 kB / 356.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.806e-05/0.173, allocations: 20.7 kB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.173, allocations: 4 kB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.173, allocations: 4 kB / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.1731, allocations: 96 / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003013/0.1734, allocations: 197.4 kB / 357 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1734, allocations: 0 / 357 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001202/0.1735, allocations: 23.98 kB / 357.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.828e-06/0.1735, allocations: 0 / 357.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.1735, allocations: 12 kB / 357.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.1735, allocations: 0 / 357.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1735, allocations: 0 / 357.1 MB, free: 14.05 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:7947:5-7947: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.0005624/0.1741, allocations: 404.4 kB / 357.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.667e-05/0.1742, allocations: 100.9 kB / 357.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.1743, allocations: 0 / 357.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.1744, allocations: 7.984 kB / 357.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.932e-05/0.1744, allocations: 4 kB / 357.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.856e-06/0.1744, allocations: 4 kB / 357.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001159/0.1746, allocations: 122.8 kB / 357.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1746, allocations: 0 / 357.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003273/0.1749, allocations: 20 kB / 357.7 MB, free: 13.36 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 (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.0001469/0.1751, allocations: 115 kB / 357.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002849/0.1753, allocations: 80.47 kB / 357.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1754, allocations: 4.062 kB / 357.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.587e-05/0.1754, allocations: 15.98 kB / 357.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005778/0.176, allocations: 74.62 kB / 358 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005187/0.1765, allocations: 267.2 kB / 358.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.1769, allocations: 0.7081 MB / 359 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.183e-05/0.1769, allocations: 20.28 kB / 359 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.707e-05/0.177, allocations: 19.44 kB / 359 MB, free: 12.01 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.177, allocations: 0 / 359 MB, free: 12.01 MB / 302.1 MB Notification: Performance of Templates: time 0.003865/0.1808, allocations: 0.8484 MB / 359.9 MB, free: 11.16 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile (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) 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) Reference file matches