Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001146/0.001146, allocations: 196.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007962/0.0007963, allocations: 97.34 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002415/0.0002415, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2016/0.2019, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.001316/0.2032, allocations: 1.309 MB / 408.8 MB, free: 26.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003592/0.2036, allocations: 183.5 kB / 409 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.357e-05/0.2037, allocations: 4 kB / 409 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.175e-05/0.2038, allocations: 7.875 kB / 409 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.2039, allocations: 5.328 kB / 409 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.2041, allocations: 51.39 kB / 409.1 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.5e-05/0.2042, allocations: 63.77 kB / 409.1 MB, free: 26.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.2044, allocations: 30.33 kB / 409.1 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.16e-05/0.2044, allocations: 14.42 kB / 409.2 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.463e-05/0.2045, allocations: 31.8 kB / 409.2 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.979e-05/0.2045, allocations: 4 kB / 409.2 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.322e-05/0.2045, allocations: 0 / 409.2 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.262e-05/0.2046, allocations: 19.92 kB / 409.2 MB, free: 26.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.724e-05/0.2046, allocations: 37.64 kB / 409.2 MB, free: 26.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.999e-05/0.2047, allocations: 59.88 kB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.2047, allocations: 8.562 kB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2047, allocations: 0.5938 kB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.2047, allocations: 0 / 409.3 MB, free: 26.02 MB / 298.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.0004027/0.2051, allocations: 389.3 kB / 409.7 MB, free: 25.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.2052, allocations: 8.031 kB / 409.7 MB, free: 25.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.386e-05/0.2052, allocations: 21.11 kB / 409.7 MB, free: 25.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.2053, allocations: 208.4 kB / 409.9 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.2054, allocations: 0 / 409.9 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.309e-05/0.2054, allocations: 19.95 kB / 409.9 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003344/0.2057, allocations: 205.6 kB / 410.1 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.2057, allocations: 0 / 410.1 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.2058, allocations: 8 kB / 410.2 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.2058, allocations: 3.938 kB / 410.2 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.2059, allocations: 59.89 kB / 410.2 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003139/0.2062, allocations: 385.8 kB / 410.6 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001479/0.2064, allocations: 127.6 kB / 410.7 MB, free: 24.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.754e-05/0.2065, allocations: 82.78 kB / 410.8 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.238e-05/0.2065, allocations: 4 kB / 410.8 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.559e-05/0.2065, allocations: 38.56 kB / 410.8 MB, free: 24.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.2065, allocations: 0 / 410.8 MB, free: 24.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003251/0.2069, allocations: 161.6 kB / 411 MB, free: 24.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.2069, allocations: 114.9 kB / 411.1 MB, free: 23.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.084e-05/0.207, allocations: 166 kB / 411.3 MB, free: 23.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.505e-06/0.207, allocations: 25.7 kB / 411.3 MB, free: 23.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.294e-05/0.2071, allocations: 96.41 kB / 411.4 MB, free: 23.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.042e-05/0.2071, allocations: 4 kB / 411.4 MB, free: 23.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.888e-06/0.2071, allocations: 0 / 411.4 MB, free: 23.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.106e-05/0.2071, allocations: 330.7 kB / 411.7 MB, free: 23.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.836e-05/0.2072, allocations: 23.98 kB / 411.7 MB, free: 23.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.063e-05/0.2073, allocations: 81.44 kB / 411.8 MB, free: 23.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.203e-05/0.2073, allocations: 35.98 kB / 411.9 MB, free: 23.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2073, allocations: 7.875 kB / 411.9 MB, free: 23.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001793/0.2075, allocations: 125.4 kB / 412 MB, free: 23.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.2075, allocations: 10.97 kB / 412 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.2076, allocations: 384 / 412 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.2076, allocations: 7.984 kB / 412 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.921e-05/0.2077, allocations: 36.27 kB / 412 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/0.2077, allocations: 4 kB / 412 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.271e-05/0.2078, allocations: 19.77 kB / 412.1 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.367e-06/0.2078, allocations: 8 kB / 412.1 MB, free: 22.95 MB / 298.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.533e-05/0.2078, allocations: 137.7 kB / 412.2 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.208, allocations: 101.5 kB / 412.3 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.388e-05/0.208, allocations: 16.72 kB / 412.3 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.208, allocations: 8 kB / 412.3 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.208, allocations: 0 / 412.3 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.208, allocations: 3.984 kB / 412.3 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001668/0.2082, allocations: 201.4 kB / 412.5 MB, free: 22.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2082, allocations: 4 kB / 412.5 MB, free: 22.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.93e-05/0.2083, allocations: 27.97 kB / 412.6 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2083, allocations: 0 / 412.6 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.2084, allocations: 0 / 412.6 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.145e-06/0.2084, allocations: 4 kB / 412.6 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2084, allocations: 0 / 412.6 MB, free: 22.39 MB / 298.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.) 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:7863:5-7863: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.0002975/0.2087, allocations: 388.3 kB / 412.9 MB, free: 21.99 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.782e-05/0.2087, allocations: 108.8 kB / 413.1 MB, free: 21.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.2087, allocations: 0 / 413.1 MB, free: 21.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.2089, allocations: 8 kB / 413.1 MB, free: 21.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.658e-05/0.2089, allocations: 4 kB / 413.1 MB, free: 21.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/0.2089, allocations: 4 kB / 413.1 MB, free: 21.85 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.215e-05/0.209, allocations: 123.1 kB / 413.2 MB, free: 21.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.209, allocations: 0 / 413.2 MB, free: 21.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002435/0.2092, allocations: 20 kB / 413.2 MB, free: 21.71 MB / 298.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 (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 (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 7.463e-05/0.2093, allocations: 102 kB / 413.3 MB, free: 21.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001664/0.2095, allocations: 88.45 kB / 413.4 MB, free: 21.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2095, allocations: 4.062 kB / 413.4 MB, free: 21.51 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.546e-05/0.2095, allocations: 8 kB / 413.4 MB, free: 21.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000377/0.2099, allocations: 70.45 kB / 413.5 MB, free: 21.44 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003188/0.2102, allocations: 300.8 kB / 413.8 MB, free: 21.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.2103, allocations: 0.7043 MB / 414.5 MB, free: 20.38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.489e-05/0.2104, allocations: 11.44 kB / 414.5 MB, free: 20.36 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.2104, allocations: 0 / 414.5 MB, free: 20.36 MB / 298.7 MB Notification: Performance of Templates: time 0.001874/0.2123, allocations: 1.166 MB / 415.6 MB, free: 19.2 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches