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.001694/0.001694, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002177/0.002177, allocations: 218.3 kB / 22.26 MB, free: 5.125 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.521/1.521, allocations: 230.6 MB / 256 MB, free: 7.965 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.06607/0.06607, allocations: 11.34 MB / 323.8 MB, free: 8.199 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.002035/0.002035, allocations: 67.91 kB / 451 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1212, allocations: 56.07 MB / 0.4952 GB, free: 2.324 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.003207/0.1245, allocations: 1.708 MB / 0.4969 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008148/0.1253, allocations: 366.7 kB / 0.4972 GB, free: 252 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.967e-05/0.1253, allocations: 0 / 0.4972 GB, free: 252 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.153e-05/0.1254, allocations: 15.8 kB / 0.4973 GB, free: 236 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001092/0.1255, allocations: 23.75 kB / 0.4973 GB, free: 212 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003504/0.1258, allocations: 115.7 kB / 0.4974 GB, free: 96 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002841/0.1261, allocations: 171.5 kB / 0.4976 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.1262, allocations: 10.09 kB / 0.4976 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.1264, allocations: 71.7 kB / 0.4976 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.1265, allocations: 87.53 kB / 0.4977 GB, free: 15.76 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.105e-05/0.1265, allocations: 16 kB / 0.4977 GB, free: 15.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001364/0.1267, allocations: 75.94 kB / 0.4978 GB, free: 15.67 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.028e-05/0.1267, allocations: 47.77 kB / 0.4978 GB, free: 15.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.337e-05/0.1268, allocations: 71.58 kB / 0.4979 GB, free: 15.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.1271, allocations: 203.2 kB / 0.4981 GB, free: 15.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1271, allocations: 0 / 0.4981 GB, free: 15.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1271, allocations: 4 kB / 0.4981 GB, free: 15.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.1271, allocations: 0 / 0.4981 GB, free: 15.35 MB / 382.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.0008794/0.128, allocations: 413.5 kB / 0.4985 GB, free: 14.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.128, allocations: 12.03 kB / 0.4985 GB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.057e-05/0.1281, allocations: 42.73 kB / 0.4986 GB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.082e-05/0.1282, allocations: 20.8 kB / 0.4986 GB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002632/0.1284, allocations: 178.2 kB / 0.4987 GB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.1284, allocations: 12.56 kB / 0.4988 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.985e-05/0.1285, allocations: 20.36 kB / 0.4988 GB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003351/0.1288, allocations: 168.4 kB / 0.4989 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.1288, allocations: 0 / 0.4989 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.1289, allocations: 11.98 kB / 0.499 GB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.1289, allocations: 0 / 0.499 GB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001743/0.129, allocations: 63.91 kB / 0.499 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009457/0.13, allocations: 439.6 kB / 0.4994 GB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002872/0.1303, allocations: 126.6 kB / 0.4996 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.1304, allocations: 71.02 kB / 0.4996 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.46e-05/0.1304, allocations: 4 kB / 0.4996 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003717/0.1308, allocations: 145.5 kB / 0.4998 GB, free: 13.51 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.623e-06/0.1308, allocations: 0 / 0.4998 GB, free: 13.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006009/0.1314, allocations: 257.5 kB / 0.5 GB, free: 13.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/0.1315, allocations: 170.2 kB / 0.5002 GB, free: 13.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002183/0.1318, allocations: 199.1 kB / 0.5004 GB, free: 12.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/0.1318, allocations: 33.7 kB / 0.5004 GB, free: 12.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.1319, allocations: 124.5 kB / 0.5005 GB, free: 12.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.732e-05/0.132, allocations: 59.53 kB / 0.5006 GB, free: 12.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.767e-05/0.132, allocations: 57.7 kB / 0.5006 GB, free: 12.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.1322, allocations: 334.8 kB / 0.5009 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.1323, allocations: 52.27 kB / 0.501 GB, free: 12.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.1326, allocations: 167.9 kB / 0.5012 GB, free: 11.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003835/0.1329, allocations: 229.9 kB / 0.5014 GB, free: 11.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.1329, allocations: 0 / 0.5014 GB, free: 11.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000441/0.1334, allocations: 249.2 kB / 0.5016 GB, free: 11.44 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.1334, allocations: 8 kB / 0.5016 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.1334, allocations: 384 / 0.5016 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.246e-05/0.1335, allocations: 12 kB / 0.5016 GB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002319/0.1337, allocations: 43.86 kB / 0.5017 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.554e-05/0.1337, allocations: 11.98 kB / 0.5017 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.1338, allocations: 27.84 kB / 0.5017 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.1338, allocations: 8 kB / 0.5017 GB, free: 11.33 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.0002168/0.1341, allocations: 163.3 kB / 0.5019 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.502e-05/0.1341, allocations: 15.91 kB / 0.5019 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.706e-05/0.1341, allocations: 29.81 kB / 0.5019 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.1342, allocations: 3.984 kB / 0.5019 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1342, allocations: 3.938 kB / 0.5019 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1342, allocations: 0 / 0.5019 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000715/0.1349, allocations: 0.4995 MB / 0.5024 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1349, allocations: 3.938 kB / 0.5024 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.135, allocations: 23.98 kB / 0.5024 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.135, allocations: 0 / 0.5024 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.116e-05/0.1351, allocations: 15.98 kB / 0.5025 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.1351, allocations: 0 / 0.5025 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1351, allocations: 0 / 0.5025 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005792/0.1357, allocations: 379.1 kB / 0.5028 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.117e-05/0.1357, allocations: 19.88 kB / 0.5028 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.78e-05/0.1357, allocations: 15.98 kB / 0.5028 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.1358, allocations: 8 kB / 0.5029 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.885e-05/0.1359, allocations: 23.97 kB / 0.5029 GB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.635e-05/0.1359, allocations: 8 kB / 0.5029 GB, free: 10.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001285/0.136, allocations: 144.5 kB / 0.503 GB, free: 9.914 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.136, allocations: 0 / 0.503 GB, free: 9.914 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003437/0.1364, allocations: 51.92 kB / 0.5031 GB, free: 9.863 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.001017/0.1374, allocations: 0.938 MB / 0.504 GB, free: 8.902 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003648/0.1378, allocations: 147.8 kB / 0.5041 GB, free: 8.758 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1378, allocations: 3.938 kB / 0.5041 GB, free: 8.754 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001438/0.1379, allocations: 68.73 kB / 0.5042 GB, free: 8.688 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.1383, allocations: 39.91 kB / 0.5042 GB, free: 8.648 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003165/0.1415, allocations: 2.395 MB / 0.5066 GB, free: 6.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004181/0.1419, allocations: 0.7283 MB / 0.5073 GB, free: 5.336 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001054/0.142, allocations: 29.88 kB / 0.5073 GB, free: 5.309 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.983e-05/0.1421, allocations: 55.41 kB / 0.5074 GB, free: 5.258 MB / 382.1 MB Notification: Performance of SimCode: time 1.814e-06/0.1421, allocations: 0 / 0.5074 GB, free: 5.258 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04039/0.1825, allocations: 4.634 MB / 0.5119 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.33, allocations: 6.094 kB / 0.5119 GB, free: 0.7656 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.320938714998192] Failed to read output from testmodel.py, exit status != 0: 11.646008748997701 11.668422682 11.53707823 Calling exit ...