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.001217/0.001217, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001363/0.001363, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.404/1.404, allocations: 230.6 MB / 256 MB, free: 7.785 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.06267/0.06267, allocations: 11.35 MB / 323.8 MB, free: 8.008 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.002151/0.002151, allocations: 71.89 kB / 451 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1072, allocations: 56.07 MB / 0.4952 GB, free: 2.148 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.003055/0.1103, allocations: 1.645 MB / 0.4968 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008586/0.1111, allocations: 342.8 kB / 0.4971 GB, free: 160 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.1112, allocations: 3.938 kB / 0.4971 GB, free: 156 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.398e-05/0.1113, allocations: 11.81 kB / 0.4971 GB, free: 144 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.1114, allocations: 23.8 kB / 0.4971 GB, free: 120 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004761/0.1119, allocations: 119.7 kB / 0.4972 GB, free: 0 / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003071/0.1122, allocations: 155.6 kB / 0.4974 GB, free: 15.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.1124, allocations: 22.08 kB / 0.4974 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.1125, allocations: 71.66 kB / 0.4975 GB, free: 15.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.1126, allocations: 75.53 kB / 0.4975 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.863e-05/0.1127, allocations: 16 kB / 0.4976 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.1128, allocations: 75.92 kB / 0.4976 GB, free: 15.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.352e-05/0.1129, allocations: 39.84 kB / 0.4977 GB, free: 15.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.621e-05/0.113, allocations: 59.59 kB / 0.4977 GB, free: 15.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003543/0.1133, allocations: 203.2 kB / 0.4979 GB, free: 15.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1133, allocations: 4 kB / 0.4979 GB, free: 15.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1133, allocations: 0 / 0.4979 GB, free: 15.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.1133, allocations: 3.938 kB / 0.4979 GB, free: 15.29 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.0008719/0.1142, allocations: 417.5 kB / 0.4983 GB, free: 14.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.1142, allocations: 8.031 kB / 0.4983 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.275e-05/0.1143, allocations: 38.75 kB / 0.4984 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.717e-05/0.1144, allocations: 28.78 kB / 0.4984 GB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003024/0.1147, allocations: 178.2 kB / 0.4986 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.1147, allocations: 12.55 kB / 0.4986 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.032e-05/0.1147, allocations: 16.38 kB / 0.4986 GB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000409/0.1152, allocations: 272.8 kB / 0.4989 GB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.1152, allocations: 0 / 0.4989 GB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.1152, allocations: 16 kB / 0.4989 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.1152, allocations: 0 / 0.4989 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.1154, allocations: 67.89 kB / 0.4989 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008322/0.1162, allocations: 395.8 kB / 0.4993 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002609/0.1165, allocations: 122.6 kB / 0.4994 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.1166, allocations: 68.83 kB / 0.4995 GB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.1166, allocations: 4 kB / 0.4995 GB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003282/0.117, allocations: 143.3 kB / 0.4996 GB, free: 13.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.663e-06/0.117, allocations: 0 / 0.4996 GB, free: 13.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005927/0.1176, allocations: 259.6 kB / 0.4999 GB, free: 13.1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.1177, allocations: 170.2 kB / 0.5001 GB, free: 12.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.1179, allocations: 199.2 kB / 0.5002 GB, free: 12.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.713e-05/0.1179, allocations: 41.69 kB / 0.5003 GB, free: 12.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.118, allocations: 132.4 kB / 0.5004 GB, free: 12.51 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.503e-05/0.1181, allocations: 51.59 kB / 0.5005 GB, free: 12.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.039e-05/0.1182, allocations: 53.7 kB / 0.5005 GB, free: 12.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1183, allocations: 338.7 kB / 0.5008 GB, free: 12.06 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.1185, allocations: 48.25 kB / 0.5009 GB, free: 12.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002902/0.1187, allocations: 274.7 kB / 0.5011 GB, free: 11.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000365/0.1191, allocations: 233.7 kB / 0.5014 GB, free: 11.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1191, allocations: 4 kB / 0.5014 GB, free: 11.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000419/0.1195, allocations: 241.2 kB / 0.5016 GB, free: 11.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.1196, allocations: 8 kB / 0.5016 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.1196, allocations: 0 / 0.5016 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.839e-05/0.1196, allocations: 12.36 kB / 0.5016 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002222/0.1198, allocations: 43.92 kB / 0.5017 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.464e-05/0.1198, allocations: 11.94 kB / 0.5017 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.12, allocations: 27.83 kB / 0.5017 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.12, allocations: 12 kB / 0.5017 GB, free: 11.04 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.0002378/0.1202, allocations: 159.3 kB / 0.5019 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.174e-05/0.1203, allocations: 23.89 kB / 0.5019 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.421e-05/0.1203, allocations: 17.81 kB / 0.5019 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1203, allocations: 4 kB / 0.5019 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.1203, allocations: 0 / 0.5019 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.1203, allocations: 3.984 kB / 0.5019 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006792/0.121, allocations: 493.3 kB / 0.5024 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.121, allocations: 0 / 0.5024 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001513/0.1212, allocations: 19.98 kB / 0.5024 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.1212, allocations: 4 kB / 0.5024 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.1212, allocations: 7.984 kB / 0.5024 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1212, allocations: 4 kB / 0.5024 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1212, allocations: 0 / 0.5024 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005847/0.1218, allocations: 385.3 kB / 0.5028 GB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.224e-05/0.1218, allocations: 19.94 kB / 0.5028 GB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.071e-05/0.1219, allocations: 15.92 kB / 0.5028 GB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.122, allocations: 4 kB / 0.5028 GB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.021e-05/0.122, allocations: 19.91 kB / 0.5028 GB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.1221, allocations: 8 kB / 0.5028 GB, free: 9.801 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001328/0.1222, allocations: 148.4 kB / 0.503 GB, free: 9.656 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1222, allocations: 0 / 0.503 GB, free: 9.656 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003453/0.1225, allocations: 51.92 kB / 0.503 GB, free: 9.605 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.001006/0.1235, allocations: 0.9546 MB / 0.504 GB, free: 8.621 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003456/0.1239, allocations: 147.8 kB / 0.5041 GB, free: 8.477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1239, allocations: 0 / 0.5041 GB, free: 8.477 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001432/0.124, allocations: 68.72 kB / 0.5042 GB, free: 8.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.1244, allocations: 39.91 kB / 0.5042 GB, free: 8.371 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00292/0.1273, allocations: 2.395 MB / 0.5065 GB, free: 5.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001128/0.1274, allocations: 120.3 kB / 0.5067 GB, free: 5.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.314e-05/0.1275, allocations: 29.88 kB / 0.5067 GB, free: 5.652 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.099e-05/0.1276, allocations: 51.42 kB / 0.5067 GB, free: 5.602 MB / 382.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1276, allocations: 4 kB / 0.5067 GB, free: 5.598 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03559/0.1632, allocations: 5.139 MB / 0.5118 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/10.82, allocations: 12 kB / 0.5118 GB, free: 0.6055 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex_fmu --startTime=0 --stopTime=30 --stepSize=0.012 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.527589430101216] Failed to read output from testmodel.py, exit status != 0: 11.14395443489775 11.155337074 11.03953638 Calling exit ...