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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 183.9 kB / 8.135 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 221.4 MB / 229.9 MB, free: 3.031 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.0008993/0.0008993, allocations: 105.5 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.566e-06/8.586e-06, allocations: 0 / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.2255, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08052/0.3061, allocations: 76.5 MB / 463.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001991/0.3064, allocations: 79.89 kB / 463.5 MB, free: 10.22 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.004044/0.3104, allocations: 1.333 MB / 464.8 MB, free: 8.906 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.3104, allocations: 4 kB / 464.8 MB, free: 8.902 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.0003563/0.3108, allocations: 384.4 kB / 465.2 MB, free: 8.484 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.3108, allocations: 9.344 kB / 465.2 MB, free: 8.477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.488e-05/0.3109, allocations: 11.91 kB / 465.2 MB, free: 8.465 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00019/0.3111, allocations: 206.7 kB / 465.4 MB, free: 8.223 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.3111, allocations: 4 kB / 465.4 MB, free: 8.219 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.3111, allocations: 4 kB / 465.4 MB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001324/0.3113, allocations: 47.98 kB / 465.5 MB, free: 8.168 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000282/0.3116, allocations: 189.7 kB / 465.7 MB, free: 7.961 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.3116, allocations: 6.938 kB / 465.7 MB, free: 7.957 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-06/0.3116, allocations: 0 / 465.7 MB, free: 7.957 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3116, allocations: 0 / 465.7 MB, free: 7.957 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003488/0.3119, allocations: 358.4 kB / 466 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.3121, allocations: 111.7 kB / 466.1 MB, free: 7.426 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.363e-05/0.3122, allocations: 73.16 kB / 466.2 MB, free: 7.348 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.3122, allocations: 3.984 kB / 466.2 MB, free: 7.344 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.3123, allocations: 50.59 kB / 466.3 MB, free: 7.285 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.312e-06/0.3123, allocations: 0 / 466.3 MB, free: 7.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002338/0.3125, allocations: 105.5 kB / 466.4 MB, free: 7.176 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.3126, allocations: 102.8 kB / 466.5 MB, free: 7.051 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.3127, allocations: 143.5 kB / 466.6 MB, free: 6.902 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.378e-05/0.3127, allocations: 29.77 kB / 466.6 MB, free: 6.867 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.813e-05/0.3127, allocations: 88.41 kB / 466.7 MB, free: 6.773 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.181e-05/0.3127, allocations: 8 kB / 466.7 MB, free: 6.766 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.657e-06/0.3128, allocations: 0 / 466.7 MB, free: 6.766 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.525e-05/0.3128, allocations: 322.7 kB / 467 MB, free: 6.441 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.401e-05/0.3129, allocations: 12 kB / 467 MB, free: 6.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.822e-05/0.3129, allocations: 85.38 kB / 467.1 MB, free: 6.312 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.855e-05/0.313, allocations: 29.02 kB / 467.2 MB, free: 6.285 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.313, allocations: 0 / 467.2 MB, free: 6.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001406/0.3131, allocations: 97.39 kB / 467.3 MB, free: 6.184 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.3132, allocations: 4 kB / 467.3 MB, free: 6.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.3132, allocations: 4 kB / 467.3 MB, free: 6.176 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.3132, allocations: 4.344 kB / 467.3 MB, free: 6.172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.3133, allocations: 35.86 kB / 467.3 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.3133, allocations: 4 kB / 467.3 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.258e-05/0.3134, allocations: 7.906 kB / 467.3 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.3134, allocations: 4 kB / 467.3 MB, free: 6.121 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 6.78e-05/0.3135, allocations: 121.8 kB / 467.4 MB, free: 6 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.3136, allocations: 103.7 kB / 467.5 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.097e-05/0.3137, allocations: 16.48 kB / 467.6 MB, free: 5.879 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.3137, allocations: 4 kB / 467.6 MB, free: 5.875 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3137, allocations: 3.938 kB / 467.6 MB, free: 5.871 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.3137, allocations: 0 / 467.6 MB, free: 5.871 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001841/0.3139, allocations: 166.1 kB / 467.7 MB, free: 5.672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3139, allocations: 4 kB / 467.7 MB, free: 5.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.314, allocations: 27.92 kB / 467.8 MB, free: 5.641 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.314, allocations: 0 / 467.8 MB, free: 5.641 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-06/0.3141, allocations: 0 / 467.8 MB, free: 5.641 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.3141, allocations: 8.875 kB / 467.8 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3141, allocations: 0 / 467.8 MB, free: 5.633 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:307:7-307:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Sorry - Support for Discrete Equation Systems is not yet implemented) 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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317: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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:321:7-321:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7187:5-7187: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 detectJacobianSparsePattern (simulation): time 0.0003557/0.3144, allocations: 395.8 kB / 468.2 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.637e-05/0.3145, allocations: 101 kB / 468.3 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.3145, allocations: 4.625 kB / 468.3 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.3147, allocations: 9.25 kB / 468.3 MB, free: 5.094 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.134e-05/0.3147, allocations: 0 / 468.3 MB, free: 5.094 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.3147, allocations: 4 kB / 468.3 MB, free: 5.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.628e-05/0.3148, allocations: 124.8 kB / 468.4 MB, free: 4.969 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002816/0.3151, allocations: 12 kB / 468.4 MB, free: 4.957 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 9.828e-05/0.3152, allocations: 99.19 kB / 468.5 MB, free: 4.848 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001379/0.3153, allocations: 63.86 kB / 468.6 MB, free: 4.785 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3153, allocations: 1.875 kB / 468.6 MB, free: 4.785 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.737e-05/0.3153, allocations: 12 kB / 468.6 MB, free: 4.773 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.3157, allocations: 66.7 kB / 468.6 MB, free: 4.711 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003028/0.316, allocations: 160.8 kB / 468.8 MB, free: 4.523 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000261/0.3163, allocations: 0.7309 MB / 469.5 MB, free: 3.766 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3163, allocations: 0 / 469.5 MB, free: 3.766 MB / 346.7 MB Notification: Performance of Templates: time 0.002922/0.3192, allocations: 0.9578 MB / 470.5 MB, free: 2.828 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