Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00184/0.00184, allocations: 107.6 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002128/0.002128, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.58/1.58, allocations: 230.6 MB / 252.8 MB, free: 8.977 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.06566/0.06566, allocations: 11.32 MB / 320.2 MB, free: 9.512 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 63.91 kB / 445.8 MB, free: 13.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1264, allocations: 56.01 MB / 0.4901 GB, free: 5.875 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.003408/0.1298, allocations: 1.688 MB / 0.4917 GB, free: 4.176 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008919/0.1307, allocations: 366.7 kB / 0.4921 GB, free: 3.816 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.692e-05/0.1308, allocations: 7.938 kB / 0.4921 GB, free: 3.809 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.432e-05/0.1308, allocations: 11.81 kB / 0.4921 GB, free: 3.797 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001248/0.1309, allocations: 23.8 kB / 0.4921 GB, free: 3.773 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004136/0.1313, allocations: 115.7 kB / 0.4922 GB, free: 3.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002531/0.1316, allocations: 155.6 kB / 0.4924 GB, free: 3.508 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.1317, allocations: 25.66 kB / 0.4924 GB, free: 3.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.613e-05/0.1318, allocations: 71.66 kB / 0.4924 GB, free: 3.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001402/0.132, allocations: 91.52 kB / 0.4925 GB, free: 3.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.132, allocations: 12 kB / 0.4925 GB, free: 3.309 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000141/0.1321, allocations: 75.94 kB / 0.4926 GB, free: 3.234 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.752e-05/0.1322, allocations: 39.84 kB / 0.4927 GB, free: 3.195 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.32e-05/0.1323, allocations: 75.52 kB / 0.4927 GB, free: 3.121 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003264/0.1326, allocations: 199.5 kB / 0.4929 GB, free: 2.926 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.1326, allocations: 7.938 kB / 0.4929 GB, free: 2.918 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.1326, allocations: 4 kB / 0.4929 GB, free: 2.914 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.1326, allocations: 4 kB / 0.4929 GB, free: 2.91 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0008391/0.1334, allocations: 486.6 kB / 0.4934 GB, free: 2.383 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.1335, allocations: 8.031 kB / 0.4934 GB, free: 2.375 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.284e-05/0.1336, allocations: 38.75 kB / 0.4934 GB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.884e-05/0.1336, allocations: 24.78 kB / 0.4935 GB, free: 2.305 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.1339, allocations: 248.9 kB / 0.4937 GB, free: 2.023 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.1339, allocations: 8.562 kB / 0.4937 GB, free: 2.016 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.472e-05/0.1339, allocations: 12.38 kB / 0.4937 GB, free: 2.004 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003592/0.1343, allocations: 172.6 kB / 0.4939 GB, free: 1.816 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.1343, allocations: 0 / 0.4939 GB, free: 1.816 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.044e-05/0.1343, allocations: 8 kB / 0.4939 GB, free: 1.809 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-06/0.1343, allocations: 4 kB / 0.4939 GB, free: 1.805 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.1345, allocations: 63.89 kB / 0.494 GB, free: 1.742 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008383/0.1354, allocations: 460.6 kB / 0.4944 GB, free: 1.242 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002775/0.1356, allocations: 122.6 kB / 0.4945 GB, free: 1.113 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001506/0.1358, allocations: 72.83 kB / 0.4946 GB, free: 1.039 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.1358, allocations: 11.91 kB / 0.4946 GB, free: 1.027 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003252/0.1361, allocations: 139.3 kB / 0.4947 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 2.024e-06/0.1361, allocations: 0 / 0.4947 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006169/0.1368, allocations: 272.1 kB / 0.495 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.1369, allocations: 162.2 kB / 0.4951 GB, free: 424 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.1371, allocations: 198.8 kB / 0.4953 GB, free: 212 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/0.1371, allocations: 37.7 kB / 0.4954 GB, free: 168 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.1372, allocations: 120.5 kB / 0.4955 GB, free: 44 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.385e-05/0.1373, allocations: 63.72 kB / 0.4955 GB, free: 15.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.347e-05/0.1374, allocations: 53.69 kB / 0.4956 GB, free: 15.92 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.1375, allocations: 330.6 kB / 0.4959 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.1377, allocations: 56.25 kB / 0.496 GB, free: 15.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.1379, allocations: 171 kB / 0.4961 GB, free: 15.31 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000396/0.1383, allocations: 227 kB / 0.4963 GB, free: 15.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.1383, allocations: 8 kB / 0.4964 GB, free: 15.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004373/0.1387, allocations: 247.7 kB / 0.4966 GB, free: 14.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.1387, allocations: 8 kB / 0.4966 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.1388, allocations: 4 kB / 0.4966 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.1388, allocations: 4.375 kB / 0.4966 GB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002276/0.139, allocations: 51.92 kB / 0.4967 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.139, allocations: 11.92 kB / 0.4967 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.1392, allocations: 23.84 kB / 0.4967 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.1392, allocations: 12 kB / 0.4967 GB, free: 14.68 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: cplxP_dig_TU.u_pre1:DISCRETE(fixed = true protected = true ) type: Real cplxP_dig_FE.u_pre1:DISCRETE(fixed = true protected = true ) type: Real cplxP_dig_BE.u_pre1:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.cplxP_dig_TU.u_pre1,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y_pre1,$PRE.cplxP_dig_TU.y_pre1,$PRE.cplxP_dig_FE.u_pre1,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y_pre1,$PRE.cplxP_dig_FE.y_pre1,$PRE.cplxP_dig_BE.u_pre1,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y_pre1,$PRE.cplxP_dig_BE.y_pre1,$whenCondition3,$whenCondition2,$whenCondition1,cplxP_dig_TU.y,$PRE.cplxP_dig_TU.y,cplxP_dig_FE.y,$PRE.cplxP_dig_FE.y,cplxP_dig_BE.y,$PRE.cplxP_dig_BE.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002023/0.1394, allocations: 151.4 kB / 0.4968 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.943e-05/0.1394, allocations: 23.91 kB / 0.4969 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.942e-05/0.1395, allocations: 21.88 kB / 0.4969 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1395, allocations: 0 / 0.4969 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1395, allocations: 4 kB / 0.4969 GB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.1395, allocations: 3.984 kB / 0.4969 GB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000717/0.1402, allocations: 0.5217 MB / 0.4974 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.1402, allocations: 0 / 0.4974 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001709/0.1404, allocations: 23.98 kB / 0.4974 GB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1404, allocations: 0 / 0.4974 GB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.3e-05/0.1404, allocations: 11.98 kB / 0.4974 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.165e-06/0.1404, allocations: 4 kB / 0.4974 GB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.1404, allocations: 7.938 kB / 0.4975 GB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006201/0.141, allocations: 385.1 kB / 0.4978 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.569e-05/0.1411, allocations: 96.98 kB / 0.4979 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.235e-05/0.1411, allocations: 8.047 kB / 0.4979 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/0.1413, allocations: 11.97 kB / 0.4979 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.151e-05/0.1413, allocations: 23.98 kB / 0.498 GB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.1413, allocations: 7.984 kB / 0.498 GB, free: 13.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001375/0.1415, allocations: 148.9 kB / 0.4981 GB, free: 13.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1415, allocations: 0 / 0.4981 GB, free: 13.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003827/0.1419, allocations: 51.94 kB / 0.4982 GB, free: 13.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (cplxP.y,cplxP.dy) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,cplxP_dig_BE.y,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y_pre1,cplxP_dig_FE.y,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y_pre1,cplxP_dig_TU.y,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y_pre1) * Number of discrete states: 12 (cplxP_dig_TU.u,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y,cplxP_dig_TU.y_pre1,cplxP_dig_FE.u,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y,cplxP_dig_FE.y_pre1,cplxP_dig_BE.u,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y,cplxP_dig_BE.y_pre1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001046/0.1429, allocations: 0.9434 MB / 0.4991 GB, free: 12.13 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004282/0.1433, allocations: 151.8 kB / 0.4992 GB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.1433, allocations: 4 kB / 0.4992 GB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001629/0.1435, allocations: 63.88 kB / 0.4993 GB, free: 11.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.1439, allocations: 40.97 kB / 0.4993 GB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003294/0.1472, allocations: 2.398 MB / 0.5017 GB, free: 9.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.1476, allocations: 0.7244 MB / 0.5024 GB, free: 8.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.1477, allocations: 25.94 kB / 0.5024 GB, free: 8.547 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.1478, allocations: 58.05 kB / 0.5025 GB, free: 8.496 MB / 382.1 MB Notification: Performance of SimCode: time 1.273e-06/0.1478, allocations: 0 / 0.5025 GB, free: 8.496 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0321/0.1799, allocations: 4.442 MB / 0.5068 GB, free: 4.215 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.336/8.516, allocations: 3.312 kB / 0.5068 GB, free: 4.215 MB / 382.1 MB " [Timeout remaining time 651] (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.54974062301335] Failed to read output from testmodel.py, exit status != 0: 8.586452957999427 8.775106491 8.639525332 Calling exit ...