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.002035/0.002035, allocations: 108.2 kB / 17.16 MB, free: 6.082 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.002341/0.002341, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.472/2.472, allocations: 222.9 MB / 241.8 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001908, allocations: 55.91 kB / 300.6 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.1843, allocations: 49.45 MB / 350.1 MB, free: 4.637 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.006586/0.1909, allocations: 1.643 MB / 351.7 MB, free: 2.977 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000856/0.1918, allocations: 187.3 kB / 351.9 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.1921, allocations: 8 kB / 351.9 MB, free: 2.785 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.1923, allocations: 3.938 kB / 351.9 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002082/0.1925, allocations: 15.91 kB / 351.9 MB, free: 2.766 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003892/0.1929, allocations: 43.91 kB / 352 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002072/0.1931, allocations: 59.84 kB / 352 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002538/0.1934, allocations: 39.94 kB / 352.1 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.1935, allocations: 27.8 kB / 352.1 MB, free: 2.598 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.1937, allocations: 39.83 kB / 352.1 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.946e-05/0.1938, allocations: 4 kB / 352.1 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.329e-05/0.1938, allocations: 4 kB / 352.1 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.194, allocations: 23.86 kB / 352.2 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.864e-05/0.1941, allocations: 39.73 kB / 352.2 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001942/0.1943, allocations: 55.89 kB / 352.2 MB, free: 2.434 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.014e-05/0.1943, allocations: 12 kB / 352.3 MB, free: 2.422 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1943, allocations: 0 / 352.3 MB, free: 2.422 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.1943, allocations: 0 / 352.3 MB, free: 2.422 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.001086/0.1954, allocations: 407.2 kB / 352.7 MB, free: 1.973 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.399e-05/0.1955, allocations: 12.03 kB / 352.7 MB, free: 1.961 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.837e-05/0.1956, allocations: 12.83 kB / 352.7 MB, free: 1.949 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003885/0.196, allocations: 209.9 kB / 352.9 MB, free: 1.707 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.196, allocations: 8.375 kB / 352.9 MB, free: 1.699 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/0.1961, allocations: 8.375 kB / 352.9 MB, free: 1.691 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008655/0.197, allocations: 208.6 kB / 353.1 MB, free: 1.469 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.197, allocations: 192 / 353.1 MB, free: 1.469 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.85e-05/0.197, allocations: 15.88 kB / 353.1 MB, free: 1.453 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.1971, allocations: 0 / 353.1 MB, free: 1.453 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002704/0.1974, allocations: 63.83 kB / 353.2 MB, free: 1.391 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007945/0.1982, allocations: 381.7 kB / 353.6 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003842/0.1986, allocations: 135.8 kB / 353.7 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002419/0.1988, allocations: 82.66 kB / 353.8 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.922e-05/0.1989, allocations: 3.984 kB / 353.8 MB, free: 0.707 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.356e-05/0.199, allocations: 34.56 kB / 353.8 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 2.395e-06/0.199, allocations: 4 kB / 353.8 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007572/0.1998, allocations: 161.4 kB / 354 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.1999, allocations: 114.8 kB / 354.1 MB, free: 368 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002954/0.2002, allocations: 161.8 kB / 354.2 MB, free: 200 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.657e-05/0.2003, allocations: 29.7 kB / 354.3 MB, free: 164 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.725e-05/0.2004, allocations: 92.41 kB / 354.4 MB, free: 64 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.631e-05/0.2004, allocations: 8.25 kB / 354.4 MB, free: 56 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.759e-05/0.2005, allocations: 37.61 kB / 354.4 MB, free: 12 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.2007, allocations: 322.8 kB / 354.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.2009, allocations: 15.98 kB / 354.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000175/0.2011, allocations: 89.38 kB / 354.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002717/0.2013, allocations: 113.3 kB / 354.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.2014, allocations: 11.88 kB / 354.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000414/0.2018, allocations: 125.4 kB / 355.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.119e-05/0.2018, allocations: 4.375 kB / 355.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.2019, allocations: 7.938 kB / 355.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.824e-05/0.2019, allocations: 4 kB / 355.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.2021, allocations: 23.92 kB / 355.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.2022, allocations: 7.938 kB / 355.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.2023, allocations: 12.34 kB / 355.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.383e-05/0.2024, allocations: 12 kB / 355.1 MB, free: 15.2 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.0002187/0.2026, allocations: 144.7 kB / 355.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003349/0.2029, allocations: 105.4 kB / 355.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.436e-05/0.203, allocations: 20.7 kB / 355.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-06/0.2031, allocations: 4 kB / 355.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.2031, allocations: 0 / 355.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.2031, allocations: 0 / 355.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004566/0.2036, allocations: 193.6 kB / 355.6 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.2036, allocations: 4 kB / 355.6 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.2038, allocations: 19.98 kB / 355.6 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.033e-05/0.2038, allocations: 4 kB / 355.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/0.2038, allocations: 4 kB / 355.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.2038, allocations: 0 / 355.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.164e-06/0.2039, allocations: 4 kB / 355.6 MB, free: 14.64 MB / 302.1 MB [/var/lib/jenkins1/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/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/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.0007297/0.2046, allocations: 388.1 kB / 356 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.2047, allocations: 97 kB / 356.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.941e-05/0.2048, allocations: 0 / 356.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.205, allocations: 7.984 kB / 356.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.69e-05/0.205, allocations: 12 kB / 356.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.2051, allocations: 4 kB / 356.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001329/0.2052, allocations: 115.1 kB / 356.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2052, allocations: 0 / 356.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000564/0.2058, allocations: 16 kB / 356.3 MB, free: 13.97 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.0001905/0.206, allocations: 115.1 kB / 356.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003253/0.2063, allocations: 79.83 kB / 356.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.2063, allocations: 0 / 356.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.616e-05/0.2064, allocations: 15.98 kB / 356.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008076/0.2072, allocations: 75.17 kB / 356.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007733/0.208, allocations: 303.9 kB / 356.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004506/0.2085, allocations: 0.7198 MB / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.65e-05/0.2086, allocations: 15.44 kB / 357.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2086, allocations: 0 / 357.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of Templates: time 0.004972/0.2136, allocations: 1.163 MB / 358.7 MB, free: 11.43 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins1/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