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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001744/0.001744, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002531/0.002531, allocations: 186 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.514/1.514, allocations: 205.1 MB / 222.1 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05924/0.05924, allocations: 10.74 MB / 280.2 MB, free: 10.68 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 71.84 kB / 340.1 MB, free: 23.59 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.107, allocations: 49.02 MB / 389.2 MB, free: 6.516 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.003253/0.1103, allocations: 1.728 MB / 390.9 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007621/0.111, allocations: 362.8 kB / 391.2 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.227e-05/0.1111, allocations: 0 / 391.2 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.628e-05/0.1112, allocations: 7.875 kB / 391.2 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001262/0.1113, allocations: 27.84 kB / 391.3 MB, free: 4.379 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004017/0.1117, allocations: 99.77 kB / 391.4 MB, free: 4.281 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002253/0.112, allocations: 159.6 kB / 391.5 MB, free: 4.125 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.1121, allocations: 25.67 kB / 391.5 MB, free: 4.102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.125e-05/0.1122, allocations: 71.64 kB / 391.6 MB, free: 4.031 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001213/0.1123, allocations: 83.59 kB / 391.7 MB, free: 3.949 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.886e-05/0.1124, allocations: 16 kB / 391.7 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.1125, allocations: 75.94 kB / 391.8 MB, free: 3.859 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.254e-05/0.1126, allocations: 39.83 kB / 391.8 MB, free: 3.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.975e-05/0.1127, allocations: 83.45 kB / 391.9 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002457/0.1129, allocations: 199.4 kB / 392.1 MB, free: 3.543 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1129, allocations: 0 / 392.1 MB, free: 3.543 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1129, allocations: 3.938 kB / 392.1 MB, free: 3.539 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.1129, allocations: 0 / 392.1 MB, free: 3.539 MB / 286.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.0007561/0.1137, allocations: 487.1 kB / 392.6 MB, free: 3.012 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.1138, allocations: 11.89 kB / 392.6 MB, free: 3 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.509e-05/0.1138, allocations: 46.73 kB / 392.6 MB, free: 2.945 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.832e-05/0.1139, allocations: 24.66 kB / 392.7 MB, free: 2.922 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000255/0.1141, allocations: 228 kB / 392.9 MB, free: 2.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.1142, allocations: 4.562 kB / 392.9 MB, free: 2.656 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.025e-05/0.1142, allocations: 16.28 kB / 392.9 MB, free: 2.641 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003131/0.1145, allocations: 183.1 kB / 393.1 MB, free: 2.441 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.1146, allocations: 0 / 393.1 MB, free: 2.441 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.1146, allocations: 0 / 393.1 MB, free: 2.441 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1146, allocations: 4 kB / 393.1 MB, free: 2.438 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001601/0.1148, allocations: 59.95 kB / 393.1 MB, free: 2.379 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007929/0.1156, allocations: 468.5 kB / 393.6 MB, free: 1.871 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002295/0.1158, allocations: 126.7 kB / 393.7 MB, free: 1.738 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.1159, allocations: 72.83 kB / 393.8 MB, free: 1.664 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.116, allocations: 4 kB / 393.8 MB, free: 1.66 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002736/0.1162, allocations: 139.2 kB / 393.9 MB, free: 1.512 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.653e-06/0.1162, allocations: 0 / 393.9 MB, free: 1.512 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005057/0.1168, allocations: 269.3 kB / 394.2 MB, free: 1.242 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.524e-05/0.1169, allocations: 166.2 kB / 394.4 MB, free: 1.043 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001628/0.117, allocations: 198.6 kB / 394.6 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.1171, allocations: 33.7 kB / 394.6 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.63e-05/0.1172, allocations: 128.3 kB / 394.7 MB, free: 0.668 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.112e-05/0.1172, allocations: 51.34 kB / 394.8 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.88e-05/0.1173, allocations: 57.61 kB / 394.8 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1174, allocations: 334.8 kB / 395.2 MB, free: 224 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.1175, allocations: 52.27 kB / 395.2 MB, free: 168 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.1177, allocations: 163.1 kB / 395.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000371/0.1181, allocations: 234.8 kB / 395.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.1181, allocations: 8 kB / 395.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003956/0.1185, allocations: 241.1 kB / 395.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.1186, allocations: 8 kB / 395.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.1186, allocations: 4 kB / 395.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.1186, allocations: 8.312 kB / 395.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002266/0.1188, allocations: 47.92 kB / 395.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.1189, allocations: 11.92 kB / 395.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.119, allocations: 23.78 kB / 395.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.119, allocations: 16 kB / 396 MB, free: 15.32 MB / 302.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.0002022/0.1192, allocations: 147.8 kB / 396.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.817e-05/0.1193, allocations: 23.72 kB / 396.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.123e-05/0.1193, allocations: 21.88 kB / 396.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1193, allocations: 3.984 kB / 396.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.347e-06/0.1194, allocations: 4 kB / 396.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.1194, allocations: 4 kB / 396.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006426/0.12, allocations: 0.529 MB / 396.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.12, allocations: 0 / 396.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001679/0.1202, allocations: 19.98 kB / 396.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1202, allocations: 4 kB / 396.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.452e-05/0.1202, allocations: 11.98 kB / 396.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1203, allocations: 0 / 396.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1203, allocations: 4 kB / 396.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005382/0.1208, allocations: 375 kB / 397.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.425e-05/0.1209, allocations: 92.95 kB / 397.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.191e-05/0.1209, allocations: 11.98 kB / 397.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.121, allocations: 12.06 kB / 397.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.713e-05/0.1211, allocations: 19.88 kB / 397.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.1211, allocations: 11.98 kB / 397.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001107/0.1212, allocations: 144.2 kB / 397.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1213, allocations: 0 / 397.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000321/0.1216, allocations: 56 kB / 397.4 MB, free: 13.74 MB / 302.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.0009081/0.1225, allocations: 0.9578 MB / 398.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003403/0.1228, allocations: 171.6 kB / 398.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.1229, allocations: 0.8125 kB / 398.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.123, allocations: 75.34 kB / 398.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.1233, allocations: 52.28 kB / 398.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002641/0.126, allocations: 2.432 MB / 401.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.1263, allocations: 0.7206 MB / 401.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.786e-05/0.1264, allocations: 21.95 kB / 401.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.486e-05/0.1265, allocations: 55.42 kB / 401.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1265, allocations: 0 / 401.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03608/0.1626, allocations: 4.236 MB / 406.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002267/0.1629, allocations: 237.3 kB / 406.4 MB, free: 4.699 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.945/2.108, allocations: 4 kB / 406.4 MB, free: 4.695 MB / 302.1 MB (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 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1)