Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009918/0.0009917, allocations: 99.98 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 173.9 kB / 16.58 MB, free: 6.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.136/2.136, allocations: 205.4 MB / 222.8 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06717/0.06717, allocations: 10.75 MB / 281.8 MB, free: 10.54 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005017/0.0005018, allocations: 12 kB / 342.3 MB, free: 23.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1167, allocations: 50.01 MB / 392.3 MB, free: 5.777 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.003017/0.1197, allocations: 1.925 MB / 394.2 MB, free: 3.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.1213, allocations: 0.6546 MB / 394.8 MB, free: 3.184 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003516/0.1217, allocations: 19.81 kB / 394.9 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002705/0.122, allocations: 47.52 kB / 394.9 MB, free: 3.117 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001791/0.1222, allocations: 27.73 kB / 394.9 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.1232, allocations: 271.5 kB / 395.2 MB, free: 2.824 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000946/0.1242, allocations: 0.5845 MB / 395.8 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002327/0.1244, allocations: 69.75 kB / 395.9 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004431/0.1249, allocations: 211.1 kB / 396.1 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004214/0.1253, allocations: 219 kB / 396.3 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.584e-05/0.1254, allocations: 16 kB / 396.3 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.1256, allocations: 43.97 kB / 396.3 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001859/0.1258, allocations: 127.6 kB / 396.5 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.1259, allocations: 97.33 kB / 396.6 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004153/0.1263, allocations: 315.6 kB / 396.9 MB, free: 1.152 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1264, allocations: 0 / 396.9 MB, free: 1.152 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1264, allocations: 4 kB / 396.9 MB, free: 1.148 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.84e-05/0.1264, allocations: 0 / 396.9 MB, free: 1.148 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: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001364/0.1278, allocations: 0.7579 MB / 397.6 MB, free: 352 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.1278, allocations: 11.97 kB / 397.6 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.1279, allocations: 67.2 kB / 397.7 MB, free: 272 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000579/0.1285, allocations: 416.8 kB / 398.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.307e-05/0.1286, allocations: 29 kB / 398.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.906e-05/0.1287, allocations: 47.98 kB / 398.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007822/0.1295, allocations: 491.7 kB / 398.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.444e-05/0.1295, allocations: 7.906 kB / 398.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.064e-05/0.1295, allocations: 19.98 kB / 398.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.1296, allocations: 8 kB / 398.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005899/0.1302, allocations: 331.7 kB / 399 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002339/0.1325, allocations: 1.59 MB / 400.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005431/0.1331, allocations: 270.5 kB / 400.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001922/0.1333, allocations: 105.3 kB / 401 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.1333, allocations: 4.234 kB / 401 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003506/0.1337, allocations: 207.4 kB / 401.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.354e-06/0.1337, allocations: 0 / 401.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008889/0.1346, allocations: 0.4898 MB / 401.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.544e-05/0.1346, allocations: 71.38 kB / 401.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005016/0.1351, allocations: 485.8 kB / 402.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.058e-05/0.1352, allocations: 37.7 kB / 402.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002369/0.1354, allocations: 299.5 kB / 402.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.037e-05/0.1355, allocations: 106.7 kB / 402.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.74e-05/0.1355, allocations: 8 kB / 402.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.1357, allocations: 362.8 kB / 403 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.1359, allocations: 121.1 kB / 403.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000431/0.1364, allocations: 422.7 kB / 403.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003185/0.1367, allocations: 199.6 kB / 403.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.1367, allocations: 4 kB / 403.7 MB, free: 9.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.000945/0.1377, allocations: 0.633 MB / 404.4 MB, free: 9.211 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.1377, allocations: 8 kB / 404.4 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.1377, allocations: 16.83 kB / 404.4 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.287e-05/0.1378, allocations: 16 kB / 404.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004013/0.1382, allocations: 135.8 kB / 404.6 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.316e-05/0.1382, allocations: 20.05 kB / 404.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002454/0.1384, allocations: 83.27 kB / 404.7 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-05/0.1385, allocations: 28 kB / 404.7 MB, free: 8.91 MB / 302.1 MB Warning: Assuming fixed start value for the following 17 variables: R.cs:DISCRETE(fixed = true ) "Pre-biased Control Signal" type: Real R.satin:DISCRETE(fixed = true ) "input of the saturation block" type: Real R_outer.CS:DISCRETE(flow=false fixed = true ) "Control signal" type: Real R_outer.cs:DISCRETE(fixed = true ) "Pre-biased Control Signal" type: Real R_outer.satin:DISCRETE(fixed = true ) "input of the saturation block" type: Real R_inner.cs:DISCRETE(fixed = true ) "Pre-biased Control Signal" type: Real R_inner.satin:DISCRETE(fixed = true ) "input of the saturation block" type: Real P_outer.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] P_outer.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] P_outer.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real P2.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] P2.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] P2.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real R_inner.CS:DISCRETE(flow=false fixed = true ) "Control signal" type: Real P_inner.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real R.CS:DISCRETE(flow=false fixed = true ) "Control signal" type: Real P1.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.R.FBout,R.FBout,$PRE.R.cs,R.cs,$PRE.R.satin,R.satin,$PRE.R_outer.CS,R_outer.CS,$PRE.R_outer.FBout,R_outer.FBout,$PRE.R_outer.cs,R_outer.cs,$PRE.R_outer.satin,R_outer.satin,$PRE.R_inner.FBout,R_inner.FBout,$PRE.R_inner.cs,R_inner.cs,$PRE.R_inner.satin,R_inner.satin,$whenCondition2,$whenCondition1,$PRE.R.CS,R.CS,$PRE.R_inner.CS,R_inner.CS,R_inner.TS_in,R_outer.TS_in,R.TS_in,R_inner.ATreq_in,R_outer.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 80 * 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.0003495/0.1389, allocations: 255 kB / 404.9 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.517e-05/0.1389, allocations: 47.44 kB / 405 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.822e-05/0.139, allocations: 53.05 kB / 405 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.139, allocations: 7.953 kB / 405 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.139, allocations: 0 / 405 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.1391, allocations: 0 / 405 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004432/0.1395, allocations: 425.2 kB / 405.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1395, allocations: 0 / 405.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.1398, allocations: 55.91 kB / 405.5 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.1398, allocations: 0 / 405.5 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.253e-05/0.1398, allocations: 15.98 kB / 405.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1399, allocations: 3.938 kB / 405.5 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-05/0.1399, allocations: 3.953 kB / 405.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008891/0.1408, allocations: 0.5513 MB / 406.1 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.737e-05/0.1409, allocations: 124.5 kB / 406.2 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.047e-05/0.1409, allocations: 15.98 kB / 406.2 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.1411, allocations: 11.98 kB / 406.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.792e-05/0.1412, allocations: 19.94 kB / 406.3 MB, free: 7.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.701e-05/0.1412, allocations: 19.98 kB / 406.3 MB, free: 7.219 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003306/0.1415, allocations: 326.8 kB / 406.6 MB, free: 6.902 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1415, allocations: 0 / 406.6 MB, free: 6.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004331/0.142, allocations: 91.84 kB / 406.7 MB, free: 6.812 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (P1.w,P2.Y[3],P2.U[2],P2.w,P_inner.w,P_outer.Y[3],P_outer.U[2],P_outer.w) * Number of discrete variables: 14 ($whenCondition2,$whenCondition1,R.CS,R.FBout,R.cs,R.satin,R_outer.CS,R_outer.FBout,R_outer.cs,R_outer.satin,R_inner.CS,R_inner.FBout,R_inner.cs,R_inner.satin) * Number of discrete states: 6 (R_inner.FBout,R_inner.cs,R_outer.FBout,R_outer.cs,R.FBout,R.cs) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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.0001824/0.1422, allocations: 123.2 kB / 406.8 MB, free: 6.684 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001028/0.1432, allocations: 403.1 kB / 407.2 MB, free: 6.293 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.1432, allocations: 4.188 kB / 407.2 MB, free: 6.289 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004111/0.1436, allocations: 147.9 kB / 407.3 MB, free: 6.145 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004858/0.1441, allocations: 50.58 kB / 407.4 MB, free: 6.094 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00196/0.1461, allocations: 1.07 MB / 408.5 MB, free: 4.992 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005018/0.1466, allocations: 0.8701 MB / 409.3 MB, free: 4.098 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.736e-05/0.1468, allocations: 35.44 kB / 409.4 MB, free: 4.062 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1468, allocations: 0 / 409.4 MB, free: 4.062 MB / 302.1 MB Notification: Performance of Templates: time 0.01344/0.1602, allocations: 5.594 MB / 415 MB, free: 14.46 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.makefile make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.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 OMCppIndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControlCalcHelperMain.o OMCppIndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControlCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppIndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControlCalcHelperMain.o] Error 1