Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.OEL.AVRTypeII_OEL_Test,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Controls_PSAT_OEL_AVRTypeII_OEL_Test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Controls_PSAT_OEL_AVRTypeII_OEL_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.005012/0.005012, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.371/1.371, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001497/0.001497, allocations: 188.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4698/0.4698, allocations: 78.54 MB / 418.4 MB, free: 3.289 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001741/0.001741, allocations: 71.88 kB / 0.5531 GB, free: 1.457 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.3576, allocations: 68.17 MB / 0.6197 GB, free: 9.457 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test): time 0.005808/0.3635, allocations: 6.986 MB / 0.6265 GB, free: 3.148 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002993/0.3665, allocations: 2.111 MB / 0.6286 GB, free: 1.035 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004058/0.3669, allocations: 23.88 kB / 0.6286 GB, free: 1.012 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006039/0.3675, allocations: 253.8 kB / 0.6289 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001408/0.369, allocations: 0.8297 MB / 0.6297 GB, free: 15.93 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation generator.xq <> generator.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001439/0.3704, allocations: 0.7554 MB / 0.6304 GB, free: 15.18 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00156/0.372, allocations: 1.733 MB / 0.6321 GB, free: 13.45 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005264/0.3725, allocations: 407.5 kB / 0.6325 GB, free: 13.02 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007661/0.3733, allocations: 0.7042 MB / 0.6332 GB, free: 12.31 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008796/0.3742, allocations: 0.8477 MB / 0.634 GB, free: 11.46 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001712/0.3744, allocations: 136 kB / 0.6341 GB, free: 11.33 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004354/0.3748, allocations: 267.9 kB / 0.6344 GB, free: 11.07 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000289/0.3751, allocations: 346.6 kB / 0.6347 GB, free: 10.73 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005786/0.3757, allocations: 0.7146 MB / 0.6354 GB, free: 10.01 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001683/0.3774, allocations: 1.818 MB / 0.6372 GB, free: 8.18 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3774, allocations: 0 / 0.6372 GB, free: 8.18 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3774, allocations: 0 / 0.6372 GB, free: 8.18 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.3774, allocations: 0 / 0.6372 GB, free: 8.18 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.008409/0.3858, allocations: 2.844 MB / 0.64 GB, free: 5.27 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3859, allocations: 12.03 kB / 0.64 GB, free: 5.258 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000178/0.3861, allocations: 139.4 kB / 0.6401 GB, free: 5.113 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004764/0.3908, allocations: 0.7982 MB / 0.6409 GB, free: 4.312 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001457/0.3923, allocations: 0.9371 MB / 0.6418 GB, free: 3.32 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003595/0.3927, allocations: 331.6 kB / 0.6421 GB, free: 2.945 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001752/0.3929, allocations: 95.94 kB / 0.6422 GB, free: 2.852 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002444/0.3953, allocations: 1.283 MB / 0.6435 GB, free: 1.551 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.3954, allocations: 0 / 0.6435 GB, free: 1.551 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.3955, allocations: 36 kB / 0.6435 GB, free: 1.516 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.499e-05/0.3955, allocations: 23.94 kB / 0.6435 GB, free: 1.492 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002743/0.3982, allocations: 1.199 MB / 0.6447 GB, free: 300 kB / 446.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.006851/0.4051, allocations: 4.152 MB / 0.6488 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003296/0.4084, allocations: 1.767 MB / 0.6505 GB, free: 10.09 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001678/0.4101, allocations: 0.8601 MB / 0.6513 GB, free: 9.223 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001176/0.4102, allocations: 20.98 kB / 0.6513 GB, free: 9.203 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001905/0.4121, allocations: 0.9544 MB / 0.6523 GB, free: 8.227 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 2.605e-06/0.4122, allocations: 3.938 kB / 0.6523 GB, free: 8.223 MB / 462.1 MB Notification: Performance of matching and sorting (n=108): time 0.03142/0.4436, allocations: 7.901 MB / 0.66 GB, free: 260 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.527e-05/0.4437, allocations: 115.8 kB / 0.6601 GB, free: 120 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001854/0.4456, allocations: 1.037 MB / 0.6611 GB, free: 15.06 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001562/0.4457, allocations: 41.7 kB / 0.6612 GB, free: 15.02 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004735/0.4462, allocations: 0.5285 MB / 0.6617 GB, free: 14.48 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004717/0.4467, allocations: 394.4 kB / 0.6621 GB, free: 14.09 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005885/0.4473, allocations: 243.5 kB / 0.6623 GB, free: 13.85 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.4475, allocations: 357.9 kB / 0.6626 GB, free: 13.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001791/0.4493, allocations: 0.7808 MB / 0.6634 GB, free: 12.71 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001918/0.4512, allocations: 0.9444 MB / 0.6643 GB, free: 11.73 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0221/0.4733, allocations: 5.496 MB / 0.6697 GB, free: 6.148 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/0.4734, allocations: 3.938 kB / 0.6697 GB, free: 6.145 MB / 478.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.01375/0.4871, allocations: 4.455 MB / 0.674 GB, free: 1.66 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.735e-05/0.4872, allocations: 59.41 kB / 0.6741 GB, free: 1.59 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.4872, allocations: 4 kB / 0.6741 GB, free: 1.586 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005884/0.4931, allocations: 1.745 MB / 0.6758 GB, free: 15.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.4946, allocations: 275.6 kB / 0.6761 GB, free: 15.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.021/0.5156, allocations: 9.035 MB / 0.6849 GB, free: 6.383 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001844/0.5175, allocations: 214.8 kB / 0.6851 GB, free: 6.172 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002592/0.5177, allocations: 47.98 kB / 0.6851 GB, free: 6.125 MB / 494.1 MB Warning: Assuming fixed start value for the following 3 variables: generator.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real generator.delta:VARIABLE(flow=false start = generator.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real generator.e1q:VARIABLE(start = generator.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,oXL.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 138 * 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,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0009008/0.5187, allocations: 303.7 kB / 0.6854 GB, free: 5.812 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004509/0.5191, allocations: 134.3 kB / 0.6856 GB, free: 5.68 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01489/0.534, allocations: 4.393 MB / 0.6898 GB, free: 1.254 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.212e-05/0.5341, allocations: 12 kB / 0.6899 GB, free: 1.242 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.5341, allocations: 3.938 kB / 0.6899 GB, free: 1.238 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-05/0.5341, allocations: 11.91 kB / 0.6899 GB, free: 1.227 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01849/0.5526, allocations: 6.259 MB / 0.696 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.5527, allocations: 0 / 0.696 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007654/0.5535, allocations: 131.8 kB / 0.6961 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00644/0.5599, allocations: 1.895 MB / 0.698 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001573/0.5601, allocations: 31.98 kB / 0.698 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02676/0.5869, allocations: 10.72 MB / 0.7085 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.5869, allocations: 3.938 kB / 0.7085 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01917/0.6061, allocations: 5.429 MB / 0.7138 GB, free: 8.297 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005761/0.6067, allocations: 219.2 kB / 0.714 GB, free: 8.062 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005093/0.6073, allocations: 27.98 kB / 0.714 GB, free: 8.035 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001685/0.609, allocations: 131.8 kB / 0.7141 GB, free: 7.906 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009174/0.6099, allocations: 240.6 kB / 0.7144 GB, free: 7.672 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001566/0.6101, allocations: 28 kB / 0.7144 GB, free: 7.645 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001378/0.6114, allocations: 0.7045 MB / 0.7151 GB, free: 6.934 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.01e-07/0.6115, allocations: 0 / 0.7151 GB, free: 6.934 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002075/0.6135, allocations: 483.4 kB / 0.7155 GB, free: 6.461 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (generator.delta,generator.w,generator.e1q,generator.e1d,exciter_Type_II.ExcitationSystem.x_scaled[1],exciter_Type_II.derivativeBlock.x,exciter_Type_II.firstOrder2.y,exciter_Type_II.simpleLagLim.state,oXL.limIntegrator.y) * 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 (67): * Single equations (assignments): 64 * 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,13), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01897/0.6325, allocations: 5.992 MB / 0.7214 GB, free: 432 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007801/0.6404, allocations: 2.73 MB / 0.724 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.6404, allocations: 4.062 kB / 0.724 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005089/0.6455, allocations: 1.89 MB / 0.7259 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.6467, allocations: 123.6 kB / 0.726 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04014/0.6869, allocations: 16.9 MB / 0.7425 GB, free: 10.49 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009345/0.6879, allocations: 1.151 MB / 0.7436 GB, free: 9.312 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005185/0.6884, allocations: 124.3 kB / 0.7438 GB, free: 9.188 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007672/0.6892, allocations: 499.3 kB / 0.7442 GB, free: 8.699 MB / 0.545 GB Notification: Performance of SimCode: time 1.102e-06/0.6892, allocations: 0 / 0.7442 GB, free: 8.699 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4061/1.095, allocations: 38.76 MB / 0.7821 GB, free: 137.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/15.17, allocations: 11.22 kB / 0.7821 GB, free: 137.8 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe ; mkfifo OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe >> ../files/OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Tests_Controls_PSAT_OEL_AVRTypeII_OEL_Test_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Tests_Controls_PSAT_OEL_AVRTypeII_OEL_Test.fmu > OpenIPSL_OpenIPSL.Tests.Controls.PSAT.OEL.AVRTypeII_OEL_Test.pipe 2>&1)