Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_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.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_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.00787/0.00787, allocations: 100.7 kB / 15.73 MB, free: 6.469 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.304/1.304, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001588/0.001588, allocations: 184.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4444/0.4444, allocations: 78.54 MB / 418.4 MB, free: 3.156 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 75.88 kB / 0.5532 GB, free: 1.457 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.321, allocations: 68.17 MB / 0.6197 GB, free: 9.422 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII): time 0.006099/0.3271, allocations: 6.701 MB / 0.6263 GB, free: 3.461 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004043/0.3312, allocations: 2.025 MB / 0.6282 GB, free: 1.43 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0012/0.3324, allocations: 12 kB / 0.6283 GB, free: 1.418 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009037/0.3334, allocations: 237.9 kB / 0.6285 GB, free: 1.184 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002439/0.3358, allocations: 0.8213 MB / 0.6293 GB, free: 372 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001449/0.3373, allocations: 0.6409 MB / 0.6299 GB, free: 15.73 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002461/0.3398, allocations: 1.671 MB / 0.6315 GB, free: 14.05 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006404/0.3404, allocations: 332.7 kB / 0.6319 GB, free: 13.71 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001207/0.3416, allocations: 0.6925 MB / 0.6325 GB, free: 13.02 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001353/0.343, allocations: 0.8674 MB / 0.6334 GB, free: 12.15 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004398/0.3435, allocations: 132 kB / 0.6335 GB, free: 12.02 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009122/0.3444, allocations: 271.9 kB / 0.6338 GB, free: 11.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005092/0.3449, allocations: 346.5 kB / 0.6341 GB, free: 11.41 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.346, allocations: 0.703 MB / 0.6348 GB, free: 10.71 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002365/0.3483, allocations: 1.728 MB / 0.6365 GB, free: 8.973 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3483, allocations: 4 kB / 0.6365 GB, free: 8.969 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3484, allocations: 4 kB / 0.6365 GB, free: 8.965 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.739e-05/0.3484, allocations: 0 / 0.6365 GB, free: 8.965 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.01022/0.3586, allocations: 2.778 MB / 0.6392 GB, free: 6.117 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.3587, allocations: 8.031 kB / 0.6392 GB, free: 6.109 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002941/0.359, allocations: 130.7 kB / 0.6393 GB, free: 5.973 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00536/0.3644, allocations: 0.7787 MB / 0.6401 GB, free: 5.191 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0021/0.3665, allocations: 0.9256 MB / 0.641 GB, free: 4.211 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000345/0.3669, allocations: 260.2 kB / 0.6412 GB, free: 3.918 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002797/0.3672, allocations: 87.91 kB / 0.6413 GB, free: 3.832 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002581/0.3698, allocations: 1.114 MB / 0.6424 GB, free: 2.707 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.03e-05/0.3698, allocations: 0 / 0.6424 GB, free: 2.707 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/0.3699, allocations: 31.98 kB / 0.6424 GB, free: 2.676 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.904e-05/0.37, allocations: 20 kB / 0.6425 GB, free: 2.656 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002263/0.3722, allocations: 1.007 MB / 0.6434 GB, free: 1.648 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.007801/0.38, allocations: 3.899 MB / 0.6473 GB, free: 13.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007817/0.3879, allocations: 2.404 MB / 0.6496 GB, free: 11.07 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0017/0.3896, allocations: 0.6918 MB / 0.6503 GB, free: 10.38 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001722/0.3898, allocations: 20.98 kB / 0.6503 GB, free: 10.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001955/0.3918, allocations: 0.8489 MB / 0.6511 GB, free: 9.484 MB / 462.1 MB Notification: Performance of pre-optimization done (n=98): time 4.198e-06/0.3918, allocations: 0 / 0.6511 GB, free: 9.484 MB / 462.1 MB Notification: Performance of matching and sorting (n=98): time 0.02929/0.4211, allocations: 7.081 MB / 0.658 GB, free: 2.344 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.4213, allocations: 119.8 kB / 0.6582 GB, free: 2.203 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002477/0.4238, allocations: 1.131 MB / 0.6593 GB, free: 1.059 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002926/0.4241, allocations: 45.7 kB / 0.6593 GB, free: 1.008 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005151/0.4246, allocations: 0.4969 MB / 0.6598 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005843/0.4252, allocations: 370.9 kB / 0.6601 GB, free: 140 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008409/0.4261, allocations: 295.4 kB / 0.6604 GB, free: 15.84 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.4262, allocations: 305.1 kB / 0.6607 GB, free: 15.54 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001832/0.4281, allocations: 0.7926 MB / 0.6615 GB, free: 14.75 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001851/0.4299, allocations: 0.9733 MB / 0.6624 GB, free: 13.73 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02633/0.4563, allocations: 5.923 MB / 0.6682 GB, free: 7.727 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-05/0.4563, allocations: 0 / 0.6682 GB, free: 7.727 MB / 478.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.01545/0.4718, allocations: 4.512 MB / 0.6726 GB, free: 3.184 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.048e-05/0.4719, allocations: 63.41 kB / 0.6727 GB, free: 3.109 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.472, allocations: 0 / 0.6727 GB, free: 3.109 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006631/0.4786, allocations: 1.67 MB / 0.6743 GB, free: 1.438 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/0.4802, allocations: 295.6 kB / 0.6746 GB, free: 1.148 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02232/0.5025, allocations: 8.611 MB / 0.683 GB, free: 8.379 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002199/0.5048, allocations: 210.6 kB / 0.6832 GB, free: 8.172 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003515/0.5052, allocations: 55.97 kB / 0.6833 GB, free: 8.117 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order6.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.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 order6.delta:VARIABLE(flow=false start = order6.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (171): * Single equations (assignments): 168 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009618/0.5062, allocations: 310.9 kB / 0.6836 GB, free: 7.797 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004735/0.5066, allocations: 138.4 kB / 0.6837 GB, free: 7.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01347/0.5201, allocations: 3.912 MB / 0.6875 GB, free: 3.715 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.856e-05/0.5202, allocations: 15.94 kB / 0.6875 GB, free: 3.699 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.391e-05/0.5202, allocations: 8 kB / 0.6875 GB, free: 3.691 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.462e-05/0.5202, allocations: 3.984 kB / 0.6875 GB, free: 3.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.01609/0.5363, allocations: 5.554 MB / 0.693 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/0.5364, allocations: 0 / 0.693 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007719/0.5372, allocations: 119.9 kB / 0.6931 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005959/0.5432, allocations: 1.587 MB / 0.6946 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002149/0.5434, allocations: 23.98 kB / 0.6946 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0218/0.5652, allocations: 9.616 MB / 0.704 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5653, allocations: 0 / 0.704 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01579/0.5811, allocations: 4.801 MB / 0.7087 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006895/0.5818, allocations: 243.1 kB / 0.709 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004625/0.5823, allocations: 16 kB / 0.709 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001593/0.5839, allocations: 111.9 kB / 0.7091 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007645/0.5847, allocations: 200.7 kB / 0.7093 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001495/0.5849, allocations: 24 kB / 0.7093 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001467/0.5863, allocations: 0.7752 MB / 0.7101 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.01e-07/0.5864, allocations: 0 / 0.7101 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001918/0.5883, allocations: 491.6 kB / 0.7105 GB, free: 11.68 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order2.delta,order2.w,order6.delta,order6.w,order6.e1q,order6.e1d,order6.e2q,order6.e2d,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 (66): * Single equations (assignments): 63 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01605/0.6043, allocations: 5.394 MB / 0.7158 GB, free: 6.242 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007765/0.6122, allocations: 2.624 MB / 0.7184 GB, free: 3.574 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.6122, allocations: 0 / 0.7184 GB, free: 3.574 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004943/0.6172, allocations: 1.623 MB / 0.7199 GB, free: 1.906 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.6186, allocations: 119.8 kB / 0.7201 GB, free: 1.793 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04299/0.6617, allocations: 16.75 MB / 0.7364 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007486/0.6625, allocations: 1.136 MB / 0.7375 GB, free: 15.66 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005968/0.6631, allocations: 124.3 kB / 0.7376 GB, free: 15.53 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006808/0.6638, allocations: 487.3 kB / 0.7381 GB, free: 15.06 MB / 0.545 GB Notification: Performance of SimCode: time 5.71e-07/0.6638, allocations: 0 / 0.7381 GB, free: 15.06 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3572/1.021, allocations: 36.96 MB / 0.7742 GB, free: 141.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.41/15.43, allocations: 8.5 kB / 0.7742 GB, free: 141.4 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe 2>&1)