Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.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/Modelica 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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test",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.006843/0.006843, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.359/1.359, allocations: 222.9 MB / 239.4 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001418/0.001419, allocations: 192.4 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5003/0.5003, allocations: 91.89 MB / 431.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 86.56 kB / 0.5722 GB, free: 33.74 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1235, allocations: 71.28 MB / 0.6418 GB, free: 4.148 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test): time 0.006592/0.1301, allocations: 6.648 MB / 0.6483 GB, free: 13.46 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00376/0.1339, allocations: 2.024 MB / 0.6503 GB, free: 11.43 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006247/0.1346, allocations: 12 kB / 0.6503 GB, free: 11.42 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006795/0.1353, allocations: 241.9 kB / 0.6506 GB, free: 11.18 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001968/0.1373, allocations: 0.8283 MB / 0.6514 GB, free: 10.36 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001459/0.1387, allocations: 0.674 MB / 0.652 GB, free: 9.688 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00179/0.1405, allocations: 1.643 MB / 0.6536 GB, free: 8.039 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005558/0.1411, allocations: 348.6 kB / 0.654 GB, free: 7.684 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008164/0.1419, allocations: 0.6691 MB / 0.6546 GB, free: 7.012 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007825/0.1427, allocations: 0.809 MB / 0.6554 GB, free: 6.199 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001742/0.1429, allocations: 124 kB / 0.6555 GB, free: 6.078 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004581/0.1434, allocations: 259.8 kB / 0.6558 GB, free: 5.824 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002552/0.1436, allocations: 330.6 kB / 0.6561 GB, free: 5.5 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004943/0.1441, allocations: 0.6757 MB / 0.6567 GB, free: 4.82 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001682/0.1458, allocations: 1.708 MB / 0.6584 GB, free: 3.105 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1459, allocations: 0 / 0.6584 GB, free: 3.105 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1459, allocations: 0 / 0.6584 GB, free: 3.105 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.899e-05/0.1459, allocations: 4 kB / 0.6584 GB, free: 3.102 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.008428/0.1543, allocations: 2.804 MB / 0.6612 GB, free: 236 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1544, allocations: 8.031 kB / 0.6612 GB, free: 228 kB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001483/0.1545, allocations: 130.9 kB / 0.6613 GB, free: 88 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004771/0.1593, allocations: 0.7913 MB / 0.6621 GB, free: 15.29 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/0.1608, allocations: 0.9064 MB / 0.6629 GB, free: 14.33 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002534/0.1611, allocations: 248.2 kB / 0.6632 GB, free: 14.05 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000166/0.1612, allocations: 87.95 kB / 0.6633 GB, free: 13.96 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002166/0.1634, allocations: 1.176 MB / 0.6644 GB, free: 12.78 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.1634, allocations: 0 / 0.6644 GB, free: 12.78 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.285e-05/0.1635, allocations: 36 kB / 0.6645 GB, free: 12.74 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.1636, allocations: 16 kB / 0.6645 GB, free: 12.73 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002194/0.1658, allocations: 1.078 MB / 0.6655 GB, free: 11.64 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005925/0.1717, allocations: 3.673 MB / 0.6691 GB, free: 7.844 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002352/0.1741, allocations: 1.543 MB / 0.6706 GB, free: 6.172 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001449/0.1755, allocations: 0.7777 MB / 0.6714 GB, free: 5.391 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001144/0.1757, allocations: 28.84 kB / 0.6714 GB, free: 5.363 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001672/0.1773, allocations: 0.8842 MB / 0.6723 GB, free: 4.461 MB / 478.1 MB Notification: Performance of pre-optimization done (n=102): time 4.388e-06/0.1773, allocations: 4 kB / 0.6723 GB, free: 4.457 MB / 478.1 MB Notification: Performance of matching and sorting (n=102): time 0.02598/0.2033, allocations: 6.961 MB / 0.6791 GB, free: 13.43 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.309e-05/0.2034, allocations: 115.8 kB / 0.6792 GB, free: 13.29 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001482/0.2049, allocations: 1.035 MB / 0.6802 GB, free: 12.24 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001884/0.2051, allocations: 45.7 kB / 0.6802 GB, free: 12.19 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003519/0.2055, allocations: 0.5053 MB / 0.6807 GB, free: 11.68 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003654/0.2059, allocations: 392.7 kB / 0.6811 GB, free: 11.29 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004546/0.2063, allocations: 251.5 kB / 0.6813 GB, free: 11.04 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.2065, allocations: 357.9 kB / 0.6817 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/0.2081, allocations: 0.7613 MB / 0.6824 GB, free: 9.926 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001695/0.2098, allocations: 0.9154 MB / 0.6833 GB, free: 8.977 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02056/0.2303, allocations: 5.41 MB / 0.6886 GB, free: 3.484 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.618e-06/0.2304, allocations: 4 kB / 0.6886 GB, free: 3.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01387/0.2443, allocations: 4.515 MB / 0.693 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.606e-05/0.2444, allocations: 59.41 kB / 0.6931 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.2444, allocations: 11.94 kB / 0.6931 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006651/0.251, allocations: 1.857 MB / 0.6949 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.2523, allocations: 251.7 kB / 0.6951 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02174/0.2741, allocations: 9.474 MB / 0.7044 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001721/0.2759, allocations: 199.1 kB / 0.7046 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001273/0.276, allocations: 47.98 kB / 0.7046 GB, free: 2.887 MB / 0.4981 GB Warning: Assuming fixed start value for the following 2 variables: order6Type2_Inputs_Outputs.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order6Type2_Inputs_Outputs.delta:VARIABLE(flow=false start = order6Type2_Inputs_Outputs.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(24,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0005257/0.2765, allocations: 287.1 kB / 0.7049 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002141/0.2768, allocations: 131.2 kB / 0.705 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01345/0.2902, allocations: 4.193 MB / 0.7091 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-05/0.2903, allocations: 12 kB / 0.7091 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.2903, allocations: 0 / 0.7091 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.151e-05/0.2903, allocations: 7.922 kB / 0.7091 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01519/0.3055, allocations: 5.969 MB / 0.715 GB, free: 8.113 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.3055, allocations: 0 / 0.715 GB, free: 8.113 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007263/0.3063, allocations: 107.9 kB / 0.7151 GB, free: 8.008 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006085/0.3124, allocations: 1.835 MB / 0.7169 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002132/0.3126, allocations: 20 kB / 0.7169 GB, free: 6.145 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02143/0.3341, allocations: 10.31 MB / 0.7269 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.3341, allocations: 3.938 kB / 0.7269 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01519/0.3493, allocations: 5.149 MB / 0.732 GB, free: 6.352 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004582/0.3498, allocations: 228.2 kB / 0.7322 GB, free: 6.109 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001723/0.35, allocations: 23.94 kB / 0.7322 GB, free: 6.086 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/0.3511, allocations: 119.8 kB / 0.7323 GB, free: 5.969 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005948/0.3517, allocations: 212.7 kB / 0.7325 GB, free: 5.762 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.17e-05/0.3518, allocations: 27.98 kB / 0.7326 GB, free: 5.734 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0009781/0.3528, allocations: 0.7032 MB / 0.7332 GB, free: 5.023 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3528, allocations: 0 / 0.7332 GB, free: 5.023 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001276/0.3541, allocations: 479.6 kB / 0.7337 GB, free: 4.555 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order6Type2_Inputs_Outputs.delta,order6Type2_Inputs_Outputs.w,order6Type2_Inputs_Outputs.e1q,order6Type2_Inputs_Outputs.e1d,order6Type2_Inputs_Outputs.e2q,order6Type2_Inputs_Outputs.e2d,aVRI.ExcitationSystem.x_scaled[1],aVRI.derivativeBlock.x,aVRI.firstOrder2.y,aVRI.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(26,10), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01514/0.3692, allocations: 5.734 MB / 0.7393 GB, free: 14.77 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006851/0.3761, allocations: 2.69 MB / 0.7419 GB, free: 12.05 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3762, allocations: 0 / 0.7419 GB, free: 12.05 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004795/0.381, allocations: 1.81 MB / 0.7437 GB, free: 10.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009132/0.3819, allocations: 109.8 kB / 0.7438 GB, free: 10.09 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03946/0.4214, allocations: 16.62 MB / 0.76 GB, free: 9.25 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006333/0.422, allocations: 1.128 MB / 0.7611 GB, free: 8.09 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0004875/0.4225, allocations: 111.9 kB / 0.7612 GB, free: 7.977 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005827/0.4231, allocations: 479.3 kB / 0.7617 GB, free: 7.508 MB / 0.5606 GB Notification: Performance of SimCode: time 5.51e-07/0.4231, allocations: 0 / 0.7617 GB, free: 7.508 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3606/0.7837, allocations: 37.27 MB / 0.7981 GB, free: 105 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.24/14.02, allocations: 10.97 kB / 0.7981 GB, free: 105 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 OpenIPSL_dev_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test.fmu > OpenIPSL_dev_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe 2>&1)