Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.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.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",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.00612/0.00612, allocations: 103.6 kB / 15.74 MB, free: 6.445 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.489/1.489, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001993/0.001993, allocations: 192.1 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5209/0.5209, allocations: 78.54 MB / 418.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002315/0.002315, allocations: 79.88 kB / 0.5532 GB, free: 1.461 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3809/0.3833, allocations: 68.17 MB / 0.6197 GB, free: 9.383 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.005933/0.3893, allocations: 6.556 MB / 0.6261 GB, free: 3.582 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00348/0.3928, allocations: 1.962 MB / 0.6281 GB, free: 1.613 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007042/0.3935, allocations: 8 kB / 0.6281 GB, free: 1.605 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006783/0.3942, allocations: 241.9 kB / 0.6283 GB, free: 1.367 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00175/0.396, allocations: 0.8077 MB / 0.6291 GB, free: 0.5625 MB / 430.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 order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.3971, allocations: 0.6252 MB / 0.6297 GB, free: 15.94 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001873/0.399, allocations: 1.585 MB / 0.6312 GB, free: 14.35 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005088/0.3996, allocations: 330.4 kB / 0.6316 GB, free: 14.02 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009338/0.4005, allocations: 0.6496 MB / 0.6322 GB, free: 13.36 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00112/0.4016, allocations: 0.8245 MB / 0.633 GB, free: 12.54 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002442/0.4019, allocations: 127.9 kB / 0.6331 GB, free: 12.41 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006512/0.4025, allocations: 255.9 kB / 0.6334 GB, free: 12.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000372/0.4029, allocations: 326.6 kB / 0.6337 GB, free: 11.84 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007357/0.4037, allocations: 0.6719 MB / 0.6343 GB, free: 11.16 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002231/0.4059, allocations: 1.673 MB / 0.636 GB, free: 9.488 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.4059, allocations: 0 / 0.636 GB, free: 9.488 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4059, allocations: 0 / 0.636 GB, free: 9.488 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.905e-05/0.406, allocations: 0 / 0.636 GB, free: 9.488 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.009064/0.415, allocations: 2.73 MB / 0.6386 GB, free: 6.691 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.4151, allocations: 8.031 kB / 0.6386 GB, free: 6.684 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001824/0.4153, allocations: 130.6 kB / 0.6388 GB, free: 6.547 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005027/0.4203, allocations: 0.7757 MB / 0.6395 GB, free: 5.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00163/0.422, allocations: 0.8951 MB / 0.6404 GB, free: 4.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000339/0.4223, allocations: 264.1 kB / 0.6406 GB, free: 4.523 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001684/0.4225, allocations: 87.95 kB / 0.6407 GB, free: 4.438 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002286/0.4248, allocations: 1.086 MB / 0.6418 GB, free: 3.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.4248, allocations: 7.938 kB / 0.6418 GB, free: 3.332 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.832e-05/0.4249, allocations: 32 kB / 0.6418 GB, free: 3.301 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.659e-05/0.425, allocations: 20 kB / 0.6418 GB, free: 3.281 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002214/0.4272, allocations: 0.9877 MB / 0.6428 GB, free: 2.293 MB / 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.006964/0.4342, allocations: 3.805 MB / 0.6465 GB, free: 14.31 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007776/0.442, allocations: 2.379 MB / 0.6488 GB, free: 11.84 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001494/0.4435, allocations: 0.6762 MB / 0.6495 GB, free: 11.16 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001082/0.4436, allocations: 20.97 kB / 0.6495 GB, free: 11.14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001711/0.4453, allocations: 0.8153 MB / 0.6503 GB, free: 10.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 3.246e-06/0.4453, allocations: 7.938 kB / 0.6503 GB, free: 10.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.02916/0.4745, allocations: 7.082 MB / 0.6572 GB, free: 3.152 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.32e-05/0.4746, allocations: 127.7 kB / 0.6574 GB, free: 3.004 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001778/0.4764, allocations: 1.083 MB / 0.6584 GB, free: 1.906 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001588/0.4766, allocations: 41.7 kB / 0.6585 GB, free: 1.859 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004496/0.4771, allocations: 0.4936 MB / 0.6589 GB, free: 1.359 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004016/0.4775, allocations: 372.9 kB / 0.6593 GB, free: 0.9922 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005229/0.478, allocations: 287.5 kB / 0.6596 GB, free: 0.707 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4781, allocations: 305.1 kB / 0.6599 GB, free: 416 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001676/0.4798, allocations: 0.7653 MB / 0.6606 GB, free: 15.64 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00184/0.4817, allocations: 0.9304 MB / 0.6615 GB, free: 14.66 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02455/0.5062, allocations: 5.579 MB / 0.667 GB, free: 9.004 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-05/0.5063, allocations: 0 / 0.667 GB, free: 9.004 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01484/0.5211, allocations: 4.344 MB / 0.6712 GB, free: 4.633 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/0.5213, allocations: 63.41 kB / 0.6713 GB, free: 4.559 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.485e-05/0.5213, allocations: 7.938 kB / 0.6713 GB, free: 4.551 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00602/0.5274, allocations: 1.508 MB / 0.6728 GB, free: 3.039 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001599/0.529, allocations: 295.6 kB / 0.673 GB, free: 2.75 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02264/0.5517, allocations: 8.269 MB / 0.6811 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002301/0.554, allocations: 211 kB / 0.6813 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003606/0.5544, allocations: 51.98 kB / 0.6814 GB, free: 10.07 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.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: 13 * 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 (166): * Single equations (assignments): 163 * 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): 1 system {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001025/0.5555, allocations: 300.3 kB / 0.6817 GB, free: 9.758 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004582/0.5559, allocations: 135.1 kB / 0.6818 GB, free: 9.625 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01408/0.57, allocations: 3.877 MB / 0.6856 GB, free: 5.711 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/0.5701, allocations: 11.94 kB / 0.6856 GB, free: 5.699 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.701e-05/0.5701, allocations: 8 kB / 0.6856 GB, free: 5.691 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.528e-05/0.5702, allocations: 3.984 kB / 0.6856 GB, free: 5.688 MB / 494.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 postOpt removeSimpleEquations (simulation): time 0.01695/0.5871, allocations: 5.456 MB / 0.6909 GB, free: 128 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.197e-05/0.5872, allocations: 4 kB / 0.6909 GB, free: 124 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007403/0.588, allocations: 99.83 kB / 0.691 GB, free: 24 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006354/0.5943, allocations: 1.61 MB / 0.6926 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002373/0.5946, allocations: 24 kB / 0.6926 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02333/0.6179, allocations: 9.612 MB / 0.702 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.618, allocations: 0 / 0.702 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01588/0.6339, allocations: 4.743 MB / 0.7066 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005864/0.6345, allocations: 231.9 kB / 0.7069 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003802/0.6349, allocations: 20 kB / 0.7069 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/0.6363, allocations: 115.8 kB / 0.707 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007143/0.637, allocations: 192.7 kB / 0.7072 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001248/0.6372, allocations: 27.98 kB / 0.7072 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001416/0.6386, allocations: 0.7313 MB / 0.7079 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.51e-07/0.6386, allocations: 0 / 0.7079 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001715/0.6403, allocations: 471.6 kB / 0.7084 GB, free: 13.91 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.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): 1 system {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01595/0.6563, allocations: 5.337 MB / 0.7136 GB, free: 8.531 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006918/0.6632, allocations: 2.509 MB / 0.716 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.411e-06/0.6633, allocations: 128 / 0.716 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004847/0.6681, allocations: 1.622 MB / 0.7176 GB, free: 4.32 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.6693, allocations: 117.8 kB / 0.7177 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04132/0.7106, allocations: 16.04 MB / 0.7334 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008601/0.7115, allocations: 1.12 MB / 0.7345 GB, free: 2.789 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005673/0.7121, allocations: 124 kB / 0.7346 GB, free: 2.664 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007049/0.7128, allocations: 471.3 kB / 0.735 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of SimCode: time 1.022e-06/0.7128, allocations: 0 / 0.735 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08431/0.7971, allocations: 34.23 MB / 0.7685 GB, free: 132 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.12/15.92, allocations: 10.31 kB / 0.7685 GB, free: 124 kB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)