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.001205/0.001205, allocations: 105.3 kB / 17.74 MB, free: 5.348 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.001109/0.001109, allocations: 186.4 kB / 18.67 MB, free: 4.43 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.368/1.368, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009632/0.0009632, allocations: 39.94 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2654, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002922/0.2684, allocations: 1.604 MB / 403 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004961/0.2689, allocations: 187.3 kB / 403.2 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.279e-05/0.269, allocations: 4 kB / 403.2 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001022/0.2691, allocations: 11.86 kB / 403.2 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001305/0.2693, allocations: 15.86 kB / 403.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002383/0.2695, allocations: 47.83 kB / 403.3 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.2697, allocations: 67.84 kB / 403.3 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.2698, allocations: 35.97 kB / 403.4 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.513e-05/0.2698, allocations: 23.92 kB / 403.4 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.403e-05/0.2699, allocations: 39.78 kB / 403.4 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.64e-05/0.27, allocations: 8 kB / 403.5 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.835e-05/0.27, allocations: 8 kB / 403.5 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.21e-05/0.2701, allocations: 27.86 kB / 403.5 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.016e-05/0.2701, allocations: 43.67 kB / 403.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001403/0.2703, allocations: 87.64 kB / 403.6 MB, free: 6.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2703, allocations: 3.938 kB / 403.6 MB, free: 6.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.2703, allocations: 0 / 403.6 MB, free: 6.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.2703, allocations: 0 / 403.6 MB, free: 6.68 MB / 318.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.0006489/0.271, allocations: 416.1 kB / 404 MB, free: 6.227 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.271, allocations: 11.89 kB / 404 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.2711, allocations: 20.75 kB / 404.1 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002956/0.2714, allocations: 204 kB / 404.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.2714, allocations: 4.375 kB / 404.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.051e-05/0.2714, allocations: 12.38 kB / 404.3 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004191/0.2719, allocations: 202.3 kB / 404.5 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.2719, allocations: 192 / 404.5 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.2719, allocations: 7.938 kB / 404.5 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.2719, allocations: 4 kB / 404.5 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001356/0.2721, allocations: 51.91 kB / 404.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005125/0.2726, allocations: 385.8 kB / 404.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000209/0.2728, allocations: 135.8 kB / 405 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.2729, allocations: 70.67 kB / 405.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.225e-05/0.273, allocations: 11.98 kB / 405.1 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.273, allocations: 30.56 kB / 405.2 MB, free: 4.938 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/0.273, allocations: 0 / 405.2 MB, free: 4.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004071/0.2734, allocations: 169.3 kB / 405.3 MB, free: 4.766 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.273e-05/0.2735, allocations: 102.8 kB / 405.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.2737, allocations: 168.1 kB / 405.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.2737, allocations: 25.7 kB / 405.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.057e-05/0.2738, allocations: 100.7 kB / 405.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.2738, allocations: 11.89 kB / 405.7 MB, free: 4.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.754e-05/0.2739, allocations: 33.7 kB / 405.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.274, allocations: 322.8 kB / 406.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.584e-05/0.2741, allocations: 23.92 kB / 406.1 MB, free: 3.934 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.021e-05/0.2742, allocations: 85.44 kB / 406.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001529/0.2744, allocations: 109.3 kB / 406.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.2744, allocations: 4 kB / 406.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002333/0.2746, allocations: 129.2 kB / 406.4 MB, free: 3.539 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.2746, allocations: 7.984 kB / 406.4 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.2747, allocations: 4 kB / 406.4 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.2747, allocations: 4.344 kB / 406.4 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.2748, allocations: 23.94 kB / 406.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.2748, allocations: 7.984 kB / 406.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.453e-05/0.2749, allocations: 15.84 kB / 406.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.2749, allocations: 8 kB / 406.5 MB, free: 3.469 MB / 318.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 (integerConstant.y,sum2.y,sum2.u[2],sum2.u[1],sum1.y,sum1.u[2],sum1.u[1],sample2.y,sample1.y,sample1.u,hold1.u,hold1.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.0001211/0.275, allocations: 137.7 kB / 406.6 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.104e-05/0.2751, allocations: 7.906 kB / 406.6 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.555e-05/0.2752, allocations: 16.72 kB / 406.6 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.2752, allocations: 8 kB / 406.6 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.2752, allocations: 3.984 kB / 406.6 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.176e-05/0.2753, allocations: 104.8 kB / 406.8 MB, free: 3.164 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.701e-05/0.2753, allocations: 0 / 406.8 MB, free: 3.164 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.2754, allocations: 8 kB / 406.8 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.263e-05/0.2755, allocations: 19.84 kB / 406.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003665/0.2758, allocations: 359.4 kB / 407.1 MB, free: 2.777 MB / 318.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.) sum2.y hold1.u hold1.y sample2.y sum1.u[2] sum1.y sum2.u[2] sum2.y := sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] := sum1.y 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 [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: sum2.y hold1.u hold1.y sample2.y sum1.u[2] sum1.y sum2.u[2] equations: sum2.y := sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] := sum1.y 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 [/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:8011:5-8011:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module SymbolicJacobian.symbolicJacobianDAE failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004917/0.2763, allocations: 0.4988 MB / 407.6 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001026/0.2764, allocations: 47.91 kB / 407.7 MB, free: 2.215 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.572e-05/0.2766, allocations: 122.1 kB / 407.8 MB, free: 2.098 MB / 318.1 MB Notification: Performance of Backend: time 5.81e-07/0.2766, allocations: 0 / 407.8 MB, free: 2.098 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005775/0.2771, allocations: 122.8 kB / 407.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of SimCode: time 0.000717/0.2779, allocations: 0.6627 MB / 408.6 MB, free: 1.262 MB / 318.1 MB Notification: Performance of Templates: time 0.003709/0.2816, allocations: 0.9414 MB / 409.5 MB, free: 340 kB / 318.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)