Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.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.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001012/0.001012, allocations: 90.11 kB / 17.63 MB, free: 6.16 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001362/0.001362, allocations: 197.5 kB / 18.54 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.587/1.587, allocations: 227.3 MB / 246.6 MB, free: 12.03 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002645/0.0002646, allocations: 8 kB / 307.3 MB, free: 1.621 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1209, allocations: 51.49 MB / 358.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002487/0.1234, allocations: 1.682 MB / 360.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001995/0.1254, allocations: 1.205 MB / 361.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.1256, allocations: 3.938 kB / 361.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008362/0.1264, allocations: 283 kB / 362 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004916/0.1269, allocations: 219.3 kB / 362.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006681/0.1276, allocations: 243.3 kB / 362.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004044/0.128, allocations: 327.1 kB / 362.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.1282, allocations: 52.89 kB / 362.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.1284, allocations: 119.5 kB / 362.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.1286, allocations: 131.4 kB / 363 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.669e-05/0.1286, allocations: 8 kB / 363 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001557/0.1288, allocations: 63.89 kB / 363.1 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.1289, allocations: 67.75 kB / 363.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.644e-05/0.129, allocations: 77.5 kB / 363.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003199/0.1294, allocations: 271.6 kB / 363.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1294, allocations: 3.984 kB / 363.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1294, allocations: 0 / 363.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1294, allocations: 0 / 363.5 MB, free: 9.398 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008905/0.1303, allocations: 0.617 MB / 364.1 MB, free: 8.723 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.1303, allocations: 12.03 kB / 364.1 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.772e-05/0.1304, allocations: 31.62 kB / 364.2 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004918/0.1309, allocations: 333.3 kB / 364.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.1309, allocations: 8 kB / 364.5 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.319e-05/0.131, allocations: 11.95 kB / 364.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002787/0.1313, allocations: 153.1 kB / 364.7 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.1313, allocations: 3.984 kB / 364.7 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.1313, allocations: 8 kB / 364.7 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.1313, allocations: 0 / 364.7 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001566/0.1315, allocations: 71.95 kB / 364.7 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006941/0.1322, allocations: 0.4926 MB / 365.2 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.1325, allocations: 134.7 kB / 365.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.1326, allocations: 48.83 kB / 365.4 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.1326, allocations: 4 kB / 365.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002237/0.1329, allocations: 121.5 kB / 365.5 MB, free: 7.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.432e-06/0.1329, allocations: 0 / 365.5 MB, free: 7.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004573/0.1333, allocations: 217.1 kB / 365.7 MB, free: 6.961 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.1334, allocations: 106.8 kB / 365.8 MB, free: 6.832 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004991/0.1339, allocations: 445.7 kB / 366.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.1339, allocations: 33.7 kB / 366.3 MB, free: 6.352 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.1341, allocations: 179.8 kB / 366.5 MB, free: 6.172 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.697e-05/0.1341, allocations: 47.47 kB / 366.5 MB, free: 6.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.262e-06/0.1342, allocations: 4 kB / 366.5 MB, free: 6.121 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002313/0.1344, allocations: 342.8 kB / 366.9 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.1345, allocations: 43.97 kB / 366.9 MB, free: 5.734 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.1347, allocations: 93.98 kB / 367 MB, free: 5.621 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000122/0.1348, allocations: 54.52 kB / 367.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1348, allocations: 3.938 kB / 367.1 MB, free: 5.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002895/0.1351, allocations: 173.2 kB / 367.2 MB, free: 5.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.1351, allocations: 11.95 kB / 367.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.1351, allocations: 0 / 367.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.1352, allocations: 0 / 367.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.1353, allocations: 27.98 kB / 367.3 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.1353, allocations: 4.062 kB / 367.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.715e-05/0.1354, allocations: 19.84 kB / 367.3 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.1354, allocations: 8 kB / 367.3 MB, free: 5.32 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001756/0.1356, allocations: 171.5 kB / 367.5 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.111e-05/0.1356, allocations: 31.62 kB / 367.5 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.007e-05/0.1357, allocations: 34.92 kB / 367.5 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1357, allocations: 4 kB / 367.5 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1357, allocations: 4 kB / 367.5 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1358, allocations: 3.984 kB / 367.6 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002617/0.136, allocations: 309.3 kB / 367.9 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.136, allocations: 0 / 367.9 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.49e-05/0.1361, allocations: 8 kB / 367.9 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1361, allocations: 3.938 kB / 367.9 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.1361, allocations: 7.984 kB / 367.9 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1361, allocations: 3.953 kB / 367.9 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.1361, allocations: 3.938 kB / 367.9 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002998/0.1364, allocations: 200.7 kB / 368.1 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.397e-05/0.1365, allocations: 116.7 kB / 368.2 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.834e-05/0.1366, allocations: 4 kB / 368.2 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.904e-05/0.1366, allocations: 15.98 kB / 368.2 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.865e-05/0.1367, allocations: 11.94 kB / 368.2 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/0.1367, allocations: 8 kB / 368.2 MB, free: 4.289 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003481/0.1371, allocations: 335.1 kB / 368.6 MB, free: 3.965 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1371, allocations: 7.938 kB / 368.6 MB, free: 3.957 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002872/0.1374, allocations: 47.91 kB / 368.6 MB, free: 3.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001083/0.1385, allocations: 424.2 kB / 369 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002843/0.1388, allocations: 115.9 kB / 369.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1388, allocations: 0 / 369.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.1389, allocations: 59.97 kB / 369.2 MB, free: 3.457 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000404/0.1393, allocations: 76.73 kB / 369.3 MB, free: 3.391 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009072/0.1403, allocations: 0.5792 MB / 369.9 MB, free: 2.781 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004408/0.1407, allocations: 0.7757 MB / 370.6 MB, free: 1.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.774e-05/0.1408, allocations: 31.42 kB / 370.7 MB, free: 1.949 MB / 302.1 MB Notification: Performance of SimCode: time 4.5e-07/0.1408, allocations: 8 kB / 370.7 MB, free: 1.941 MB / 302.1 MB Notification: Performance of Templates: time 0.2238/0.3646, allocations: 4.226 MB / 374.9 MB, free: 18.56 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.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.Blocks.Examples.LogicalNetwork1CalcHelperMain.o OMCppModelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1CalcHelperMain.o] Error 1