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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001728/0.001728, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.512/1.512, allocations: 230.6 MB / 252.6 MB, free: 8.301 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00173/0.00173, allocations: 228.6 kB / 309.2 MB, free: 3.125 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4854/0.4854, allocations: 79.73 MB / 445.4 MB, free: 14.84 MB / 318.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: OpenIPSL requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002827/0.002827, allocations: 84.25 kB / 0.5929 GB, free: 13.96 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.1914, allocations: 73.31 MB / 0.6645 GB, free: 4.559 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.01067/0.202, allocations: 6.619 MB / 0.671 GB, free: 13.91 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.00638/0.2084, allocations: 2.033 MB / 0.673 GB, free: 11.88 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001745/0.2102, allocations: 12 kB / 0.673 GB, free: 11.86 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001549/0.2117, allocations: 234 kB / 0.6732 GB, free: 11.63 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004313/0.216, allocations: 0.8721 MB / 0.6741 GB, free: 10.76 MB / 478.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.002038/0.2181, allocations: 0.6321 MB / 0.6747 GB, free: 10.14 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003376/0.2214, allocations: 1.623 MB / 0.6763 GB, free: 8.508 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007613/0.2222, allocations: 222.9 kB / 0.6765 GB, free: 8.277 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001801/0.224, allocations: 0.6886 MB / 0.6771 GB, free: 7.586 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001797/0.2258, allocations: 0.8362 MB / 0.678 GB, free: 6.746 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006147/0.2264, allocations: 124 kB / 0.6781 GB, free: 6.625 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001209/0.2276, allocations: 279.8 kB / 0.6783 GB, free: 6.352 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006816/0.2283, allocations: 330.6 kB / 0.6787 GB, free: 6.027 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001107/0.2294, allocations: 0.6757 MB / 0.6793 GB, free: 5.348 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002933/0.2323, allocations: 1.688 MB / 0.681 GB, free: 3.652 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.2324, allocations: 0 / 0.681 GB, free: 3.652 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2324, allocations: 0 / 0.681 GB, free: 3.652 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.91e-05/0.2324, allocations: 0 / 0.681 GB, free: 3.652 MB / 478.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.01068/0.2431, allocations: 2.82 MB / 0.6837 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.614e-05/0.2431, allocations: 11.98 kB / 0.6837 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000202/0.2433, allocations: 122.7 kB / 0.6839 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005635/0.249, allocations: 0.7993 MB / 0.6846 GB, free: 15.83 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002477/0.2515, allocations: 0.8307 MB / 0.6854 GB, free: 14.96 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004459/0.2519, allocations: 333.3 kB / 0.6858 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002327/0.2521, allocations: 84 kB / 0.6858 GB, free: 14.49 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/0.2546, allocations: 1.094 MB / 0.6869 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.2546, allocations: 0 / 0.6869 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.866e-05/0.2547, allocations: 24 kB / 0.6869 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.143e-05/0.2547, allocations: 20 kB / 0.687 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002293/0.257, allocations: 0.9916 MB / 0.6879 GB, free: 12.35 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 preOpt removeSimpleEquations (simulation): time 0.008033/0.2651, allocations: 3.762 MB / 0.6916 GB, free: 8.422 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007642/0.2727, allocations: 2.011 MB / 0.6936 GB, free: 6.387 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001815/0.2745, allocations: 0.6166 MB / 0.6942 GB, free: 5.766 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001366/0.2746, allocations: 16.97 kB / 0.6942 GB, free: 5.75 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001845/0.2765, allocations: 0.8216 MB / 0.695 GB, free: 4.91 MB / 494.1 MB Notification: Performance of pre-optimization done (n=96): time 3.436e-06/0.2765, allocations: 0 / 0.695 GB, free: 4.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=96): time 0.3565/0.633, allocations: 6.89 MB / 0.7017 GB, free: 34.69 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.125e-05/0.6331, allocations: 120.9 kB / 0.7018 GB, free: 34.56 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001827/0.6349, allocations: 1.084 MB / 0.7029 GB, free: 34.41 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003042/0.6352, allocations: 48.95 kB / 0.7029 GB, free: 34.38 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003666/0.6356, allocations: 0.4933 MB / 0.7034 GB, free: 34.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004461/0.6361, allocations: 372.2 kB / 0.7038 GB, free: 34.17 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005285/0.6366, allocations: 291.6 kB / 0.704 GB, free: 34.14 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.143e-05/0.6366, allocations: 303.1 kB / 0.7043 GB, free: 33.85 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001638/0.6383, allocations: 0.7623 MB / 0.7051 GB, free: 33.84 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001982/0.6403, allocations: 0.9366 MB / 0.706 GB, free: 33.72 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0259/0.6661, allocations: 5.796 MB / 0.7117 GB, free: 32.84 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.495e-05/0.6662, allocations: 1.281 kB / 0.7117 GB, free: 32.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01508/0.6812, allocations: 4.319 MB / 0.7159 GB, free: 31.71 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.59e-05/0.6813, allocations: 60.55 kB / 0.7159 GB, free: 31.64 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.882e-05/0.6813, allocations: 2.312 kB / 0.7159 GB, free: 31.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00534/0.6867, allocations: 1.509 MB / 0.7174 GB, free: 31.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001675/0.6883, allocations: 297.6 kB / 0.7177 GB, free: 31.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01834/0.7067, allocations: 8.168 MB / 0.7257 GB, free: 26.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00196/0.7086, allocations: 205.9 kB / 0.7259 GB, free: 26.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/0.7088, allocations: 61.94 kB / 0.7259 GB, free: 26.68 MB / 494.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 order2.delta:VARIABLE(flow=false start = order2.delta0 unit = \"rad\" fixed = true ) \"Rotor angle\" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = \"rad\" fixed = true ) \"Rotor angle\" 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 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006095/0.7094, allocations: 300 kB / 0.7262 GB, free: 26.43 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002553/0.7097, allocations: 134.5 kB / 0.7263 GB, free: 26.36 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01169/0.7214, allocations: 3.845 MB / 0.7301 GB, free: 24.38 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.751e-05/0.7214, allocations: 11 kB / 0.7301 GB, free: 24.38 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/0.7214, allocations: 6.875 kB / 0.7301 GB, free: 24.38 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.708e-05/0.7214, allocations: 3.984 kB / 0.7301 GB, free: 24.38 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.01355/0.735, allocations: 5.402 MB / 0.7354 GB, free: 21.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/0.735, allocations: 0.625 kB / 0.7354 GB, free: 21.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006287/0.7356, allocations: 99.02 kB / 0.7355 GB, free: 21.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005004/0.7406, allocations: 1.606 MB / 0.7371 GB, free: 20.19 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002269/0.7409, allocations: 20 kB / 0.7371 GB, free: 20.17 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01781/0.7587, allocations: 9.425 MB / 0.7463 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.7587, allocations: 3.938 kB / 0.7463 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01324/0.7719, allocations: 4.723 MB / 0.7509 GB, free: 5.789 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005377/0.7724, allocations: 155.4 kB / 0.751 GB, free: 5.648 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003147/0.7728, allocations: 16 kB / 0.7511 GB, free: 5.633 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.774, allocations: 115.9 kB / 0.7512 GB, free: 5.52 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006411/0.7746, allocations: 197.3 kB / 0.7514 GB, free: 5.328 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.819e-05/0.7747, allocations: 31.98 kB / 0.7514 GB, free: 5.297 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001012/0.7757, allocations: 0.7274 MB / 0.7521 GB, free: 4.562 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7757, allocations: 0 / 0.7521 GB, free: 4.562 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001717/0.7774, allocations: 477.8 kB / 0.7525 GB, free: 4.109 MB / 494.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 (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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01409/0.7915, allocations: 5.311 MB / 0.7577 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007218/0.7987, allocations: 2.361 MB / 0.76 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.7988, allocations: 0 / 0.76 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004901/0.8037, allocations: 1.556 MB / 0.7616 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.805, allocations: 117 kB / 0.7617 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04207/0.8471, allocations: 16.04 MB / 0.7773 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008856/0.8479, allocations: 1.121 MB / 0.7784 GB, free: 9.305 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006747/0.8486, allocations: 117.1 kB / 0.7785 GB, free: 9.188 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007496/0.8494, allocations: 475.3 kB / 0.779 GB, free: 8.723 MB / 0.5137 GB Notification: Performance of SimCode: time 1.603e-06/0.8494, allocations: 0 / 0.779 GB, free: 8.723 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1006/0.95, allocations: 35.59 MB / 0.8137 GB, free: 5.309 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.53/17.48, allocations: 3.984 kB / 0.8138 GB, free: 5.305 MB / 0.545 GB " [Timeout remaining time 642] (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/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --stepSize=0.008 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.14665658189915] Failed to read output from testmodel.py, exit status != 0: 17.630157387116924 17.645403667 17.409491519 Calling exit ...