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.0007901/0.0007901, allocations: 94.03 kB / 17.63 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008996/0.0008996, allocations: 198.5 kB / 18.54 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.3 MB / 246.6 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002506/0.0002506, allocations: 8 kB / 307.3 MB, free: 1.629 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1199, allocations: 51.49 MB / 358.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002075/0.122, allocations: 1.294 MB / 360.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004825/0.1225, allocations: 191.4 kB / 360.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.1226, allocations: 11.94 kB / 360.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001046/0.1228, allocations: 3.938 kB / 360.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001725/0.1229, allocations: 15.75 kB / 360.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.1232, allocations: 43.89 kB / 360.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001524/0.1234, allocations: 55.84 kB / 360.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.1235, allocations: 40.16 kB / 360.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.064e-05/0.1236, allocations: 23.84 kB / 360.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.672e-05/0.1237, allocations: 27.86 kB / 360.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.1237, allocations: 0 / 360.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.404e-05/0.1237, allocations: 4 kB / 360.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.129e-05/0.1238, allocations: 19.92 kB / 360.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.218e-05/0.1238, allocations: 37.64 kB / 360.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001234/0.124, allocations: 59.88 kB / 360.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.027e-06/0.124, allocations: 0 / 360.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.155e-06/0.124, allocations: 0 / 360.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.124, allocations: 0 / 360.6 MB, free: 12.3 MB / 302.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.0006972/0.1247, allocations: 403.1 kB / 361 MB, free: 11.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.1247, allocations: 8.031 kB / 361 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.032e-05/0.1248, allocations: 11.91 kB / 361 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002437/0.125, allocations: 206.3 kB / 361.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.1251, allocations: 4 kB / 361.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.176e-05/0.1251, allocations: 15.89 kB / 361.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004574/0.1256, allocations: 209.7 kB / 361.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.128e-06/0.1256, allocations: 0 / 361.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.1256, allocations: 4 kB / 361.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1256, allocations: 0 / 361.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001385/0.1258, allocations: 67.89 kB / 361.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000531/0.1263, allocations: 389.7 kB / 361.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.1265, allocations: 135.8 kB / 362 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.1267, allocations: 74.67 kB / 362.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.1267, allocations: 4 kB / 362.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.1267, allocations: 38.5 kB / 362.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.1267, allocations: 0 / 362.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004073/0.1272, allocations: 165.5 kB / 362.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.44e-05/0.1272, allocations: 114.8 kB / 362.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/0.1274, allocations: 162.4 kB / 362.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.1274, allocations: 29.7 kB / 362.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.826e-05/0.1275, allocations: 96.36 kB / 362.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.507e-05/0.1276, allocations: 8 kB / 362.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-06/0.1276, allocations: 0 / 362.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1277, allocations: 322.8 kB / 363 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.38e-05/0.1278, allocations: 19.98 kB / 363 MB, free: 9.598 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.1279, allocations: 97.36 kB / 363.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.351e-05/0.128, allocations: 32.31 kB / 363.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.128, allocations: 0 / 363.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002117/0.1282, allocations: 137.2 kB / 363.3 MB, free: 9.297 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.156e-05/0.1283, allocations: 4 kB / 363.3 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.1283, allocations: 11.92 kB / 363.3 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.1283, allocations: 4 kB / 363.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.1284, allocations: 28 kB / 363.4 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.1284, allocations: 7.922 kB / 363.4 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.817e-05/0.1285, allocations: 8.344 kB / 363.4 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.1285, allocations: 8 kB / 363.4 MB, free: 9.227 MB / 302.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.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 0.0001204/0.1286, allocations: 133.8 kB / 363.5 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001733/0.1288, allocations: 105.5 kB / 363.6 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.329e-05/0.1289, allocations: 16.72 kB / 363.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1289, allocations: 0 / 363.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1289, allocations: 0 / 363.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.1289, allocations: 7.984 kB / 363.6 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002485/0.1292, allocations: 205.4 kB / 363.8 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1292, allocations: 4 kB / 363.8 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.1293, allocations: 23.98 kB / 363.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.1293, allocations: 0 / 363.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.1293, allocations: 4 kB / 363.9 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1293, allocations: 3.938 kB / 363.9 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.1293, allocations: 0 / 363.9 MB, free: 8.668 MB / 302.1 MB [/var/lib/jenkins1/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/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/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.0004543/0.1298, allocations: 384.4 kB / 364.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.1299, allocations: 108.8 kB / 364.3 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.993e-05/0.1299, allocations: 4 kB / 364.4 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.13, allocations: 12 kB / 364.4 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.553e-05/0.1301, allocations: 7.922 kB / 364.4 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.1301, allocations: 4 kB / 364.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.094e-05/0.1302, allocations: 122.4 kB / 364.5 MB, free: 8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1302, allocations: 0 / 364.5 MB, free: 8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002786/0.1305, allocations: 12 kB / 364.5 MB, free: 7.988 MB / 302.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 (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.0001359/0.1306, allocations: 113.6 kB / 364.6 MB, free: 7.867 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002031/0.1308, allocations: 83.83 kB / 364.7 MB, free: 7.785 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1309, allocations: 0 / 364.7 MB, free: 7.785 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.534e-05/0.1309, allocations: 8.75 kB / 364.7 MB, free: 7.777 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004643/0.1314, allocations: 74.44 kB / 364.8 MB, free: 7.707 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004931/0.1319, allocations: 300.5 kB / 365.1 MB, free: 7.379 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.1322, allocations: 0.7083 MB / 365.8 MB, free: 6.645 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.062e-05/0.1322, allocations: 11.44 kB / 365.8 MB, free: 6.633 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1323, allocations: 0 / 365.8 MB, free: 6.633 MB / 302.1 MB Notification: Performance of Templates: time 0.00287/0.1351, allocations: 1.159 MB / 367 MB, free: 5.477 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2CalcHelperMain.o OMCppModelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2CalcHelperMain.o] Error 1