Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_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.005602/0.005602, allocations: 99.64 kB / 15.73 MB, free: 6.465 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.244/1.244, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001274/0.001274, allocations: 188.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4283/0.4283, allocations: 78.53 MB / 418.4 MB, free: 3.156 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 79.81 kB / 0.5532 GB, free: 1.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.3151, allocations: 68.17 MB / 0.6197 GB, free: 9.281 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.00583/0.321, allocations: 6.645 MB / 0.6262 GB, free: 3.477 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00371/0.3247, allocations: 1.994 MB / 0.6282 GB, free: 1.477 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.3259, allocations: 12 kB / 0.6282 GB, free: 1.465 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008035/0.3267, allocations: 241.9 kB / 0.6284 GB, free: 1.227 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001845/0.3286, allocations: 0.8199 MB / 0.6292 GB, free: 420 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.3297, allocations: 0.6291 MB / 0.6298 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001508/0.3312, allocations: 1.64 MB / 0.6314 GB, free: 14.14 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004196/0.3316, allocations: 332.7 kB / 0.6317 GB, free: 13.8 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006609/0.3323, allocations: 0.673 MB / 0.6324 GB, free: 13.13 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007989/0.3331, allocations: 0.8596 MB / 0.6332 GB, free: 12.27 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001543/0.3333, allocations: 128 kB / 0.6334 GB, free: 12.14 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004313/0.3337, allocations: 267.8 kB / 0.6336 GB, free: 11.88 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002494/0.334, allocations: 346.6 kB / 0.6339 GB, free: 11.54 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005035/0.3345, allocations: 0.6874 MB / 0.6346 GB, free: 10.85 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001394/0.3359, allocations: 1.713 MB / 0.6363 GB, free: 9.129 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3359, allocations: 0 / 0.6363 GB, free: 9.129 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3359, allocations: 4 kB / 0.6363 GB, free: 9.125 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.3359, allocations: 0 / 0.6363 GB, free: 9.125 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.0084/0.3443, allocations: 2.746 MB / 0.639 GB, free: 6.309 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3444, allocations: 8.031 kB / 0.639 GB, free: 6.301 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001407/0.3445, allocations: 126.7 kB / 0.6391 GB, free: 6.168 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00469/0.3492, allocations: 0.7788 MB / 0.6399 GB, free: 5.387 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001489/0.3507, allocations: 0.9139 MB / 0.6408 GB, free: 4.418 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002675/0.351, allocations: 256.2 kB / 0.641 GB, free: 4.129 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.3512, allocations: 91.89 kB / 0.6411 GB, free: 4.039 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002035/0.3532, allocations: 1.102 MB / 0.6422 GB, free: 2.926 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.3532, allocations: 3.938 kB / 0.6422 GB, free: 2.922 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001005/0.3533, allocations: 28 kB / 0.6422 GB, free: 2.895 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.704e-05/0.3534, allocations: 20 kB / 0.6422 GB, free: 2.875 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001924/0.3553, allocations: 0.9955 MB / 0.6432 GB, free: 1.879 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.006288/0.3616, allocations: 3.859 MB / 0.6469 GB, free: 13.84 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007217/0.3688, allocations: 2.391 MB / 0.6493 GB, free: 11.36 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/0.3703, allocations: 0.684 MB / 0.65 GB, free: 10.67 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001172/0.3705, allocations: 20.97 kB / 0.65 GB, free: 10.65 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001561/0.372, allocations: 0.8411 MB / 0.6508 GB, free: 9.785 MB / 462.1 MB Notification: Performance of pre-optimization done (n=97): time 3.126e-06/0.372, allocations: 0 / 0.6508 GB, free: 9.785 MB / 462.1 MB Notification: Performance of matching and sorting (n=97): time 0.02918/0.4012, allocations: 7.218 MB / 0.6578 GB, free: 2.504 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.02e-05/0.4014, allocations: 119.7 kB / 0.658 GB, free: 2.363 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001869/0.4032, allocations: 1.123 MB / 0.6591 GB, free: 1.227 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002364/0.4035, allocations: 45.69 kB / 0.6591 GB, free: 1.176 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003944/0.4039, allocations: 0.493 MB / 0.6596 GB, free: 0.6758 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004694/0.4044, allocations: 370.9 kB / 0.6599 GB, free: 316 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006181/0.405, allocations: 291.4 kB / 0.6602 GB, free: 20 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.4051, allocations: 301.1 kB / 0.6605 GB, free: 15.72 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001544/0.4067, allocations: 0.7769 MB / 0.6613 GB, free: 14.95 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/0.4083, allocations: 0.9577 MB / 0.6622 GB, free: 13.95 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02427/0.4326, allocations: 5.79 MB / 0.6678 GB, free: 8.07 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.4326, allocations: 0 / 0.6678 GB, free: 8.07 MB / 478.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01442/0.4471, allocations: 4.453 MB / 0.6722 GB, free: 3.586 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.938e-05/0.4472, allocations: 59.41 kB / 0.6723 GB, free: 3.516 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.453e-05/0.4472, allocations: 7.984 kB / 0.6723 GB, free: 3.508 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006214/0.4535, allocations: 1.635 MB / 0.6739 GB, free: 1.871 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001495/0.455, allocations: 287.5 kB / 0.6741 GB, free: 1.59 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02066/0.4757, allocations: 8.592 MB / 0.6825 GB, free: 8.848 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/0.4777, allocations: 214.5 kB / 0.6827 GB, free: 8.637 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002909/0.478, allocations: 55.98 kB / 0.6828 GB, free: 8.582 MB / 494.1 MB Warning: Assuming fixed start value for the following 5 variables: order5.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 order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.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 (167): * Single equations (assignments): 164 * 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.0008153/0.4788, allocations: 312.3 kB / 0.6831 GB, free: 8.258 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003439/0.4792, allocations: 122.5 kB / 0.6832 GB, free: 8.137 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0129/0.4921, allocations: 3.9 MB / 0.687 GB, free: 4.199 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.099e-05/0.4922, allocations: 12 kB / 0.687 GB, free: 4.188 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.391e-05/0.4922, allocations: 7.984 kB / 0.687 GB, free: 4.18 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.707e-05/0.4922, allocations: 11.92 kB / 0.687 GB, free: 4.168 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.01562/0.5079, allocations: 5.503 MB / 0.6924 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/0.5079, allocations: 4 kB / 0.6924 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007246/0.5087, allocations: 111.9 kB / 0.6925 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005794/0.5145, allocations: 1.587 MB / 0.6941 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002368/0.5147, allocations: 19.94 kB / 0.6941 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02072/0.5355, allocations: 9.659 MB / 0.7035 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.165e-06/0.5355, allocations: 0 / 0.7035 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01538/0.5509, allocations: 4.778 MB / 0.7082 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005277/0.5515, allocations: 227.2 kB / 0.7084 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003757/0.5519, allocations: 23.94 kB / 0.7084 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001418/0.5533, allocations: 107.9 kB / 0.7085 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006657/0.554, allocations: 192.7 kB / 0.7087 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001327/0.5541, allocations: 31.98 kB / 0.7087 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001337/0.5555, allocations: 0.7553 MB / 0.7095 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5555, allocations: 0 / 0.7095 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001701/0.5572, allocations: 495.5 kB / 0.7099 GB, free: 12.23 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.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 (65): * Single equations (assignments): 62 * 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 {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01563/0.5728, allocations: 5.355 MB / 0.7152 GB, free: 6.828 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007534/0.5804, allocations: 2.605 MB / 0.7177 GB, free: 4.18 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.5805, allocations: 0 / 0.7177 GB, free: 4.18 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0047/0.5852, allocations: 1.582 MB / 0.7193 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.5867, allocations: 119.3 kB / 0.7194 GB, free: 2.445 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04139/0.6281, allocations: 16.51 MB / 0.7355 GB, free: 1.711 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009574/0.6291, allocations: 1.128 MB / 0.7366 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0006728/0.6298, allocations: 116.1 kB / 0.7367 GB, free: 444 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008769/0.6307, allocations: 487.2 kB / 0.7372 GB, free: 15.96 MB / 0.545 GB Notification: Performance of SimCode: time 1.493e-06/0.6307, allocations: 0 / 0.7372 GB, free: 15.96 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3294/0.9601, allocations: 36.5 MB / 0.7728 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.56/14.52, allocations: 12.59 kB / 0.7728 GB, free: 140.7 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)