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.00831/0.00831, allocations: 99.27 kB / 15.73 MB, free: 5.551 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.001374/0.001374, allocations: 187.6 kB / 16.67 MB, free: 5.473 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.63/1.63, allocations: 205.1 MB / 222.6 MB, free: 12.19 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06495/0.06495, allocations: 10.75 MB / 280.7 MB, free: 1.266 MB / 222.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.002166/0.002166, allocations: 68.05 kB / 390.3 MB, free: 46.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09099/0.09316, allocations: 49.03 MB / 439.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.002328/0.09548, allocations: 1.665 MB / 441 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005772/0.09606, allocations: 374.6 kB / 441.4 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.41e-05/0.09613, allocations: 3.938 kB / 441.4 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.11e-05/0.09616, allocations: 11.81 kB / 441.4 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.09626, allocations: 23.8 kB / 441.4 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002845/0.09654, allocations: 111.7 kB / 441.5 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000157/0.0967, allocations: 167.6 kB / 441.7 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.0968, allocations: 17.61 kB / 441.7 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.939e-05/0.09685, allocations: 71.64 kB / 441.8 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.027e-05/0.09693, allocations: 83.66 kB / 441.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.09695, allocations: 12 kB / 441.9 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.533e-05/0.09705, allocations: 79.94 kB / 442 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.04e-05/0.09708, allocations: 43.78 kB / 442 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.984e-05/0.09713, allocations: 79.52 kB / 442.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001832/0.09731, allocations: 195.2 kB / 442.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.09732, allocations: 4 kB / 442.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.09732, allocations: 3.938 kB / 442.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.09732, allocations: 7.938 kB / 442.3 MB, free: 1.367 MB / 318.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.0005472/0.09787, allocations: 489.9 kB / 442.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.0979, allocations: 11.89 kB / 442.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.123e-05/0.09795, allocations: 42.69 kB / 442.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.062e-05/0.098, allocations: 28.78 kB / 442.8 MB, free: 0.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001766/0.09817, allocations: 239.9 kB / 443.1 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.09819, allocations: 8.562 kB / 443.1 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.898e-05/0.09822, allocations: 20.36 kB / 443.1 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002442/0.09846, allocations: 169.9 kB / 443.3 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.09848, allocations: 4 kB / 443.3 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.965e-05/0.09851, allocations: 4 kB / 443.3 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.09851, allocations: 4 kB / 443.3 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001407/0.09865, allocations: 59.95 kB / 443.3 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007676/0.09942, allocations: 464.5 kB / 443.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002712/0.09969, allocations: 118.7 kB / 443.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.09983, allocations: 79.16 kB / 444 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.09985, allocations: 7.844 kB / 444 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003219/0.1002, allocations: 143.3 kB / 444.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.663e-06/0.1002, allocations: 0 / 444.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.000562/0.1007, allocations: 261.5 kB / 444.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.1008, allocations: 162.2 kB / 444.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001997/0.101, allocations: 202.7 kB / 444.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.402e-05/0.1011, allocations: 37.7 kB / 444.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.175e-05/0.1012, allocations: 120.5 kB / 444.9 MB, free: 14.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.927e-05/0.1012, allocations: 59.53 kB / 445 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-05/0.1013, allocations: 57.69 kB / 445 MB, free: 14.37 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1015, allocations: 330.8 kB / 445.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.1016, allocations: 60.23 kB / 445.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002068/0.1018, allocations: 163.1 kB / 445.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003646/0.1022, allocations: 226.8 kB / 445.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.1022, allocations: 8 kB / 445.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004234/0.1026, allocations: 245.2 kB / 446 MB, free: 13.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.1026, allocations: 8 kB / 446 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.1026, allocations: 4 kB / 446 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.1026, allocations: 4.375 kB / 446 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002063/0.1028, allocations: 51.92 kB / 446.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.1028, allocations: 7.984 kB / 446.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/0.103, allocations: 27.78 kB / 446.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.103, allocations: 15.98 kB / 446.1 MB, free: 13.13 MB / 334.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.0002055/0.1032, allocations: 155.4 kB / 446.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.361e-05/0.1032, allocations: 15.91 kB / 446.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.228e-05/0.1033, allocations: 25.88 kB / 446.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.1033, allocations: 7.938 kB / 446.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1033, allocations: 0 / 446.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1033, allocations: 3.984 kB / 446.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007129/0.104, allocations: 0.5249 MB / 446.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.104, allocations: 0 / 446.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.1042, allocations: 19.98 kB / 446.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1042, allocations: 3.938 kB / 446.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.1042, allocations: 15.98 kB / 446.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1042, allocations: 0 / 446.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1042, allocations: 4 kB / 446.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005817/0.1048, allocations: 376.4 kB / 447.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.056e-05/0.1048, allocations: 89.02 kB / 447.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.312e-05/0.1049, allocations: 12 kB / 447.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.105, allocations: 7.984 kB / 447.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.102e-05/0.105, allocations: 23.98 kB / 447.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.105, allocations: 7.984 kB / 447.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001519/0.1052, allocations: 148.2 kB / 447.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1052, allocations: 0 / 447.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003227/0.1055, allocations: 51.94 kB / 447.6 MB, free: 11.55 MB / 334.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.0009685/0.1065, allocations: 0.9474 MB / 448.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003751/0.1069, allocations: 159.3 kB / 448.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1069, allocations: 0 / 448.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.107, allocations: 72.62 kB / 448.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.1073, allocations: 43.84 kB / 448.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002875/0.1102, allocations: 2.386 MB / 451.2 MB, free: 7.777 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.1106, allocations: 0.7168 MB / 451.9 MB, free: 7.031 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.547e-05/0.1107, allocations: 29.94 kB / 452 MB, free: 7.004 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.034e-05/0.1108, allocations: 51.42 kB / 452 MB, free: 6.953 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1108, allocations: 0 / 452 MB, free: 6.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03144/0.1422, allocations: 4.45 MB / 456.5 MB, free: 2.621 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.289/8.432, allocations: 5.5 kB / 456.5 MB, free: 2.617 MB / 334.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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1)