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.00151/0.00151, allocations: 110.6 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.001697/0.001697, allocations: 216.3 kB / 22.25 MB, free: 5.129 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.473/1.473, allocations: 230.6 MB / 256 MB, free: 8.008 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.0651/0.0651, allocations: 11.34 MB / 323.8 MB, free: 8.336 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.002054/0.002054, allocations: 63.91 kB / 451 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.112, allocations: 56.07 MB / 0.4952 GB, free: 2.418 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.003573/0.1156, allocations: 1.708 MB / 0.4969 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001173/0.1167, allocations: 366.7 kB / 0.4972 GB, free: 348 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.1169, allocations: 0 / 0.4972 GB, free: 348 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.435e-05/0.1169, allocations: 11.81 kB / 0.4973 GB, free: 336 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001686/0.1171, allocations: 31.73 kB / 0.4973 GB, free: 304 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005187/0.1176, allocations: 115.7 kB / 0.4974 GB, free: 188 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003489/0.1179, allocations: 163.5 kB / 0.4975 GB, free: 24 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.1181, allocations: 22.08 kB / 0.4976 GB, free: 0 / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.1182, allocations: 71.77 kB / 0.4976 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/0.1184, allocations: 79.61 kB / 0.4977 GB, free: 15.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.659e-05/0.1184, allocations: 16 kB / 0.4977 GB, free: 15.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002053/0.1187, allocations: 79.92 kB / 0.4978 GB, free: 15.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.862e-05/0.1187, allocations: 47.77 kB / 0.4979 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.1188, allocations: 71.53 kB / 0.4979 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004279/0.1193, allocations: 199.2 kB / 0.4981 GB, free: 15.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1193, allocations: 0 / 0.4981 GB, free: 15.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1193, allocations: 0 / 0.4981 GB, free: 15.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1193, allocations: 4 kB / 0.4981 GB, free: 15.44 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.001007/0.1203, allocations: 413.5 kB / 0.4985 GB, free: 15 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.1203, allocations: 12.03 kB / 0.4985 GB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.021e-05/0.1204, allocations: 42.73 kB / 0.4986 GB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.538e-05/0.1205, allocations: 20.8 kB / 0.4986 GB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000384/0.1209, allocations: 186.1 kB / 0.4988 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.606e-05/0.1209, allocations: 8.562 kB / 0.4988 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.705e-05/0.121, allocations: 16.31 kB / 0.4988 GB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004837/0.1214, allocations: 176 kB / 0.4989 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.1215, allocations: 0 / 0.4989 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.323e-05/0.1215, allocations: 8 kB / 0.499 GB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.1215, allocations: 0 / 0.499 GB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.1218, allocations: 63.95 kB / 0.499 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.123, allocations: 435.6 kB / 0.4994 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003654/0.1234, allocations: 118.7 kB / 0.4995 GB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.1235, allocations: 68.83 kB / 0.4996 GB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.1235, allocations: 7.938 kB / 0.4996 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000348/0.1239, allocations: 143.2 kB / 0.4998 GB, free: 13.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 2.474e-06/0.1239, allocations: 0 / 0.4998 GB, free: 13.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006078/0.1245, allocations: 259.5 kB / 0.5 GB, free: 13.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.1246, allocations: 170.2 kB / 0.5002 GB, free: 13.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002213/0.1248, allocations: 203.1 kB / 0.5004 GB, free: 12.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.11e-05/0.1249, allocations: 33.7 kB / 0.5004 GB, free: 12.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.886e-05/0.125, allocations: 124.5 kB / 0.5005 GB, free: 12.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.737e-05/0.125, allocations: 59.53 kB / 0.5006 GB, free: 12.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.1251, allocations: 57.69 kB / 0.5006 GB, free: 12.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.1253, allocations: 330.8 kB / 0.5009 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.1255, allocations: 56.25 kB / 0.501 GB, free: 12.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.1257, allocations: 163.9 kB / 0.5011 GB, free: 12.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003763/0.1261, allocations: 227 kB / 0.5014 GB, free: 11.78 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.1261, allocations: 4 kB / 0.5014 GB, free: 11.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004618/0.1265, allocations: 247.9 kB / 0.5016 GB, free: 11.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.1265, allocations: 8 kB / 0.5016 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.1266, allocations: 7.938 kB / 0.5016 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.215e-05/0.1266, allocations: 7.984 kB / 0.5016 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002278/0.1268, allocations: 52.3 kB / 0.5017 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.1268, allocations: 4 kB / 0.5017 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.127, allocations: 27.83 kB / 0.5017 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.127, allocations: 16 kB / 0.5017 GB, free: 11.41 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.000216/0.1272, allocations: 163.2 kB / 0.5019 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.27e-05/0.1272, allocations: 23.89 kB / 0.5019 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.275e-05/0.1273, allocations: 17.81 kB / 0.5019 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-06/0.1273, allocations: 4 kB / 0.5019 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.1273, allocations: 0 / 0.5019 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.1273, allocations: 7.984 kB / 0.5019 GB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007074/0.128, allocations: 0.4973 MB / 0.5024 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.128, allocations: 0 / 0.5024 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001626/0.1282, allocations: 19.98 kB / 0.5024 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.1282, allocations: 3.938 kB / 0.5024 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.301e-05/0.1282, allocations: 8 kB / 0.5024 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1282, allocations: 4 kB / 0.5024 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1282, allocations: 4 kB / 0.5025 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006027/0.1288, allocations: 377.8 kB / 0.5028 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.02e-05/0.1288, allocations: 23.83 kB / 0.5028 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.272e-05/0.1289, allocations: 8 kB / 0.5028 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.129, allocations: 11.98 kB / 0.5029 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.562e-05/0.129, allocations: 15.92 kB / 0.5029 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.907e-05/0.1291, allocations: 16.05 kB / 0.5029 GB, free: 10.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000143/0.1292, allocations: 140.5 kB / 0.503 GB, free: 10.01 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1292, allocations: 0 / 0.503 GB, free: 10.01 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003342/0.1295, allocations: 51.94 kB / 0.5031 GB, free: 9.957 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.001056/0.1306, allocations: 0.947 MB / 0.504 GB, free: 8.984 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003601/0.131, allocations: 147.8 kB / 0.5041 GB, free: 8.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.131, allocations: 4 kB / 0.5041 GB, free: 8.836 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.1311, allocations: 70.44 kB / 0.5042 GB, free: 8.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.1315, allocations: 36.73 kB / 0.5042 GB, free: 8.734 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.1347, allocations: 2.388 MB / 0.5066 GB, free: 6.188 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005265/0.1352, allocations: 0.7246 MB / 0.5073 GB, free: 5.438 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.1353, allocations: 33.86 kB / 0.5073 GB, free: 5.406 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.76e-05/0.1354, allocations: 51.42 kB / 0.5074 GB, free: 5.359 MB / 382.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1354, allocations: 0 / 0.5074 GB, free: 5.359 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03717/0.1726, allocations: 4.645 MB / 0.5119 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.26, allocations: 4 kB / 0.5119 GB, free: 0.8594 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 & /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: 14.016217393102124] Failed to read output from testmodel.py, exit status != 0: 11.532576576108113 11.543739644 11.421713436 Calling exit ...