Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.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.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.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_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.0008559/0.0008559, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.448/1.448, allocations: 223.3 MB / 239.4 MB, free: 5.473 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.001226/0.001226, allocations: 176.5 kB / 290.6 MB, free: 2.152 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.6029/0.6029, allocations: 91.91 MB / 433.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004827/0.0004824, allocations: 12 kB / 0.5049 GB, free: 7.16 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4869/0.4874, allocations: 72.46 MB / 0.5756 GB, free: 36.81 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.0164/0.5038, allocations: 22.51 MB / 0.5976 GB, free: 20.25 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0121/0.5159, allocations: 5.124 MB / 0.6026 GB, free: 16.52 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005529/0.5215, allocations: 51.97 kB / 0.6027 GB, free: 16.52 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003171/0.5247, allocations: 0.6768 MB / 0.6033 GB, free: 16.25 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00896/0.5337, allocations: 1.718 MB / 0.605 GB, free: 15.05 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005736/0.5394, allocations: 1.913 MB / 0.6069 GB, free: 13.96 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.009407/0.5488, allocations: 5.43 MB / 0.6122 GB, free: 11.21 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002961/0.5518, allocations: 1.135 MB / 0.6133 GB, free: 10.63 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004449/0.5563, allocations: 2.056 MB / 0.6153 GB, free: 9.641 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005234/0.5615, allocations: 2.688 MB / 0.6179 GB, free: 8.352 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001998/0.5635, allocations: 234.2 kB / 0.6181 GB, free: 8.352 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00328/0.5668, allocations: 371.6 kB / 0.6185 GB, free: 8.312 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002158/0.569, allocations: 0.9278 MB / 0.6194 GB, free: 7.734 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006464/0.5755, allocations: 2.399 MB / 0.6217 GB, free: 6.164 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01145/0.587, allocations: 5.834 MB / 0.6274 GB, free: 3.891 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.587, allocations: 0 / 0.6274 GB, free: 3.891 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.587, allocations: 0 / 0.6274 GB, free: 3.891 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000294/0.5873, allocations: 0 / 0.6274 GB, free: 3.891 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: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.03335/0.6207, allocations: 8.396 MB / 0.6356 GB, free: 15.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.6207, allocations: 9.719 kB / 0.6357 GB, free: 15.91 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002077/0.6228, allocations: 485.5 kB / 0.6361 GB, free: 15.54 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0288/0.6516, allocations: 4.051 MB / 0.6401 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007158/0.6588, allocations: 2.658 MB / 0.6427 GB, free: 8.777 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001151/0.66, allocations: 0.9846 MB / 0.6436 GB, free: 7.652 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001407/0.6614, allocations: 351.9 kB / 0.644 GB, free: 7.309 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/0.6728, allocations: 4.993 MB / 0.6488 GB, free: 2.285 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.541e-05/0.6729, allocations: 4 kB / 0.6488 GB, free: 2.281 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004223/0.6734, allocations: 144 kB / 0.649 GB, free: 2.141 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.994e-05/0.6734, allocations: 84 kB / 0.6491 GB, free: 2.059 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01072/0.6841, allocations: 4.506 MB / 0.6535 GB, free: 13.54 MB / 462.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.04244/0.7266, allocations: 18.84 MB / 0.6719 GB, free: 9.531 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01556/0.7422, allocations: 5.738 MB / 0.6775 GB, free: 3.711 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007594/0.7499, allocations: 3.043 MB / 0.6804 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007895/0.7507, allocations: 74.89 kB / 0.6805 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009154/0.7599, allocations: 3.427 MB / 0.6839 GB, free: 13.11 MB / 494.1 MB Notification: Performance of pre-optimization done (n=383): time 9.007e-06/0.7599, allocations: 4 kB / 0.6839 GB, free: 13.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=383): time 0.3623/1.122, allocations: 81.84 MB / 0.7638 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/1.122, allocations: 149.8 kB / 0.7639 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008352/1.131, allocations: 3.218 MB / 0.7671 GB, free: 7.668 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001413/1.132, allocations: 85.7 kB / 0.7671 GB, free: 7.578 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002145/1.134, allocations: 1.967 MB / 0.7691 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.003018/1.137, allocations: 1.321 MB / 0.7704 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001695/1.139, allocations: 342.8 kB / 0.7707 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000126/1.139, allocations: 305.1 kB / 0.771 GB, free: 3.613 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008162/1.147, allocations: 2.851 MB / 0.7738 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3314/1.479, allocations: 3.474 MB / 0.7771 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.07904/1.558, allocations: 20.66 MB / 0.7973 GB, free: 156.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.474e-05/1.558, allocations: 4.344 kB / 0.7973 GB, free: 156.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.0696/1.628, allocations: 21.04 MB / 0.8179 GB, free: 151.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/1.628, allocations: 67.41 kB / 0.8179 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-05/1.628, allocations: 19.94 kB / 0.818 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02875/1.657, allocations: 8.481 MB / 0.8262 GB, free: 145.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003841/1.661, allocations: 0.6758 MB / 0.8269 GB, free: 144.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09477/1.755, allocations: 34.88 MB / 0.861 GB, free: 110.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008078/1.763, allocations: 0.7637 MB / 0.8617 GB, free: 110 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001389/1.765, allocations: 152 kB / 0.8619 GB, free: 109.8 MB / 0.5606 GB Warning: Assuming fixed start value for the following 5 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.e1q:VARIABLE(start = order3.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (403): * Single equations (assignments): 400 * 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 {(92,44,5.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004042/1.769, allocations: 0.6702 MB / 0.8625 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002043/1.771, allocations: 462.3 kB / 0.863 GB, free: 108.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06291/1.834, allocations: 20.63 MB / 0.8831 GB, free: 88.01 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.949e-05/1.834, allocations: 39.98 kB / 0.8831 GB, free: 87.97 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001182/1.834, allocations: 28 kB / 0.8832 GB, free: 87.95 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001318/1.834, allocations: 17.16 kB / 0.8832 GB, free: 87.93 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.0771/1.911, allocations: 25.65 MB / 0.9082 GB, free: 62.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.351e-05/1.912, allocations: 0 / 0.9082 GB, free: 62.22 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00271/1.914, allocations: 391.5 kB / 0.9086 GB, free: 61.84 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02884/1.943, allocations: 8.677 MB / 0.9171 GB, free: 53.14 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001679/1.945, allocations: 71.98 kB / 0.9171 GB, free: 53.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08938/2.034, allocations: 32.72 MB / 0.9491 GB, free: 20.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/2.034, allocations: 0 / 0.9491 GB, free: 20.07 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07485/2.109, allocations: 24.26 MB / 0.9728 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002691/2.112, allocations: 0.5726 MB / 0.9734 GB, free: 11.13 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00309/2.115, allocations: 64 kB / 0.9734 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007297/2.122, allocations: 0.4996 MB / 0.9739 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004565/2.127, allocations: 0.7685 MB / 0.9747 GB, free: 9.797 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001105/2.128, allocations: 98.64 kB / 0.9747 GB, free: 9.703 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005421/2.134, allocations: 2.105 MB / 0.9768 GB, free: 7.594 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.9e-07/2.134, allocations: 0 / 0.9768 GB, free: 7.594 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01205/2.146, allocations: 1.798 MB / 0.9786 GB, free: 5.793 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,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 (247): * Single equations (assignments): 244 * 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 {(98,38,5.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.4087/2.554, allocations: 24.94 MB / 1.003 GB, free: 172.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.03087/2.585, allocations: 10.3 MB / 1.013 GB, free: 171.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.288e-06/2.585, allocations: 1.25 kB / 1.013 GB, free: 171.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.02471/2.61, allocations: 7.046 MB / 1.02 GB, free: 169.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004356/2.614, allocations: 384 kB / 1.02 GB, free: 169.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2198/2.834, allocations: 77.97 MB / 1.096 GB, free: 119.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004561/2.839, allocations: 2.443 MB / 1.099 GB, free: 117.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.003047/2.842, allocations: 375.6 kB / 1.099 GB, free: 117.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003352/2.845, allocations: 1.965 MB / 1.101 GB, free: 115.6 MB / 0.5919 GB Notification: Performance of SimCode: time 1.683e-06/2.845, allocations: 0 / 1.101 GB, free: 115.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1849/3.03, allocations: 115.3 MB / 1.214 GB, free: 2.18 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001846/3.031, allocations: 235.5 kB / 1.214 GB, free: 1.93 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.291/9.322, allocations: 0 / 1.214 GB, free: 1.93 MB / 0.5919 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)