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.001241/0.001241, allocations: 111.6 kB / 17.06 MB, free: 6 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.001433/0.001433, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.569/1.569, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.0012, allocations: 47.92 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.407/0.4082, allocations: 49.43 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003796/0.4121, allocations: 1.603 MB / 402.3 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005701/0.4127, allocations: 187.3 kB / 402.5 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.4128, allocations: 4 kB / 402.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.413, allocations: 15.86 kB / 402.5 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001594/0.4132, allocations: 15.84 kB / 402.5 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002476/0.4134, allocations: 51.83 kB / 402.6 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001502/0.4136, allocations: 59.84 kB / 402.7 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/0.4138, allocations: 43.97 kB / 402.7 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.857e-05/0.4138, allocations: 23.88 kB / 402.7 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.4139, allocations: 39.83 kB / 402.8 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.852e-05/0.414, allocations: 4 kB / 402.8 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.7e-05/0.414, allocations: 11.94 kB / 402.8 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.091e-05/0.4141, allocations: 23.92 kB / 402.8 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.35e-05/0.4141, allocations: 43.67 kB / 402.8 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001818/0.4143, allocations: 87.64 kB / 402.9 MB, free: 6.648 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.4143, allocations: 0 / 402.9 MB, free: 6.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4143, allocations: 4 kB / 402.9 MB, free: 6.645 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.4144, allocations: 0 / 402.9 MB, free: 6.645 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.0006263/0.415, allocations: 408.1 kB / 403.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.415, allocations: 15.89 kB / 403.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.468e-05/0.4151, allocations: 16.69 kB / 403.4 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002868/0.4154, allocations: 211.7 kB / 403.6 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.4154, allocations: 8.375 kB / 403.6 MB, free: 5.918 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/0.4154, allocations: 12.38 kB / 403.6 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004459/0.4159, allocations: 206.1 kB / 403.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.4159, allocations: 192 / 403.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.4159, allocations: 7.938 kB / 403.8 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.416, allocations: 4 kB / 403.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001342/0.4161, allocations: 55.91 kB / 403.9 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005379/0.4167, allocations: 381.8 kB / 404.2 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002036/0.4169, allocations: 135.8 kB / 404.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001373/0.417, allocations: 78.58 kB / 404.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.417, allocations: 4 kB / 404.4 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.4171, allocations: 30.56 kB / 404.5 MB, free: 4.902 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 2.946e-06/0.4171, allocations: 3.938 kB / 404.5 MB, free: 4.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004236/0.4175, allocations: 173.3 kB / 404.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.793e-05/0.4176, allocations: 114.8 kB / 404.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.4178, allocations: 150.2 kB / 404.9 MB, free: 4.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.4178, allocations: 29.7 kB / 404.9 MB, free: 4.395 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.326e-05/0.4179, allocations: 96.41 kB / 405 MB, free: 4.293 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.4179, allocations: 8.156 kB / 405 MB, free: 4.285 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.014e-05/0.4179, allocations: 37.7 kB / 405.1 MB, free: 4.242 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.4181, allocations: 323.2 kB / 405.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.499e-05/0.4181, allocations: 15.98 kB / 405.4 MB, free: 3.902 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.4182, allocations: 85.44 kB / 405.5 MB, free: 3.785 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001513/0.4184, allocations: 117.2 kB / 405.6 MB, free: 3.637 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.227e-06/0.4184, allocations: 7.875 kB / 405.6 MB, free: 3.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002136/0.4186, allocations: 125.4 kB / 405.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.4187, allocations: 8 kB / 405.7 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.4187, allocations: 0 / 405.7 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.4187, allocations: 4 kB / 405.7 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.4188, allocations: 27.94 kB / 405.8 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.4189, allocations: 7.984 kB / 405.8 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.943e-05/0.4189, allocations: 11.84 kB / 405.8 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.4189, allocations: 4.344 kB / 405.8 MB, free: 3.438 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 (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.0001369/0.4191, allocations: 145.6 kB / 405.9 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.4193, allocations: 109.5 kB / 406 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.466e-05/0.4193, allocations: 16.72 kB / 406.1 MB, free: 3.152 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.4193, allocations: 0 / 406.1 MB, free: 3.152 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.4193, allocations: 7.984 kB / 406.1 MB, free: 3.145 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.4194, allocations: 0 / 406.1 MB, free: 3.145 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002578/0.4196, allocations: 201.4 kB / 406.3 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.4196, allocations: 0 / 406.3 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.4197, allocations: 27.98 kB / 406.3 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.4197, allocations: 0 / 406.3 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.4198, allocations: 0 / 406.3 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.4198, allocations: 4 kB / 406.3 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4198, allocations: 0 / 406.3 MB, free: 2.867 MB / 318.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.0004625/0.4202, allocations: 380.8 kB / 406.7 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.376e-05/0.4203, allocations: 104.9 kB / 406.8 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.968e-05/0.4204, allocations: 4 kB / 406.8 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.4205, allocations: 11.94 kB / 406.8 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.241e-05/0.4205, allocations: 7.984 kB / 406.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-06/0.4205, allocations: 4 kB / 406.8 MB, free: 2.328 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.727e-05/0.4206, allocations: 118.1 kB / 406.9 MB, free: 2.215 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4206, allocations: 0 / 406.9 MB, free: 2.215 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002922/0.4209, allocations: 12 kB / 406.9 MB, free: 2.203 MB / 318.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.0001306/0.4211, allocations: 111.1 kB / 407 MB, free: 2.086 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002349/0.4213, allocations: 87.92 kB / 407.1 MB, free: 2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4213, allocations: 3.938 kB / 407.1 MB, free: 1.996 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.138e-05/0.4214, allocations: 11.98 kB / 407.1 MB, free: 1.984 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004846/0.4219, allocations: 70.97 kB / 407.2 MB, free: 1.918 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004965/0.4224, allocations: 240.7 kB / 407.4 MB, free: 1.652 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002954/0.4227, allocations: 0.7117 MB / 408.1 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.272e-05/0.4227, allocations: 8.547 kB / 408.2 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.415e-05/0.4228, allocations: 11.44 kB / 408.2 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4228, allocations: 0 / 408.2 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of Templates: time 0.00381/0.4266, allocations: 0.9496 MB / 409.1 MB, free: 15.95 MB / 334.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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches