Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_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.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_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.001604/0.001604, 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.349/1.349, allocations: 222.9 MB / 239.3 MB, free: 4.59 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.001592/0.001592, allocations: 191.6 kB / 289.6 MB, free: 2.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.457/0.457, allocations: 78.53 MB / 418.2 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 75.88 kB / 497.6 MB, free: 6.344 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1365, allocations: 68.18 MB / 0.5525 GB, free: 2.129 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.2899/0.4265, allocations: 6.498 MB / 0.5588 GB, free: 35.94 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003594/0.4301, allocations: 1.951 MB / 0.5607 GB, free: 35.4 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006318/0.4308, allocations: 14.62 kB / 0.5607 GB, free: 35.4 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007186/0.4315, allocations: 236.7 kB / 0.561 GB, free: 35.39 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001817/0.4334, allocations: 0.7928 MB / 0.5617 GB, free: 35.24 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001166/0.4345, allocations: 0.6287 MB / 0.5624 GB, free: 35.16 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001252/0.4358, allocations: 1.566 MB / 0.5639 GB, free: 34.95 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004151/0.4362, allocations: 326 kB / 0.5642 GB, free: 34.9 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006522/0.4369, allocations: 0.6542 MB / 0.5648 GB, free: 34.73 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007797/0.4377, allocations: 0.8312 MB / 0.5656 GB, free: 34.51 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001878/0.4379, allocations: 120.6 kB / 0.5658 GB, free: 34.51 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004627/0.4384, allocations: 259.8 kB / 0.566 GB, free: 34.5 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002258/0.4386, allocations: 325.6 kB / 0.5663 GB, free: 34.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000441/0.439, allocations: 0.6745 MB / 0.567 GB, free: 34.18 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001257/0.4403, allocations: 1.636 MB / 0.5686 GB, free: 33.8 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.4403, allocations: 3.938 kB / 0.5686 GB, free: 33.8 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.4403, allocations: 3.938 kB / 0.5686 GB, free: 33.79 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.853e-05/0.4403, allocations: 1.281 kB / 0.5686 GB, free: 33.79 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: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.008107/0.4485, allocations: 2.682 MB / 0.5712 GB, free: 32.82 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.4485, allocations: 10.59 kB / 0.5712 GB, free: 32.82 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001318/0.4487, allocations: 131.2 kB / 0.5713 GB, free: 32.78 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004716/0.4534, allocations: 0.7735 MB / 0.5721 GB, free: 32.68 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001515/0.4549, allocations: 0.8842 MB / 0.573 GB, free: 32.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002347/0.4552, allocations: 257.6 kB / 0.5732 GB, free: 32.09 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001625/0.4553, allocations: 84.98 kB / 0.5733 GB, free: 32.09 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002101/0.4575, allocations: 1.084 MB / 0.5743 GB, free: 32 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.4575, allocations: 3.938 kB / 0.5743 GB, free: 32 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.677e-05/0.4576, allocations: 30.88 kB / 0.5744 GB, free: 32 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.4576, allocations: 19.41 kB / 0.5744 GB, free: 32 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001965/0.4596, allocations: 0.9924 MB / 0.5754 GB, free: 31.99 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.006336/0.4659, allocations: 3.818 MB / 0.5791 GB, free: 30.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006997/0.4729, allocations: 2.365 MB / 0.5814 GB, free: 29.44 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001519/0.4745, allocations: 0.673 MB / 0.5821 GB, free: 29.17 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001307/0.4747, allocations: 23.14 kB / 0.5821 GB, free: 29.16 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001833/0.4765, allocations: 0.813 MB / 0.5829 GB, free: 28.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 5.571e-06/0.4765, allocations: 0 / 0.5829 GB, free: 28.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.02985/0.5064, allocations: 7.186 MB / 0.5899 GB, free: 27.46 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.823e-05/0.5065, allocations: 119.3 kB / 0.59 GB, free: 27.33 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002288/0.5088, allocations: 1.097 MB / 0.5911 GB, free: 26.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002111/0.509, allocations: 42.45 kB / 0.5911 GB, free: 26.83 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.5094, allocations: 495.1 kB / 0.5916 GB, free: 26.45 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004428/0.5099, allocations: 351.3 kB / 0.5919 GB, free: 26.17 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007027/0.5106, allocations: 284.9 kB / 0.5922 GB, free: 26.04 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.049e-05/0.5107, allocations: 301.1 kB / 0.5925 GB, free: 25.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001732/0.5124, allocations: 0.7592 MB / 0.5932 GB, free: 25.46 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0018/0.5142, allocations: 0.9274 MB / 0.5941 GB, free: 25.04 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02314/0.5374, allocations: 5.575 MB / 0.5996 GB, free: 23.29 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/0.5374, allocations: 1.312 kB / 0.5996 GB, free: 23.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01353/0.5509, allocations: 4.365 MB / 0.6038 GB, free: 22.1 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.073e-05/0.5511, allocations: 58 kB / 0.6039 GB, free: 22.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.957e-05/0.5511, allocations: 3.406 kB / 0.6039 GB, free: 22.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005833/0.5569, allocations: 1.59 MB / 0.6055 GB, free: 21.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.5584, allocations: 277.6 kB / 0.6057 GB, free: 21.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01818/0.5766, allocations: 8.507 MB / 0.614 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001943/0.5786, allocations: 207.3 kB / 0.6142 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002159/0.5788, allocations: 59.97 kB / 0.6143 GB, free: 15.38 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order3.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 order3.delta:VARIABLE(flow=false start = order3.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 (160): * Single equations (assignments): 157 * 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 {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007207/0.5795, allocations: 303 kB / 0.6146 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000345/0.5799, allocations: 122.5 kB / 0.6147 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01158/0.5915, allocations: 3.877 MB / 0.6185 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/0.5915, allocations: 8 kB / 0.6185 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.739e-05/0.5915, allocations: 8 kB / 0.6185 GB, free: 11.03 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.788e-05/0.5916, allocations: 3.984 kB / 0.6185 GB, free: 11.02 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.01343/0.605, allocations: 5.446 MB / 0.6238 GB, free: 5.469 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/0.6051, allocations: 3.969 kB / 0.6238 GB, free: 5.465 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005755/0.6056, allocations: 99.89 kB / 0.6239 GB, free: 5.367 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005113/0.6108, allocations: 1.608 MB / 0.6255 GB, free: 3.754 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001928/0.611, allocations: 25.48 kB / 0.6255 GB, free: 3.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01923/0.6302, allocations: 9.642 MB / 0.6349 GB, free: 9.793 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.6303, allocations: 1.062 kB / 0.6349 GB, free: 9.793 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01493/0.6452, allocations: 4.731 MB / 0.6395 GB, free: 5.027 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005579/0.6458, allocations: 215.3 kB / 0.6397 GB, free: 4.797 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004904/0.6463, allocations: 23.94 kB / 0.6398 GB, free: 4.773 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001531/0.6479, allocations: 107.9 kB / 0.6399 GB, free: 4.668 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006908/0.6486, allocations: 196.7 kB / 0.6401 GB, free: 4.473 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/0.6488, allocations: 23.98 kB / 0.6401 GB, free: 4.449 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001336/0.6501, allocations: 0.7392 MB / 0.6408 GB, free: 3.703 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6501, allocations: 4 kB / 0.6408 GB, free: 3.699 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001849/0.652, allocations: 467.5 kB / 0.6413 GB, free: 3.242 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,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 (63): * Single equations (assignments): 60 * 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.01495/0.6669, allocations: 5.314 MB / 0.6464 GB, free: 13.89 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007025/0.674, allocations: 2.56 MB / 0.6489 GB, free: 11.29 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.6741, allocations: 0 / 0.6489 GB, free: 11.29 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004481/0.6785, allocations: 1.59 MB / 0.6505 GB, free: 9.664 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001425/0.68, allocations: 118.8 kB / 0.6506 GB, free: 9.555 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04132/0.7214, allocations: 16.76 MB / 0.667 GB, free: 8.383 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008729/0.7223, allocations: 1.116 MB / 0.6681 GB, free: 7.238 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006783/0.723, allocations: 116.5 kB / 0.6682 GB, free: 7.125 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007424/0.7237, allocations: 479.3 kB / 0.6686 GB, free: 6.656 MB / 478.1 MB Notification: Performance of SimCode: time 3.707e-06/0.7237, allocations: 1.594 kB / 0.6686 GB, free: 6.656 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0701/0.7938, allocations: 33.86 MB / 0.7017 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.65/13.44, allocations: 13.09 kB / 0.7017 GB, free: 5.172 MB / 0.4981 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)