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.001239/0.001239, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001377/0.001377, allocations: 210.5 kB / 22.24 MB, free: 4.859 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.37/1.37, allocations: 230.6 MB / 256 MB, free: 7.801 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.06448/0.06448, allocations: 11.34 MB / 323.8 MB, free: 8.043 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.00207/0.00207, allocations: 73.92 kB / 451 MB, free: 10.33 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1105, allocations: 56.06 MB / 0.4951 GB, free: 2.172 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.003368/0.1139, allocations: 1.652 MB / 0.4968 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007996/0.1147, allocations: 342.8 kB / 0.4971 GB, free: 180 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.939e-05/0.1148, allocations: 0 / 0.4971 GB, free: 180 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.521e-05/0.1148, allocations: 11.81 kB / 0.4971 GB, free: 168 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001157/0.1149, allocations: 27.8 kB / 0.4971 GB, free: 140 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003791/0.1153, allocations: 123.7 kB / 0.4972 GB, free: 16 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002688/0.1156, allocations: 163.7 kB / 0.4974 GB, free: 15.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.1157, allocations: 14.08 kB / 0.4974 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.77e-05/0.1158, allocations: 67.7 kB / 0.4975 GB, free: 15.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001194/0.1159, allocations: 75.55 kB / 0.4975 GB, free: 15.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.874e-05/0.1159, allocations: 16 kB / 0.4976 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.1161, allocations: 75.92 kB / 0.4976 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.283e-05/0.1161, allocations: 47.83 kB / 0.4977 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.015e-05/0.1162, allocations: 51.67 kB / 0.4977 GB, free: 15.51 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000305/0.1165, allocations: 207.2 kB / 0.4979 GB, free: 15.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1165, allocations: 4 kB / 0.4979 GB, free: 15.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1165, allocations: 0 / 0.4979 GB, free: 15.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.1165, allocations: 0 / 0.4979 GB, free: 15.3 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.0007745/0.1173, allocations: 413.5 kB / 0.4983 GB, free: 14.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.1173, allocations: 8.031 kB / 0.4983 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.507e-05/0.1174, allocations: 42.73 kB / 0.4984 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.584e-05/0.1174, allocations: 28.8 kB / 0.4984 GB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/0.1177, allocations: 178.1 kB / 0.4986 GB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.1177, allocations: 8.562 kB / 0.4986 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.215e-05/0.1178, allocations: 16.38 kB / 0.4986 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003757/0.1181, allocations: 278.7 kB / 0.4989 GB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.1181, allocations: 0 / 0.4989 GB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.1182, allocations: 3.938 kB / 0.4989 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.1182, allocations: 4 kB / 0.4989 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001622/0.1183, allocations: 67.94 kB / 0.4989 GB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007556/0.1191, allocations: 399.8 kB / 0.4993 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.1193, allocations: 136.5 kB / 0.4994 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/0.1195, allocations: 60.83 kB / 0.4995 GB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.1195, allocations: 8 kB / 0.4995 GB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003187/0.1198, allocations: 139.3 kB / 0.4996 GB, free: 13.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.1198, allocations: 0 / 0.4996 GB, free: 13.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006272/0.1204, allocations: 263.3 kB / 0.4999 GB, free: 13.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.1205, allocations: 170.2 kB / 0.5001 GB, free: 12.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.1207, allocations: 199.1 kB / 0.5002 GB, free: 12.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.685e-05/0.1208, allocations: 41.7 kB / 0.5003 GB, free: 12.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.083e-05/0.1208, allocations: 128.4 kB / 0.5004 GB, free: 12.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.49e-05/0.1209, allocations: 47.59 kB / 0.5004 GB, free: 12.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.048e-05/0.121, allocations: 61.69 kB / 0.5005 GB, free: 12.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.1211, allocations: 330.8 kB / 0.5008 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.1213, allocations: 56.25 kB / 0.5009 GB, free: 12.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003605/0.1217, allocations: 274.7 kB / 0.5011 GB, free: 11.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003524/0.122, allocations: 230.9 kB / 0.5014 GB, free: 11.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.122, allocations: 0 / 0.5014 GB, free: 11.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003927/0.1224, allocations: 247.9 kB / 0.5016 GB, free: 11.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1224, allocations: 8.062 kB / 0.5016 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.1224, allocations: 4 kB / 0.5016 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.1225, allocations: 4 kB / 0.5016 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/0.1227, allocations: 47.92 kB / 0.5017 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.1227, allocations: 11.92 kB / 0.5017 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.1228, allocations: 27.84 kB / 0.5017 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.1228, allocations: 8 kB / 0.5017 GB, free: 11.05 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.0001923/0.123, allocations: 163.3 kB / 0.5019 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.488e-05/0.123, allocations: 15.91 kB / 0.5019 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.919e-05/0.1231, allocations: 21.81 kB / 0.5019 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.1231, allocations: 4 kB / 0.5019 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1231, allocations: 0 / 0.5019 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.1231, allocations: 8.016 kB / 0.5019 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006193/0.1237, allocations: 497.2 kB / 0.5024 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1237, allocations: 0 / 0.5024 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001452/0.1239, allocations: 23.98 kB / 0.5024 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1239, allocations: 4 kB / 0.5024 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.1239, allocations: 7.984 kB / 0.5024 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.1239, allocations: 4 kB / 0.5024 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1239, allocations: 0 / 0.5024 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005683/0.1245, allocations: 385.2 kB / 0.5028 GB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.824e-05/0.1245, allocations: 19.92 kB / 0.5028 GB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.951e-05/0.1245, allocations: 8 kB / 0.5028 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.1246, allocations: 8 kB / 0.5028 GB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.501e-05/0.1247, allocations: 15.91 kB / 0.5028 GB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.1247, allocations: 12 kB / 0.5028 GB, free: 9.809 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001257/0.1248, allocations: 144.5 kB / 0.503 GB, free: 9.668 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1248, allocations: 0 / 0.503 GB, free: 9.668 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.1251, allocations: 55.92 kB / 0.503 GB, free: 9.613 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.0009497/0.1261, allocations: 0.9441 MB / 0.504 GB, free: 8.648 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003259/0.1264, allocations: 152.5 kB / 0.5041 GB, free: 8.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1264, allocations: 4.125 kB / 0.5041 GB, free: 8.496 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001487/0.1266, allocations: 67.91 kB / 0.5042 GB, free: 8.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.1269, allocations: 39.91 kB / 0.5042 GB, free: 8.391 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002786/0.1297, allocations: 2.387 MB / 0.5065 GB, free: 5.848 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001076/0.1298, allocations: 116.3 kB / 0.5067 GB, free: 5.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.195e-05/0.1298, allocations: 29.88 kB / 0.5067 GB, free: 5.684 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.402e-05/0.1299, allocations: 51.42 kB / 0.5067 GB, free: 5.633 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1299, allocations: 0 / 0.5067 GB, free: 5.633 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03617/0.1661, allocations: 5.154 MB / 0.5118 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.01, allocations: 7.938 kB / 0.5118 GB, free: 0.6328 MB / 382.1 MB " [Timeout remaining time 649] (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: 13.743511581793427] Failed to read output from testmodel.py, exit status != 0: 11.32313034310937 11.335176797 11.216159571 Calling exit ...