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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009496/0.0009496, allocations: 177.1 kB / 13.64 MB, free: 1.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.256/1.256, allocations: 221.3 MB / 235.5 MB, free: 2.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009083/0.0009083, allocations: 95.53 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.737e-05/3.741e-05, allocations: 0 / 343.8 MB, free: 4.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1331, allocations: 50.42 MB / 394.2 MB, free: 1.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3511/0.4843, allocations: 77.24 MB / 471.5 MB, free: 10.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001967/0.4845, allocations: 81.69 kB / 471.6 MB, free: 10.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004121/0.4886, allocations: 1.654 MB / 473.2 MB, free: 8.609 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.4887, allocations: 0 / 473.2 MB, free: 8.609 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.4887, allocations: 4 kB / 473.2 MB, free: 8.605 MB / 346.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.0003363/0.489, allocations: 382.8 kB / 473.6 MB, free: 8.188 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.4891, allocations: 8.031 kB / 473.6 MB, free: 8.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.33e-05/0.4891, allocations: 11.91 kB / 473.6 MB, free: 8.168 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.4893, allocations: 199.7 kB / 473.8 MB, free: 7.934 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.946e-06/0.4893, allocations: 3.938 kB / 473.8 MB, free: 7.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.628e-05/0.4894, allocations: 8 kB / 473.8 MB, free: 7.922 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003457/0.4897, allocations: 210.9 kB / 474 MB, free: 7.695 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.4897, allocations: 3.984 kB / 474 MB, free: 7.691 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.4897, allocations: 3.953 kB / 474 MB, free: 7.688 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.4898, allocations: 4 kB / 474 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.08e-05/0.4898, allocations: 43.92 kB / 474.1 MB, free: 7.641 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004336/0.4903, allocations: 389.8 kB / 474.5 MB, free: 7.203 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001464/0.4904, allocations: 121 kB / 474.6 MB, free: 7.059 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.4905, allocations: 82.64 kB / 474.7 MB, free: 6.969 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.4906, allocations: 7.969 kB / 474.7 MB, free: 6.961 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.4906, allocations: 38.56 kB / 474.7 MB, free: 6.914 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.4906, allocations: 0 / 474.7 MB, free: 6.914 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002317/0.4908, allocations: 105.5 kB / 474.8 MB, free: 6.805 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.341e-05/0.4909, allocations: 118.8 kB / 474.9 MB, free: 6.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.491, allocations: 148.4 kB / 475.1 MB, free: 6.516 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.4911, allocations: 29.7 kB / 475.1 MB, free: 6.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.731e-05/0.4911, allocations: 92.41 kB / 475.2 MB, free: 6.383 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.108e-05/0.4911, allocations: 4 kB / 475.2 MB, free: 6.379 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-06/0.4911, allocations: 0 / 475.2 MB, free: 6.379 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.4913, allocations: 322.8 kB / 475.5 MB, free: 6.055 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.614e-05/0.4913, allocations: 12 kB / 475.5 MB, free: 6.043 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.379e-05/0.4914, allocations: 87.95 kB / 475.6 MB, free: 5.926 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.416e-05/0.4914, allocations: 27.92 kB / 475.6 MB, free: 5.898 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4914, allocations: 4 kB / 475.6 MB, free: 5.895 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001656/0.4916, allocations: 125.5 kB / 475.8 MB, free: 5.766 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.4916, allocations: 15.83 kB / 475.8 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.4916, allocations: 4 kB / 475.8 MB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.4916, allocations: 4 kB / 475.8 MB, free: 5.742 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.4918, allocations: 23.98 kB / 475.8 MB, free: 5.719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.4918, allocations: 3.938 kB / 475.8 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.662e-05/0.4918, allocations: 8 kB / 475.8 MB, free: 5.707 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.4918, allocations: 4 kB / 475.8 MB, free: 5.703 MB / 346.7 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 () * 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 7.649e-05/0.4919, allocations: 127.3 kB / 475.9 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.4921, allocations: 97.52 kB / 476 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.25e-05/0.4921, allocations: 20.58 kB / 476.1 MB, free: 5.453 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.4921, allocations: 4 kB / 476.1 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.4922, allocations: 0 / 476.1 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.4922, allocations: 3.984 kB / 476.1 MB, free: 5.445 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.4924, allocations: 193.5 kB / 476.3 MB, free: 5.207 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.4924, allocations: 3.984 kB / 476.3 MB, free: 5.203 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.4925, allocations: 31.92 kB / 476.3 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.4925, allocations: 0 / 476.3 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.4925, allocations: 4 kB / 476.3 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.4925, allocations: 7.953 kB / 476.3 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4926, allocations: 3.984 kB / 476.3 MB, free: 5.156 MB / 346.7 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.) hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold1.u = sum2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y equations: hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold1.u = sum2.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:7819:5-7819: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.0003533/0.4929, allocations: 383.9 kB / 476.7 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.84e-05/0.493, allocations: 108.8 kB / 476.8 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.493, allocations: 8 kB / 476.8 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.4931, allocations: 8 kB / 476.8 MB, free: 4.609 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.191e-05/0.4932, allocations: 7.922 kB / 476.8 MB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.293e-06/0.4932, allocations: 4 kB / 476.8 MB, free: 4.598 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.45e-05/0.4933, allocations: 118.5 kB / 476.9 MB, free: 4.484 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4933, allocations: 0 / 476.9 MB, free: 4.484 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002537/0.4935, allocations: 16 kB / 476.9 MB, free: 4.469 MB / 346.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 (hold1.y,sample1.u,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 () * 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.0001032/0.4936, allocations: 104.3 kB / 477 MB, free: 4.359 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001278/0.4938, allocations: 71.86 kB / 477.1 MB, free: 4.289 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.4938, allocations: 0 / 477.1 MB, free: 4.289 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.821e-05/0.4938, allocations: 12.02 kB / 477.1 MB, free: 4.277 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.4941, allocations: 61.88 kB / 477.2 MB, free: 4.219 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002944/0.4944, allocations: 175.8 kB / 477.4 MB, free: 4.02 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002582/0.4947, allocations: 0.72 MB / 478.1 MB, free: 3.273 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.172e-05/0.4947, allocations: 12.42 kB / 478.1 MB, free: 3.262 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.757e-05/0.4948, allocations: 15.42 kB / 478.1 MB, free: 3.246 MB / 346.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4948, allocations: 0 / 478.1 MB, free: 3.246 MB / 346.7 MB Notification: Performance of Templates: time 0.002578/0.4973, allocations: 0.822 MB / 478.9 MB, free: 2.434 MB / 346.7 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches