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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001887/0.001887, allocations: 109.1 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002073/0.002073, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.07552/0.07552, allocations: 11.35 MB / 314 MB, free: 14.93 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-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 67.88 kB / 437.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.102, allocations: 54.83 MB / 492.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.002952/0.1049, allocations: 1.68 MB / 493.8 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007436/0.1057, allocations: 366.7 kB / 494.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.098e-05/0.1057, allocations: 3.938 kB / 494.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.74e-05/0.1058, allocations: 11.81 kB / 494.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001149/0.1059, allocations: 23.8 kB / 494.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000371/0.1063, allocations: 123.6 kB / 494.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.1065, allocations: 155.6 kB / 494.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.1066, allocations: 13.69 kB / 494.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.328e-05/0.1067, allocations: 71.64 kB / 494.6 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.1068, allocations: 83.59 kB / 494.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.68e-05/0.1068, allocations: 12 kB / 494.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00013/0.1069, allocations: 83.92 kB / 494.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.58e-05/0.107, allocations: 47.77 kB / 494.8 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.059e-05/0.1071, allocations: 71.53 kB / 494.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002672/0.1073, allocations: 203.2 kB / 495.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1073, allocations: 0 / 495.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1073, allocations: 4 kB / 495.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1073, allocations: 0 / 495.1 MB, free: 0.5508 MB / 350.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.0007207/0.1081, allocations: 494.5 kB / 495.6 MB, free: 16 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.1081, allocations: 15.83 kB / 495.6 MB, free: 0 / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.958e-05/0.1082, allocations: 42.73 kB / 495.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.098e-05/0.1082, allocations: 16.84 kB / 495.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003108/0.1085, allocations: 240 kB / 495.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.1086, allocations: 12.56 kB / 495.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.955e-05/0.1086, allocations: 16.36 kB / 495.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000318/0.1089, allocations: 167.1 kB / 496.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.1089, allocations: 0 / 496.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.23e-05/0.1089, allocations: 19.86 kB / 496.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.109, allocations: 0 / 496.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001644/0.1091, allocations: 66.78 kB / 496.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008167/0.1099, allocations: 468.5 kB / 496.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002517/0.1102, allocations: 130.7 kB / 496.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.1103, allocations: 72.77 kB / 496.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.011e-05/0.1103, allocations: 0 / 496.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003128/0.1106, allocations: 139.3 kB / 496.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.503e-06/0.1106, allocations: 4 kB / 496.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005613/0.1112, allocations: 260 kB / 497.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.1113, allocations: 166.2 kB / 497.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001953/0.1115, allocations: 202.9 kB / 497.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.953e-05/0.1115, allocations: 33.7 kB / 497.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.1116, allocations: 128.5 kB / 497.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.519e-05/0.1117, allocations: 59.52 kB / 497.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.61e-05/0.1118, allocations: 57.66 kB / 497.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1119, allocations: 338.8 kB / 498.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.1121, allocations: 52.25 kB / 498.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.1123, allocations: 168 kB / 498.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003415/0.1126, allocations: 226.3 kB / 498.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.1126, allocations: 4 kB / 498.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000392/0.113, allocations: 245.1 kB / 498.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.113, allocations: 8.375 kB / 498.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.113, allocations: 8 kB / 498.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.113, allocations: 4 kB / 498.9 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002153/0.1133, allocations: 47.91 kB / 498.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.1133, allocations: 4 kB / 498.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.1134, allocations: 23.89 kB / 498.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.1134, allocations: 12 kB / 499 MB, free: 12.32 MB / 366.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.0001932/0.1136, allocations: 148.3 kB / 499.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.665e-05/0.1136, allocations: 23.86 kB / 499.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.584e-05/0.1137, allocations: 37.67 kB / 499.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.1137, allocations: 0 / 499.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.1137, allocations: 4 kB / 499.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.1137, allocations: 0 / 499.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006947/0.1144, allocations: 0.5217 MB / 499.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.1144, allocations: 48 / 499.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000161/0.1146, allocations: 27.91 kB / 499.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1146, allocations: 4 kB / 499.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.114e-05/0.1146, allocations: 11.98 kB / 499.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.1146, allocations: 0 / 499.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.1146, allocations: 4 kB / 499.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005466/0.1151, allocations: 369.5 kB / 0.4884 GB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.705e-05/0.1152, allocations: 104.9 kB / 0.4885 GB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.786e-05/0.1152, allocations: 8 kB / 0.4885 GB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.1154, allocations: 20.05 kB / 0.4885 GB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.953e-05/0.1154, allocations: 15.92 kB / 0.4885 GB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.1154, allocations: 8 kB / 0.4885 GB, free: 10.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001242/0.1156, allocations: 140.5 kB / 0.4887 GB, free: 10.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1156, allocations: 0 / 0.4887 GB, free: 10.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003217/0.1159, allocations: 59.92 kB / 0.4887 GB, free: 10.73 MB / 366.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.0009503/0.1168, allocations: 0.9348 MB / 0.4896 GB, free: 9.766 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003483/0.1172, allocations: 158.3 kB / 0.4898 GB, free: 9.613 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1172, allocations: 0.8125 kB / 0.4898 GB, free: 9.613 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001582/0.1173, allocations: 71.89 kB / 0.4898 GB, free: 9.543 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000342/0.1177, allocations: 53.09 kB / 0.4899 GB, free: 9.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002768/0.1205, allocations: 2.384 MB / 0.4922 GB, free: 6.949 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.1208, allocations: 0.7206 MB / 0.4929 GB, free: 6.203 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.155e-05/0.1209, allocations: 29.89 kB / 0.493 GB, free: 6.176 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.401e-05/0.121, allocations: 55.41 kB / 0.493 GB, free: 6.121 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.121, allocations: 0 / 0.493 GB, free: 6.121 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02994/0.1509, allocations: 4.439 MB / 0.4973 GB, free: 1.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.107/8.258, allocations: 11.88 kB / 0.4974 GB, free: 1.832 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.853937013074756] Failed to read output from testmodel.py, exit status != 0: 8.329136420041323 8.355278127 8.243320213 Calling exit ...