Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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.ThreeArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_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.004897/0.004897, allocations: 99.92 kB / 15.73 MB, free: 6.043 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.33/1.33, allocations: 222.9 MB / 239.4 MB, free: 4.566 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.001322/0.001322, allocations: 188.5 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4329/0.4329, allocations: 78.53 MB / 418.4 MB, free: 3.168 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 75.89 kB / 0.5532 GB, free: 1.441 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2826, allocations: 68.17 MB / 0.6198 GB, free: 9.395 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII): time 0.01001/0.2926, allocations: 13.77 MB / 0.6332 GB, free: 12.34 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00681/0.2995, allocations: 3.499 MB / 0.6366 GB, free: 8.832 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001822/0.3013, allocations: 28 kB / 0.6367 GB, free: 8.805 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00155/0.3029, allocations: 0.5654 MB / 0.6372 GB, free: 8.23 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004221/0.3071, allocations: 1.43 MB / 0.6386 GB, free: 6.801 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003622/0.3108, allocations: 1.516 MB / 0.6401 GB, free: 5.305 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004754/0.3155, allocations: 3.792 MB / 0.6438 GB, free: 1.496 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001385/0.3169, allocations: 0.8956 MB / 0.6447 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002076/0.319, allocations: 1.552 MB / 0.6462 GB, free: 14.99 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00251/0.3216, allocations: 1.995 MB / 0.6481 GB, free: 12.99 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009881/0.3226, allocations: 288 kB / 0.6484 GB, free: 12.71 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001346/0.3239, allocations: 443.9 kB / 0.6488 GB, free: 12.27 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008888/0.3248, allocations: 0.774 MB / 0.6496 GB, free: 11.5 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002142/0.327, allocations: 1.647 MB / 0.6512 GB, free: 9.84 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004494/0.3315, allocations: 4.017 MB / 0.6551 GB, free: 5.809 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3315, allocations: 0 / 0.6551 GB, free: 5.809 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.3315, allocations: 0 / 0.6551 GB, free: 5.809 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001107/0.3316, allocations: 0 / 0.6551 GB, free: 5.809 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.02444/0.3561, allocations: 6.645 MB / 0.6616 GB, free: 15.07 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.3561, allocations: 8.031 kB / 0.6616 GB, free: 15.06 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006617/0.3568, allocations: 307.3 kB / 0.6619 GB, free: 14.75 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01553/0.3723, allocations: 2.267 MB / 0.6641 GB, free: 12.47 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003957/0.3763, allocations: 1.91 MB / 0.666 GB, free: 10.5 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007551/0.3771, allocations: 0.7253 MB / 0.6667 GB, free: 9.656 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006267/0.3777, allocations: 219.9 kB / 0.6669 GB, free: 9.441 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006881/0.3846, allocations: 3.047 MB / 0.6699 GB, free: 6.316 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.155e-05/0.3847, allocations: 0 / 0.6699 GB, free: 6.316 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002898/0.385, allocations: 83.94 kB / 0.67 GB, free: 6.234 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.691e-05/0.385, allocations: 52 kB / 0.67 GB, free: 6.184 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006568/0.3916, allocations: 2.792 MB / 0.6727 GB, free: 3.375 MB / 478.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.02009/0.4117, allocations: 9.864 MB / 0.6824 GB, free: 9.086 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01158/0.4233, allocations: 4.203 MB / 0.6865 GB, free: 4.754 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004259/0.4276, allocations: 1.976 MB / 0.6884 GB, free: 2.773 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003086/0.428, allocations: 37.97 kB / 0.6884 GB, free: 2.734 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004842/0.4328, allocations: 2.244 MB / 0.6906 GB, free: 480 kB / 494.1 MB Notification: Performance of pre-optimization done (n=249): time 4.147e-06/0.4328, allocations: 0 / 0.6906 GB, free: 480 kB / 494.1 MB Notification: Performance of matching and sorting (n=249): time 0.1259/0.5587, allocations: 27.42 MB / 0.7174 GB, free: 4.918 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.5589, allocations: 188.3 kB / 0.7176 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003951/0.5628, allocations: 2.313 MB / 0.7199 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0006147/0.5635, allocations: 69.7 kB / 0.7199 GB, free: 2.293 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009504/0.5644, allocations: 1.172 MB / 0.7211 GB, free: 1.109 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001194/0.5656, allocations: 0.8819 MB / 0.7219 GB, free: 220 kB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001771/0.5674, allocations: 0.5697 MB / 0.7225 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.791e-05/0.5675, allocations: 301.1 kB / 0.7228 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004803/0.5723, allocations: 1.978 MB / 0.7247 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005098/0.5775, allocations: 2.338 MB / 0.727 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06027/0.6377, allocations: 14.24 MB / 0.7409 GB, free: 12.46 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.314e-05/0.6378, allocations: 3.938 kB / 0.7409 GB, free: 12.46 MB / 0.545 GB Notification: Performance of matching and sorting (n=421) (initialization): time 0.04571/0.6835, allocations: 12.55 MB / 0.7532 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001293/0.6837, allocations: 118.8 kB / 0.7533 GB, free: 15.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.024e-05/0.6837, allocations: 8 kB / 0.7533 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01984/0.7036, allocations: 5.249 MB / 0.7584 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003299/0.7069, allocations: 0.5851 MB / 0.759 GB, free: 9.844 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3145/1.021, allocations: 23.17 MB / 0.7816 GB, free: 121 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004355/1.026, allocations: 489.5 kB / 0.7821 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004668/1.026, allocations: 125.2 kB / 0.7822 GB, free: 120.9 MB / 0.5606 GB Warning: Assuming fixed start value for the following 7 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Syn2.delta:VARIABLE(flow=false start = Syn2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Syn2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (334): * Single equations (assignments): 329 * Array equations: 0 * Algorithm blocks: 4 * 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 {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001152/1.027, allocations: 0.5341 MB / 0.7827 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005402/1.028, allocations: 306.5 kB / 0.783 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.041/1.069, allocations: 11.92 MB / 0.7946 GB, free: 118 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.109e-05/1.069, allocations: 23.59 kB / 0.7947 GB, free: 118 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.597e-05/1.069, allocations: 19.75 kB / 0.7947 GB, free: 118 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.083e-05/1.069, allocations: 12.47 kB / 0.7947 GB, free: 118 MB / 0.5606 GB 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.04334/1.113, allocations: 15.56 MB / 0.8099 GB, free: 108.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.337e-05/1.113, allocations: 0 / 0.8099 GB, free: 108.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/1.114, allocations: 247.6 kB / 0.8101 GB, free: 108.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01713/1.131, allocations: 5.303 MB / 0.8153 GB, free: 103 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004829/1.132, allocations: 47.98 kB / 0.8154 GB, free: 103 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05642/1.188, allocations: 24.92 MB / 0.8397 GB, free: 77.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/1.188, allocations: 0 / 0.8397 GB, free: 77.62 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04417/1.233, allocations: 14.31 MB / 0.8537 GB, free: 63.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009046/1.233, allocations: 417.6 kB / 0.8541 GB, free: 62.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007577/1.234, allocations: 48 kB / 0.8541 GB, free: 62.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003161/1.237, allocations: 299.6 kB / 0.8544 GB, free: 62.45 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002001/1.239, allocations: 0.5763 MB / 0.855 GB, free: 61.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002279/1.24, allocations: 67.98 kB / 0.855 GB, free: 61.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001966/1.242, allocations: 1.531 MB / 0.8565 GB, free: 60.26 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.1e-07/1.242, allocations: 4 kB / 0.8565 GB, free: 60.26 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003186/1.245, allocations: 1.177 MB / 0.8577 GB, free: 59.08 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,Syn2.e2q,Syn2.e2d,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(67,21,7.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.04327/1.288, allocations: 14.95 MB / 0.8723 GB, free: 44.01 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01797/1.306, allocations: 6.664 MB / 0.8788 GB, free: 37.25 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/1.306, allocations: 3.5 kB / 0.8788 GB, free: 37.25 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01284/1.319, allocations: 4.427 MB / 0.8831 GB, free: 32.75 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00224/1.321, allocations: 265.8 kB / 0.8834 GB, free: 32.49 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1104/1.432, allocations: 42.09 MB / 0.9245 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002018/1.434, allocations: 1.811 MB / 0.9262 GB, free: 4.141 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001386/1.435, allocations: 270.6 kB / 0.9265 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00192/1.437, allocations: 1.241 MB / 0.9277 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of SimCode: time 1.062e-06/1.437, allocations: 0 / 0.9277 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1509/1.588, allocations: 92.01 MB / 1.018 GB, free: 6.801 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.11/19.7, allocations: 18.03 kB / 1.018 GB, free: 6.785 MB / 0.67 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe 2>&1)