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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001138/0.001138, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009524/0.0009524, allocations: 92.03 kB / 292.1 MB, free: 5.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.909e-05/2.911e-05, allocations: 4 kB / 350.5 MB, free: 2.559 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1024, allocations: 51.48 MB / 402 MB, free: 15.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3717/0.4743, allocations: 78.06 MB / 480.1 MB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/0.4746, allocations: 74.95 kB / 480.1 MB, free: 11.33 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004489/0.4791, allocations: 1.656 MB / 481.8 MB, free: 9.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4791, allocations: 0 / 481.8 MB, free: 9.91 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.4791, allocations: 3.719 kB / 481.8 MB, free: 9.91 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.0003249/0.4794, allocations: 375 kB / 482.2 MB, free: 9.512 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.4795, allocations: 12.03 kB / 482.2 MB, free: 9.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.378e-05/0.4796, allocations: 8.531 kB / 482.2 MB, free: 9.492 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.4797, allocations: 199.2 kB / 482.4 MB, free: 9.262 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.4798, allocations: 11.28 kB / 482.4 MB, free: 9.254 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.4798, allocations: 7 kB / 482.4 MB, free: 9.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003619/0.4802, allocations: 207.6 kB / 482.6 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.4802, allocations: 0 / 482.6 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.4802, allocations: 5.281 kB / 482.6 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.4802, allocations: 0 / 482.6 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.146e-05/0.4803, allocations: 46.67 kB / 482.7 MB, free: 9.031 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003827/0.4807, allocations: 391.5 kB / 483 MB, free: 8.613 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001354/0.4808, allocations: 127.1 kB / 483.2 MB, free: 8.484 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.763e-05/0.4809, allocations: 65.56 kB / 483.2 MB, free: 8.426 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.481, allocations: 11.56 kB / 483.2 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.481, allocations: 30.56 kB / 483.3 MB, free: 8.379 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.303e-06/0.481, allocations: 0 / 483.3 MB, free: 8.379 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002368/0.4812, allocations: 120.5 kB / 483.4 MB, free: 8.273 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.911e-05/0.4813, allocations: 114.4 kB / 483.5 MB, free: 8.141 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.4814, allocations: 144.9 kB / 483.6 MB, free: 8.012 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.4814, allocations: 29.7 kB / 483.7 MB, free: 7.977 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.707e-05/0.4815, allocations: 89.45 kB / 483.8 MB, free: 7.891 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.507e-05/0.4815, allocations: 11.61 kB / 483.8 MB, free: 7.883 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-06/0.4815, allocations: 0 / 483.8 MB, free: 7.883 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.603e-05/0.4816, allocations: 330.5 kB / 484.1 MB, free: 7.555 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.46e-05/0.4816, allocations: 11.62 kB / 484.1 MB, free: 7.547 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.641e-05/0.4817, allocations: 80.7 kB / 484.2 MB, free: 7.441 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.451e-05/0.4818, allocations: 31.17 kB / 484.2 MB, free: 7.418 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.4818, allocations: 0 / 484.2 MB, free: 7.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001347/0.4819, allocations: 122.2 kB / 484.3 MB, free: 7.305 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.4819, allocations: 11.98 kB / 484.3 MB, free: 7.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.4819, allocations: 0 / 484.3 MB, free: 7.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.482, allocations: 4 kB / 484.3 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.4821, allocations: 23.62 kB / 484.4 MB, free: 7.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.4821, allocations: 14.45 kB / 484.4 MB, free: 7.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.397e-05/0.4822, allocations: 8 kB / 484.4 MB, free: 7.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.4822, allocations: 8 kB / 484.4 MB, free: 7.242 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.697e-05/0.4823, allocations: 115.7 kB / 484.5 MB, free: 7.129 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.4824, allocations: 109.5 kB / 484.6 MB, free: 7.035 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.829e-05/0.4825, allocations: 23.72 kB / 484.6 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.4825, allocations: 0 / 484.6 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4825, allocations: 4 kB / 484.6 MB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.4825, allocations: 4 kB / 484.6 MB, free: 7.016 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001917/0.4827, allocations: 192.3 kB / 484.8 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.4827, allocations: 0 / 484.8 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.4828, allocations: 27.48 kB / 484.9 MB, free: 6.766 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.4828, allocations: 4.562 kB / 484.9 MB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.4828, allocations: 4.688 kB / 484.9 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.4828, allocations: 0 / 484.9 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.4828, allocations: 4 kB / 484.9 MB, free: 6.754 MB / 346.7 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.) 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/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342: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/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:7819:5-7819: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.0003304/0.4832, allocations: 391.1 kB / 485.3 MB, free: 6.367 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.596e-05/0.4832, allocations: 108.2 kB / 485.4 MB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.016e-05/0.4833, allocations: 3.625 kB / 485.4 MB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.4834, allocations: 7.984 kB / 485.4 MB, free: 6.238 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.051e-05/0.4834, allocations: 9.438 kB / 485.4 MB, free: 6.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.4835, allocations: 7.5 kB / 485.4 MB, free: 6.227 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.124e-05/0.4835, allocations: 115.1 kB / 485.5 MB, free: 6.125 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4835, allocations: 4 kB / 485.5 MB, free: 6.121 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002477/0.4838, allocations: 8 kB / 485.5 MB, free: 6.113 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.0001116/0.4839, allocations: 111.7 kB / 485.6 MB, free: 6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001344/0.484, allocations: 69.05 kB / 485.7 MB, free: 5.945 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.484, allocations: 0 / 485.7 MB, free: 5.945 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.753e-05/0.4841, allocations: 7.375 kB / 485.7 MB, free: 5.941 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.4844, allocations: 65.81 kB / 485.8 MB, free: 5.895 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003144/0.4847, allocations: 176.2 kB / 485.9 MB, free: 5.723 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001953/0.4849, allocations: 0.7148 MB / 486.7 MB, free: 4.984 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.39e-05/0.485, allocations: 9.109 kB / 486.7 MB, free: 4.977 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.714e-05/0.485, allocations: 11.44 kB / 486.7 MB, free: 4.965 MB / 346.7 MB Notification: Performance of SimCode: time 3.31e-07/0.485, allocations: 4 kB / 486.7 MB, free: 4.961 MB / 346.7 MB Notification: Performance of Templates: time 0.002836/0.4878, allocations: 0.8307 MB / 487.5 MB, free: 4.184 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