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.0009328/0.0009328, allocations: 93.67 kB / 16.95 MB, free: 5.676 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.001042/0.001042, allocations: 183.3 kB / 17.85 MB, free: 5.32 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.432/1.432, allocations: 223.2 MB / 241.9 MB, free: 284 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002631/0.0002631, allocations: 11.98 kB / 301.5 MB, free: 6.426 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1194, allocations: 50.42 MB / 351.9 MB, free: 4 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002535/0.122, allocations: 1.288 MB / 353.2 MB, free: 2.699 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000562/0.1226, allocations: 187.4 kB / 353.3 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.1228, allocations: 8 kB / 353.3 MB, free: 2.508 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001065/0.1229, allocations: 11.92 kB / 353.4 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001504/0.123, allocations: 7.938 kB / 353.4 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002764/0.1233, allocations: 43.89 kB / 353.4 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001516/0.1235, allocations: 59.78 kB / 353.5 MB, free: 2.387 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.1237, allocations: 36.09 kB / 353.5 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.342e-05/0.1237, allocations: 19.92 kB / 353.5 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.326e-05/0.1238, allocations: 27.84 kB / 353.6 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.1238, allocations: 4 kB / 353.6 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.366e-05/0.1239, allocations: 0 / 353.6 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.597e-05/0.1239, allocations: 19.92 kB / 353.6 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.838e-05/0.124, allocations: 41.64 kB / 353.6 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001241/0.1241, allocations: 59.77 kB / 353.7 MB, free: 2.172 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1241, allocations: 0 / 353.7 MB, free: 2.172 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1241, allocations: 0 / 353.7 MB, free: 2.172 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.1242, allocations: 4 kB / 353.7 MB, free: 2.168 MB / 286.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.0006525/0.1248, allocations: 399.2 kB / 354.1 MB, free: 1.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.1249, allocations: 12.03 kB / 354.1 MB, free: 1.719 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.212e-05/0.1249, allocations: 11.86 kB / 354.1 MB, free: 1.707 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.1252, allocations: 202.9 kB / 354.3 MB, free: 1.469 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.1252, allocations: 8 kB / 354.3 MB, free: 1.461 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.1252, allocations: 4 kB / 354.3 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005301/0.1258, allocations: 217.5 kB / 354.5 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.1258, allocations: 0 / 354.5 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.1258, allocations: 7.953 kB / 354.5 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.1258, allocations: 0 / 354.5 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/0.126, allocations: 67.89 kB / 354.6 MB, free: 1.148 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005481/0.1266, allocations: 385.8 kB / 355 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.1269, allocations: 127.6 kB / 355.1 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001745/0.1271, allocations: 78.86 kB / 355.2 MB, free: 488 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.1271, allocations: 7.891 kB / 355.2 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.1271, allocations: 38.56 kB / 355.2 MB, free: 432 kB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.1271, allocations: 0 / 355.2 MB, free: 432 kB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005534/0.1277, allocations: 173.3 kB / 355.4 MB, free: 252 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/0.1278, allocations: 110.8 kB / 355.5 MB, free: 116 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.128, allocations: 162.5 kB / 355.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.128, allocations: 29.7 kB / 355.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.098e-05/0.1281, allocations: 92.42 kB / 355.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.663e-05/0.1281, allocations: 3.984 kB / 355.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.506e-06/0.1282, allocations: 8 kB / 355.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.1283, allocations: 318.8 kB / 356.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.181e-05/0.1284, allocations: 15.98 kB / 356.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.1285, allocations: 97.31 kB / 356.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.901e-05/0.1286, allocations: 31.98 kB / 356.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1286, allocations: 4 kB / 356.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003021/0.1289, allocations: 133.2 kB / 356.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.129, allocations: 11.95 kB / 356.4 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.129, allocations: 4 kB / 356.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.129, allocations: 4 kB / 356.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.1292, allocations: 23.92 kB / 356.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.1292, allocations: 7.984 kB / 356.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.1293, allocations: 16.34 kB / 356.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.1293, allocations: 4 kB / 356.4 MB, free: 15.09 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.0001358/0.1295, allocations: 133.8 kB / 356.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002539/0.1297, allocations: 101.6 kB / 356.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.27e-05/0.1298, allocations: 24.66 kB / 356.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1298, allocations: 0 / 356.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1298, allocations: 0 / 356.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.1299, allocations: 4 kB / 356.7 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003694/0.1302, allocations: 197.5 kB / 356.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.1302, allocations: 0 / 356.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001609/0.1304, allocations: 27.92 kB / 356.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.1304, allocations: 0 / 356.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.1305, allocations: 8.469 kB / 356.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.1305, allocations: 3.953 kB / 356.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1305, allocations: 0 / 356.9 MB, free: 14.53 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.0005705/0.1311, allocations: 392.2 kB / 357.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.45e-05/0.1312, allocations: 100.9 kB / 357.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.568e-05/0.1312, allocations: 8 kB / 357.4 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001881/0.1314, allocations: 7.984 kB / 357.4 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.343e-05/0.1314, allocations: 3.953 kB / 357.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.742e-05/0.1315, allocations: 8 kB / 357.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001078/0.1316, allocations: 118.8 kB / 357.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1316, allocations: 0 / 357.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005036/0.1321, allocations: 16 kB / 357.6 MB, free: 13.86 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.0001316/0.1323, allocations: 107.2 kB / 357.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002851/0.1326, allocations: 79.83 kB / 357.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1326, allocations: 3.938 kB / 357.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.592e-05/0.1326, allocations: 20.73 kB / 357.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007124/0.1334, allocations: 76.81 kB / 357.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005509/0.1339, allocations: 288.6 kB / 358.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.1343, allocations: 0.7159 MB / 358.8 MB, free: 12.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.946e-05/0.1343, allocations: 15.42 kB / 358.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1343, allocations: 0 / 358.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of Templates: time 0.00337/0.1377, allocations: 1.149 MB / 360 MB, free: 11.35 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile make -j1 -f Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2CalcHelperMain.o OMCppModelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2CalcHelperMain.o] Error 1