Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.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.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_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.001315/0.001314, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 239.2 MB, free: 4.598 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.001753/0.001753, allocations: 192.5 kB / 289.6 MB, free: 2.316 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5239/0.5239, allocations: 91.89 MB / 431.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 79.88 kB / 0.502 GB, free: 7.629 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3134, allocations: 71.27 MB / 0.5716 GB, free: 36.75 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.005518/0.319, allocations: 6.667 MB / 0.5781 GB, free: 32.87 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00317/0.3222, allocations: 1.998 MB / 0.58 GB, free: 31.46 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005396/0.3227, allocations: 10.22 kB / 0.58 GB, free: 31.46 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005988/0.3233, allocations: 243.6 kB / 0.5803 GB, free: 31.32 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001596/0.325, allocations: 0.8025 MB / 0.5811 GB, free: 30.81 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.326, allocations: 0.6425 MB / 0.5817 GB, free: 30.48 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001135/0.3271, allocations: 1.625 MB / 0.5833 GB, free: 29.69 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003778/0.3275, allocations: 324.6 kB / 0.5836 GB, free: 29.56 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000638/0.3282, allocations: 0.6805 MB / 0.5842 GB, free: 29.22 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007425/0.3289, allocations: 0.8536 MB / 0.5851 GB, free: 28.82 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001812/0.3291, allocations: 128 kB / 0.5852 GB, free: 28.82 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004375/0.3296, allocations: 273.6 kB / 0.5855 GB, free: 28.77 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002165/0.3298, allocations: 342.7 kB / 0.5858 GB, free: 28.55 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004244/0.3302, allocations: 0.6844 MB / 0.5865 GB, free: 28.09 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001191/0.3314, allocations: 1.69 MB / 0.5881 GB, free: 27.33 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3314, allocations: 3.938 kB / 0.5881 GB, free: 27.32 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3314, allocations: 0 / 0.5881 GB, free: 27.32 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.892e-05/0.3315, allocations: 1.125 kB / 0.5881 GB, free: 27.32 MB / 430.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.008768/0.3402, allocations: 2.755 MB / 0.5908 GB, free: 26.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.3403, allocations: 8.906 kB / 0.5908 GB, free: 26.04 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001366/0.3404, allocations: 127.7 kB / 0.5909 GB, free: 25.95 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004895/0.3453, allocations: 0.772 MB / 0.5917 GB, free: 25.79 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001326/0.3467, allocations: 0.9137 MB / 0.5926 GB, free: 25.18 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002275/0.3469, allocations: 257 kB / 0.5928 GB, free: 24.96 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001545/0.3471, allocations: 87.97 kB / 0.5929 GB, free: 24.93 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001997/0.3491, allocations: 1.101 MB / 0.594 GB, free: 24.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.3491, allocations: 0 / 0.594 GB, free: 24.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.279e-05/0.3492, allocations: 34.73 kB / 0.594 GB, free: 24.48 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/0.3492, allocations: 21.66 kB / 0.594 GB, free: 24.48 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001957/0.3512, allocations: 0.9973 MB / 0.595 GB, free: 24.14 MB / 430.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.006225/0.3574, allocations: 3.881 MB / 0.5988 GB, free: 21.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007496/0.365, allocations: 2.384 MB / 0.6011 GB, free: 21.07 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001386/0.3664, allocations: 0.6878 MB / 0.6018 GB, free: 20.79 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.536e-05/0.3665, allocations: 16.84 kB / 0.6018 GB, free: 20.79 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001627/0.3681, allocations: 0.8332 MB / 0.6026 GB, free: 20.46 MB / 430.1 MB Notification: Performance of pre-optimization done (n=97): time 3.116e-06/0.3681, allocations: 0 / 0.6026 GB, free: 20.46 MB / 430.1 MB Notification: Performance of matching and sorting (n=97): time 0.02984/0.398, allocations: 7.223 MB / 0.6097 GB, free: 19.05 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.3981, allocations: 118.4 kB / 0.6098 GB, free: 18.93 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001784/0.3999, allocations: 1.129 MB / 0.6109 GB, free: 18.45 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001839/0.4, allocations: 46.27 kB / 0.6109 GB, free: 18.4 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002742/0.4003, allocations: 0.4957 MB / 0.6114 GB, free: 17.96 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000299/0.4006, allocations: 358.2 kB / 0.6118 GB, free: 17.65 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004781/0.4011, allocations: 295.8 kB / 0.6121 GB, free: 17.47 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.769e-05/0.4012, allocations: 305.1 kB / 0.6123 GB, free: 17.17 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00156/0.4027, allocations: 0.7791 MB / 0.6131 GB, free: 16.78 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/0.4044, allocations: 0.9599 MB / 0.614 GB, free: 16.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02353/0.4279, allocations: 5.814 MB / 0.6197 GB, free: 12.71 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.759e-06/0.428, allocations: 0 / 0.6197 GB, free: 12.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01288/0.4409, allocations: 4.453 MB / 0.6241 GB, free: 8.23 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.185e-05/0.4409, allocations: 61.44 kB / 0.6241 GB, free: 8.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.4409, allocations: 0 / 0.6241 GB, free: 8.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005547/0.4465, allocations: 1.639 MB / 0.6257 GB, free: 6.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/0.4478, allocations: 287.6 kB / 0.626 GB, free: 6.238 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01909/0.4669, allocations: 8.615 MB / 0.6344 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/0.4691, allocations: 210.6 kB / 0.6346 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002464/0.4694, allocations: 63.91 kB / 0.6347 GB, free: 13.19 MB / 446.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.0007779/0.4702, allocations: 303.9 kB / 0.635 GB, free: 12.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003564/0.4705, allocations: 122.5 kB / 0.6351 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01305/0.4836, allocations: 3.904 MB / 0.6389 GB, free: 8.824 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.315e-05/0.4836, allocations: 11.98 kB / 0.6389 GB, free: 8.812 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2e-05/0.4836, allocations: 8 kB / 0.6389 GB, free: 8.805 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.4837, allocations: 3.984 kB / 0.6389 GB, free: 8.801 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 postOpt removeSimpleEquations (simulation): time 0.01542/0.4991, allocations: 5.52 MB / 0.6443 GB, free: 3.172 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.4991, allocations: 0 / 0.6443 GB, free: 3.172 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006455/0.4998, allocations: 107.8 kB / 0.6444 GB, free: 3.066 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005814/0.5056, allocations: 1.591 MB / 0.646 GB, free: 1.469 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001301/0.5058, allocations: 20 kB / 0.646 GB, free: 1.449 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0209/0.5267, allocations: 9.665 MB / 0.6554 GB, free: 7.492 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5267, allocations: 0 / 0.6554 GB, free: 7.492 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01488/0.5416, allocations: 4.772 MB / 0.6601 GB, free: 2.688 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005172/0.5422, allocations: 227.2 kB / 0.6603 GB, free: 2.445 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003559/0.5425, allocations: 23.94 kB / 0.6603 GB, free: 2.422 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/0.5439, allocations: 107.9 kB / 0.6604 GB, free: 2.316 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005882/0.5445, allocations: 196.7 kB / 0.6606 GB, free: 2.121 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.762e-05/0.5446, allocations: 31.98 kB / 0.6606 GB, free: 2.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001288/0.5459, allocations: 0.7553 MB / 0.6614 GB, free: 1.328 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.843e-06/0.5459, allocations: 112 / 0.6614 GB, free: 1.328 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001615/0.5476, allocations: 495.5 kB / 0.6619 GB, free: 0.8438 MB / 462.1 MB 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.01491/0.5625, allocations: 5.355 MB / 0.6671 GB, free: 11.44 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00729/0.5698, allocations: 2.636 MB / 0.6697 GB, free: 8.77 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.5698, allocations: 0 / 0.6697 GB, free: 8.77 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004271/0.5741, allocations: 1.594 MB / 0.6712 GB, free: 7.133 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.5754, allocations: 111.1 kB / 0.6713 GB, free: 7.023 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04086/0.6162, allocations: 17.3 MB / 0.6882 GB, free: 5.27 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008183/0.6171, allocations: 1.136 MB / 0.6893 GB, free: 4.105 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005651/0.6177, allocations: 112.1 kB / 0.6894 GB, free: 3.992 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007145/0.6184, allocations: 479.3 kB / 0.6899 GB, free: 3.527 MB / 494.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6184, allocations: 4 kB / 0.6899 GB, free: 3.523 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06374/0.6822, allocations: 34.74 MB / 0.7238 GB, free: 0.9805 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.93, allocations: 8.062 kB / 0.7238 GB, free: 0.9727 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)