Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001123/0.001123, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 225.5 MB / 234.4 MB, free: 3.348 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008647/0.0008647, allocations: 90.67 kB / 286.3 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.881e-06/5.901e-06, allocations: 0 / 343.1 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08997/0.08999, allocations: 51.48 MB / 394.6 MB, free: 5.105 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2436/0.3337, allocations: 77.3 MB / 471.9 MB, free: 14.11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/0.334, allocations: 80.83 kB / 472 MB, free: 14.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.003908/0.3379, allocations: 1.328 MB / 473.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.3379, allocations: 4 kB / 473.3 MB, free: 13.38 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.0003845/0.3383, allocations: 376.7 kB / 473.7 MB, free: 12.99 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.3384, allocations: 8.031 kB / 473.7 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.199e-05/0.3384, allocations: 11.91 kB / 473.7 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002166/0.3386, allocations: 208.1 kB / 473.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.3386, allocations: 0 / 473.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.848e-05/0.3387, allocations: 8 kB / 473.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001493/0.3388, allocations: 51.98 kB / 474 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002994/0.3391, allocations: 184 kB / 474.2 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.3392, allocations: 7.922 kB / 474.2 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.3392, allocations: 0 / 474.2 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.3392, allocations: 4 kB / 474.2 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003447/0.3395, allocations: 361.6 kB / 474.5 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001351/0.3397, allocations: 117.8 kB / 474.6 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.502e-05/0.3398, allocations: 63.05 kB / 474.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.3398, allocations: 7.906 kB / 474.7 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.861e-05/0.3398, allocations: 37.38 kB / 474.7 MB, free: 11.96 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.3398, allocations: 0 / 474.7 MB, free: 11.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002467/0.3401, allocations: 111.9 kB / 474.9 MB, free: 11.88 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/0.3401, allocations: 113.6 kB / 475 MB, free: 11.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.792e-05/0.3402, allocations: 142.7 kB / 475.1 MB, free: 11.62 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.3403, allocations: 25.7 kB / 475.1 MB, free: 11.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.011e-05/0.3403, allocations: 87.73 kB / 475.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.256e-05/0.3403, allocations: 10.38 kB / 475.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-06/0.3403, allocations: 0 / 475.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.041e-05/0.3404, allocations: 326.2 kB / 475.5 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.057e-05/0.3404, allocations: 11.25 kB / 475.6 MB, free: 11.17 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.204e-05/0.3404, allocations: 83.31 kB / 475.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.465e-05/0.3405, allocations: 23.12 kB / 475.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.3405, allocations: 0 / 475.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001191/0.3406, allocations: 106.6 kB / 475.8 MB, free: 10.96 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.3406, allocations: 4 kB / 475.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.3406, allocations: 4 kB / 475.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.3407, allocations: 4 kB / 475.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.3408, allocations: 23.31 kB / 475.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.3408, allocations: 7.188 kB / 475.8 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.979e-05/0.3409, allocations: 16.25 kB / 475.8 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.3409, allocations: 4 kB / 475.8 MB, free: 10.9 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.346e-05/0.3409, allocations: 114.1 kB / 475.9 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.3411, allocations: 102 kB / 476 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.598e-05/0.3411, allocations: 12.31 kB / 476.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.3411, allocations: 0 / 476.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3411, allocations: 3.938 kB / 476.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.3412, allocations: 7.047 kB / 476.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001695/0.3413, allocations: 173.8 kB / 476.2 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3413, allocations: 0 / 476.2 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.3415, allocations: 24.69 kB / 476.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.3415, allocations: 4 kB / 476.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.928e-06/0.3415, allocations: 0 / 476.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3415, allocations: 0 / 476.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3415, allocations: 3.328 kB / 476.3 MB, free: 10.49 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.0003082/0.3418, allocations: 389.2 kB / 476.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.783e-05/0.3419, allocations: 107.8 kB / 476.7 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.3419, allocations: 3.234 kB / 476.8 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.342, allocations: 4 kB / 476.8 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.814e-05/0.3421, allocations: 7.906 kB / 476.8 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.3421, allocations: 6.062 kB / 476.8 MB, free: 10.01 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.461e-05/0.3422, allocations: 120.5 kB / 476.9 MB, free: 9.914 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002788/0.3425, allocations: 8 kB / 476.9 MB, free: 9.906 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.0001091/0.3426, allocations: 107.2 kB / 477 MB, free: 9.789 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001244/0.3427, allocations: 68.97 kB / 477.1 MB, free: 9.742 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3427, allocations: 1.188 kB / 477.1 MB, free: 9.742 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.338e-05/0.3427, allocations: 4 kB / 477.1 MB, free: 9.738 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003321/0.3431, allocations: 57.69 kB / 477.1 MB, free: 9.703 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003007/0.3434, allocations: 164.5 kB / 477.3 MB, free: 9.543 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001794/0.3436, allocations: 0.7256 MB / 478 MB, free: 8.809 MB / 346.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3436, allocations: 0 / 478 MB, free: 8.809 MB / 346.7 MB Notification: Performance of Templates: time 0.002977/0.3466, allocations: 0.959 MB / 479 MB, free: 8.266 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches