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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004955/0.004955, allocations: 97.98 kB / 15.73 MB, free: 5.602 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.00129/0.00129, allocations: 195.5 kB / 16.68 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06515/0.06515, allocations: 11.21 MB / 301.7 MB, free: 4.039 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 67.47 kB / 417.3 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0911/0.09297, allocations: 51.98 MB / 469.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.002701/0.0957, allocations: 1.676 MB / 471 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007103/0.09643, allocations: 370.6 kB / 471.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.607e-05/0.09651, allocations: 0 / 471.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.886e-05/0.09656, allocations: 11.81 kB / 471.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.09668, allocations: 19.8 kB / 471.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004007/0.09709, allocations: 119.7 kB / 471.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002139/0.09731, allocations: 155.6 kB / 471.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.09743, allocations: 25.66 kB / 471.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.111e-05/0.09752, allocations: 71.59 kB / 471.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.09764, allocations: 87.52 kB / 471.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.982e-05/0.09768, allocations: 16 kB / 471.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.09782, allocations: 79.94 kB / 471.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.986e-05/0.09788, allocations: 35.91 kB / 472 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.371e-05/0.09797, allocations: 87.45 kB / 472.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002732/0.09825, allocations: 195.5 kB / 472.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.156e-05/0.09827, allocations: 4 kB / 472.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.09827, allocations: 0 / 472.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.09828, allocations: 0 / 472.2 MB, free: 12.03 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.0007334/0.09902, allocations: 498.5 kB / 472.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.09907, allocations: 15.89 kB / 472.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.414e-05/0.09912, allocations: 38.75 kB / 472.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.932e-05/0.09918, allocations: 24.83 kB / 472.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002587/0.09945, allocations: 236 kB / 473 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.09947, allocations: 8.562 kB / 473.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.177e-05/0.0995, allocations: 12.31 kB / 473.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.09982, allocations: 175.1 kB / 473.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.09985, allocations: 4 kB / 473.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/0.09987, allocations: 4 kB / 473.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.09988, allocations: 4 kB / 473.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001675/0.1001, allocations: 63.89 kB / 473.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008223/0.1009, allocations: 464.6 kB / 473.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002521/0.1011, allocations: 126.6 kB / 473.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.1013, allocations: 68.83 kB / 474 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.1013, allocations: 7.984 kB / 474 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003521/0.1017, allocations: 139.3 kB / 474.1 MB, free: 9.988 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.593e-06/0.1017, allocations: 0 / 474.1 MB, free: 9.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005477/0.1022, allocations: 259.8 kB / 474.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.1024, allocations: 170.2 kB / 474.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001954/0.1026, allocations: 198.9 kB / 474.7 MB, free: 9.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.1026, allocations: 37.7 kB / 474.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.907e-05/0.1027, allocations: 124.5 kB / 474.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.941e-05/0.1028, allocations: 63.45 kB / 474.9 MB, free: 9.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.437e-05/0.1029, allocations: 65.64 kB / 475 MB, free: 9.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.103, allocations: 330.8 kB / 475.3 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.1031, allocations: 56.19 kB / 475.4 MB, free: 8.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.1033, allocations: 171.9 kB / 475.5 MB, free: 8.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000362/0.1037, allocations: 229.6 kB / 475.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1037, allocations: 0 / 475.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004099/0.1041, allocations: 253.3 kB / 476 MB, free: 7.895 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1042, allocations: 8 kB / 476 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1042, allocations: 0 / 476 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.1042, allocations: 8 kB / 476 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.1044, allocations: 43.92 kB / 476.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.488e-05/0.1044, allocations: 11.98 kB / 476.1 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.1046, allocations: 19.89 kB / 476.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.1046, allocations: 11.94 kB / 476.1 MB, free: 7.793 MB / 350.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.000182/0.1048, allocations: 159.6 kB / 476.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.296e-05/0.1048, allocations: 19.86 kB / 476.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.695e-05/0.1049, allocations: 25.88 kB / 476.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1049, allocations: 0 / 476.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1049, allocations: 0 / 476.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1049, allocations: 3.984 kB / 476.3 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006713/0.1056, allocations: 0.5217 MB / 476.8 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1056, allocations: 0 / 476.8 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001564/0.1058, allocations: 31.92 kB / 476.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1058, allocations: 0 / 476.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.128e-05/0.1058, allocations: 7.984 kB / 476.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1058, allocations: 0 / 476.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1058, allocations: 0 / 476.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005608/0.1064, allocations: 381.4 kB / 477.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.103e-05/0.1065, allocations: 96.94 kB / 477.3 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.343e-05/0.1065, allocations: 16 kB / 477.4 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.1066, allocations: 7.984 kB / 477.4 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.923e-05/0.1067, allocations: 19.86 kB / 477.4 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.781e-05/0.1067, allocations: 11.98 kB / 477.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001307/0.1068, allocations: 148.4 kB / 477.5 MB, free: 6.262 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1068, allocations: 0 / 477.5 MB, free: 6.262 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003108/0.1072, allocations: 47.94 kB / 477.6 MB, free: 6.215 MB / 350.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.0009601/0.1081, allocations: 0.9543 MB / 478.5 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003396/0.1085, allocations: 164.4 kB / 478.7 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1085, allocations: 0 / 478.7 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.1086, allocations: 70.33 kB / 478.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.109, allocations: 43.44 kB / 478.8 MB, free: 4.969 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002928/0.1119, allocations: 2.399 MB / 481.2 MB, free: 2.406 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004061/0.1123, allocations: 0.7245 MB / 481.9 MB, free: 1.656 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.087e-05/0.1124, allocations: 21.94 kB / 482 MB, free: 1.637 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.602e-05/0.1126, allocations: 55.42 kB / 482 MB, free: 1.586 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1126, allocations: 0 / 482 MB, free: 1.586 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02885/0.1414, allocations: 4.428 MB / 486.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.571/8.712, allocations: 448 / 486.4 MB, free: 13.32 MB / 366.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)