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.0009634/0.0009633, allocations: 98.53 kB / 15.05 MB, free: 1.105 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.488/1.488, allocations: 223.2 MB / 238.9 MB, free: 5.477 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.001216/0.001216, allocations: 185 kB / 290.2 MB, free: 2.16 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4473/0.4473, allocations: 78.53 MB / 419.8 MB, free: 4.301 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003856/0.0003857, allocations: 12 kB / 499.7 MB, free: 6.273 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1434, allocations: 69.36 MB / 0.5558 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.2871/0.4305, allocations: 5.72 MB / 0.5614 GB, free: 36.78 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004396/0.435, allocations: 1.942 MB / 0.5633 GB, free: 36.51 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008852/0.4359, allocations: 12.47 kB / 0.5633 GB, free: 36.51 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007254/0.4366, allocations: 170.9 kB / 0.5634 GB, free: 36.45 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001963/0.4386, allocations: 0.7129 MB / 0.5641 GB, free: 36.37 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.001157/0.4398, allocations: 0.5165 MB / 0.5646 GB, free: 36.35 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001461/0.4412, allocations: 0.9974 MB / 0.5656 GB, free: 36.3 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003894/0.4416, allocations: 258.5 kB / 0.5658 GB, free: 36.26 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007013/0.4424, allocations: 0.5631 MB / 0.5664 GB, free: 36.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007406/0.4431, allocations: 0.7101 MB / 0.5671 GB, free: 35.95 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001211/0.4432, allocations: 61.06 kB / 0.5671 GB, free: 35.95 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004719/0.4437, allocations: 168.8 kB / 0.5673 GB, free: 35.95 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002678/0.444, allocations: 254.5 kB / 0.5676 GB, free: 35.87 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001944/0.4442, allocations: 227.2 kB / 0.5678 GB, free: 35.8 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000929/0.4451, allocations: 1.187 MB / 0.5689 GB, free: 35.61 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.4451, allocations: 1.125 kB / 0.5689 GB, free: 35.61 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4452, allocations: 2.281 kB / 0.5689 GB, free: 35.61 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.4452, allocations: 0 / 0.5689 GB, free: 35.61 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.007791/0.453, allocations: 2.511 MB / 0.5714 GB, free: 34.67 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.453, allocations: 8.531 kB / 0.5714 GB, free: 34.67 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002241/0.4533, allocations: 127.5 kB / 0.5715 GB, free: 34.63 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004814/0.4581, allocations: 0.7849 MB / 0.5723 GB, free: 34.54 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001515/0.4596, allocations: 0.8509 MB / 0.5731 GB, free: 34.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002616/0.4599, allocations: 266.7 kB / 0.5734 GB, free: 33.97 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.46, allocations: 85.47 kB / 0.5734 GB, free: 33.97 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002059/0.4621, allocations: 1.128 MB / 0.5745 GB, free: 33.88 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.4621, allocations: 3 kB / 0.5746 GB, free: 33.88 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.4623, allocations: 32.12 kB / 0.5746 GB, free: 33.88 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.023e-05/0.4623, allocations: 22.02 kB / 0.5746 GB, free: 33.88 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001923/0.4642, allocations: 1.054 MB / 0.5756 GB, free: 33.54 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.0062/0.4704, allocations: 4.096 MB / 0.5796 GB, free: 31.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007422/0.4779, allocations: 2.92 MB / 0.5825 GB, free: 30.2 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001664/0.4781, allocations: 20.14 kB / 0.5825 GB, free: 30.19 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001845/0.4799, allocations: 0.8649 MB / 0.5833 GB, free: 29.87 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.635e-06/0.4799, allocations: 0 / 0.5833 GB, free: 29.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03104/0.511, allocations: 8.636 MB / 0.5918 GB, free: 28.31 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.337e-05/0.5111, allocations: 119.2 kB / 0.5919 GB, free: 28.18 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002045/0.5131, allocations: 1.068 MB / 0.5929 GB, free: 27.74 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003221/0.5135, allocations: 46.23 kB / 0.593 GB, free: 27.69 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003966/0.5139, allocations: 495.3 kB / 0.5935 GB, free: 27.3 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004452/0.5143, allocations: 353.6 kB / 0.5938 GB, free: 27.03 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.807e-05/0.5144, allocations: 29.53 kB / 0.5938 GB, free: 27.01 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.5146, allocations: 369.9 kB / 0.5942 GB, free: 26.67 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001752/0.5163, allocations: 0.8133 MB / 0.595 GB, free: 26.39 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001885/0.5182, allocations: 0.9954 MB / 0.5959 GB, free: 25.94 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001915/0.5201, allocations: 0.9589 MB / 0.5969 GB, free: 25.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.139e-05/0.5202, allocations: 5.453 kB / 0.5969 GB, free: 25.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01602/0.5362, allocations: 5.16 MB / 0.6019 GB, free: 24.22 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.778e-05/0.5363, allocations: 61.64 kB / 0.602 GB, free: 24.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.289e-05/0.5364, allocations: 4.328 kB / 0.602 GB, free: 24.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007317/0.5437, allocations: 1.897 MB / 0.6038 GB, free: 23.85 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001705/0.5454, allocations: 303 kB / 0.6041 GB, free: 23.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02183/0.5673, allocations: 9.445 MB / 0.6133 GB, free: 18.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002028/0.5694, allocations: 238.7 kB / 0.6136 GB, free: 18.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/0.5695, allocations: 55.97 kB / 0.6136 GB, free: 18.33 MB / 430.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 aVRTypeII.firstOrder2.y:VARIABLE(flow=false start = aVRTypeII.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" 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 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (164): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005835/0.5701, allocations: 312.9 kB / 0.6139 GB, free: 18.02 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00018/0.5703, allocations: 126.4 kB / 0.614 GB, free: 17.89 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0123/0.5826, allocations: 4.705 MB / 0.6186 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.937e-05/0.5826, allocations: 16 kB / 0.6187 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.378e-05/0.5827, allocations: 4 kB / 0.6187 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.023e-05/0.5827, allocations: 7.938 kB / 0.6187 GB, free: 13.13 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 postOpt removeSimpleEquations (simulation): time 0.01417/0.5969, allocations: 6.344 MB / 0.6249 GB, free: 6.664 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/0.5969, allocations: 4.031 kB / 0.6249 GB, free: 6.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006195/0.5976, allocations: 101 kB / 0.625 GB, free: 6.562 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005361/0.6029, allocations: 1.889 MB / 0.6268 GB, free: 4.668 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001778/0.6031, allocations: 19.98 kB / 0.6268 GB, free: 4.648 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01964/0.6228, allocations: 10.09 MB / 0.6367 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.6228, allocations: 3.953 kB / 0.6367 GB, free: 10.28 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01578/0.6386, allocations: 5.648 MB / 0.6422 GB, free: 4.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006295/0.6393, allocations: 235.2 kB / 0.6424 GB, free: 4.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/0.6395, allocations: 16.94 kB / 0.6424 GB, free: 4.324 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/0.6407, allocations: 143.9 kB / 0.6426 GB, free: 4.184 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006434/0.6414, allocations: 196.7 kB / 0.6428 GB, free: 3.992 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.027e-05/0.6415, allocations: 27.98 kB / 0.6428 GB, free: 3.965 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001186/0.6427, allocations: 0.7235 MB / 0.6435 GB, free: 3.234 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6427, allocations: 0 / 0.6435 GB, free: 3.234 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001771/0.6445, allocations: 471.5 kB / 0.644 GB, free: 2.773 MB / 446.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(21,21.8%) 11} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01578/0.6603, allocations: 6.297 MB / 0.6501 GB, free: 12.42 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006697/0.667, allocations: 2.782 MB / 0.6528 GB, free: 9.609 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.6671, allocations: 4.188 kB / 0.6528 GB, free: 9.605 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0046/0.6717, allocations: 1.821 MB / 0.6546 GB, free: 7.746 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009677/0.6727, allocations: 94.48 kB / 0.6547 GB, free: 7.652 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00543/0.6781, allocations: 5.031 MB / 0.6596 GB, free: 2.559 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006215/0.6788, allocations: 1.147 MB / 0.6607 GB, free: 1.383 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004578/0.6792, allocations: 119.9 kB / 0.6608 GB, free: 1.266 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005939/0.6798, allocations: 467.3 kB / 0.6613 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of SimCode: time 1.373e-06/0.6798, allocations: 0 / 0.6613 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05339/0.7332, allocations: 31.16 MB / 0.6917 GB, free: 2.082 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001826/0.7335, allocations: 225.5 kB / 0.6919 GB, free: 1.832 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.713/3.446, allocations: 0 / 0.6919 GB, free: 1.832 MB / 494.1 MB (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/linux/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) Environment - environmentSimulation: