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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001436/0.001436, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001932/0.001932, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.608/1.608, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 63.89 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3347, allocations: 50.54 MB / 409.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003003/0.3377, allocations: 1.624 MB / 410.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005146/0.3383, allocations: 179.4 kB / 411 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.981e-05/0.3384, allocations: 0 / 411 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.3385, allocations: 15.86 kB / 411.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001404/0.3387, allocations: 11.88 kB / 411.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000266/0.3389, allocations: 47.88 kB / 411.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.3391, allocations: 71.78 kB / 411.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.3392, allocations: 39.97 kB / 411.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.538e-05/0.3393, allocations: 31.84 kB / 411.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001249/0.3394, allocations: 35.84 kB / 411.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.964e-05/0.3395, allocations: 4 kB / 411.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.69e-05/0.3395, allocations: 4 kB / 411.3 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.43e-05/0.3395, allocations: 27.92 kB / 411.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.112e-05/0.3396, allocations: 43.67 kB / 411.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000204/0.3398, allocations: 87.58 kB / 411.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.365e-06/0.3398, allocations: 4 kB / 411.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3398, allocations: 0 / 411.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.846e-06/0.3399, allocations: 0 / 411.5 MB, free: 15.35 MB / 334.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.0009003/0.3408, allocations: 416.1 kB / 411.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.619e-05/0.3408, allocations: 12.03 kB / 411.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.734e-05/0.3409, allocations: 12.75 kB / 411.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002721/0.3412, allocations: 208 kB / 412.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.3412, allocations: 4.375 kB / 412.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.19e-05/0.3412, allocations: 8.375 kB / 412.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004488/0.3417, allocations: 214.2 kB / 412.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.3417, allocations: 192 / 412.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.3417, allocations: 3.938 kB / 412.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.8e-06/0.3417, allocations: 0 / 412.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001371/0.3419, allocations: 55.91 kB / 412.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005345/0.3424, allocations: 381.9 kB / 412.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002203/0.3426, allocations: 131.6 kB / 412.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.3428, allocations: 78.73 kB / 412.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.3428, allocations: 7.984 kB / 413 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.292e-05/0.3429, allocations: 34.56 kB / 413 MB, free: 13.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.213e-06/0.3429, allocations: 0 / 413 MB, free: 13.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005013/0.3434, allocations: 161.5 kB / 413.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.3435, allocations: 118.8 kB / 413.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.3437, allocations: 157.3 kB / 413.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.3437, allocations: 25.7 kB / 413.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.497e-05/0.3438, allocations: 104.2 kB / 413.5 MB, free: 13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.3438, allocations: 8 kB / 413.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.472e-05/0.3439, allocations: 29.7 kB / 413.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.344, allocations: 322.8 kB / 413.9 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.798e-05/0.3441, allocations: 23.98 kB / 413.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.3442, allocations: 85.42 kB / 414 MB, free: 12.49 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.3444, allocations: 113.3 kB / 414.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.3444, allocations: 3.938 kB / 414.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002056/0.3446, allocations: 125.6 kB / 414.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.3446, allocations: 8.062 kB / 414.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.3447, allocations: 7.984 kB / 414.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.3447, allocations: 4 kB / 414.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.3448, allocations: 23.94 kB / 414.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.3448, allocations: 3.984 kB / 414.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.061e-05/0.3449, allocations: 15.84 kB / 414.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.3449, allocations: 8 kB / 414.3 MB, free: 12.14 MB / 334.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.0001304/0.345, allocations: 146 kB / 414.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001683/0.3452, allocations: 105.5 kB / 414.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.749e-05/0.3453, allocations: 16.72 kB / 414.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.3453, allocations: 0 / 414.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3453, allocations: 0 / 414.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.3453, allocations: 7.984 kB / 414.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002815/0.3456, allocations: 201.3 kB / 414.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.3456, allocations: 11.92 kB / 414.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.3457, allocations: 23.98 kB / 414.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3457, allocations: 0 / 414.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.3458, allocations: 8 kB / 414.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.189e-06/0.3458, allocations: 4 kB / 414.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3458, allocations: 0 / 414.8 MB, free: 11.56 MB / 334.1 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.) 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/jenkins/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/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:8011:5-8011: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.0004641/0.3462, allocations: 376.3 kB / 415.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.502e-05/0.3463, allocations: 104.9 kB / 415.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.3464, allocations: 8 kB / 415.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.3465, allocations: 4 kB / 415.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.046e-05/0.3465, allocations: 0 / 415.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.3465, allocations: 11.98 kB / 415.3 MB, free: 11.03 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.569e-05/0.3466, allocations: 114.3 kB / 415.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3466, allocations: 4 kB / 415.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002991/0.3469, allocations: 16 kB / 415.4 MB, free: 10.9 MB / 334.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.0001428/0.3471, allocations: 111.2 kB / 415.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002614/0.3474, allocations: 84.33 kB / 415.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3474, allocations: 4.125 kB / 415.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.724e-05/0.3474, allocations: 8 kB / 415.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005303/0.3479, allocations: 74.11 kB / 415.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005214/0.3485, allocations: 240.3 kB / 416 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003709/0.3489, allocations: 0.7081 MB / 416.7 MB, free: 9.617 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.98e-05/0.3489, allocations: 8.547 kB / 416.7 MB, free: 9.609 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.06e-05/0.349, allocations: 19.38 kB / 416.7 MB, free: 9.59 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.349, allocations: 0 / 416.7 MB, free: 9.59 MB / 334.1 MB Notification: Performance of Templates: time 0.004463/0.3534, allocations: 0.9533 MB / 417.6 MB, free: 8.645 MB / 334.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches