Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_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.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_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.001417/0.001417, 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.361/1.361, allocations: 222.9 MB / 239.3 MB, free: 4.629 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.001464/0.001464, allocations: 188.5 kB / 289.6 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4717/0.4717, allocations: 78.54 MB / 418.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001772, allocations: 75.88 kB / 497.6 MB, free: 6.363 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1324, allocations: 68.19 MB / 0.5525 GB, free: 2.141 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII): time 0.2288/0.3612, allocations: 13.81 MB / 0.566 GB, free: 31.48 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007658/0.3689, allocations: 3.509 MB / 0.5694 GB, free: 30.38 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002834/0.3718, allocations: 27.59 kB / 0.5694 GB, free: 30.38 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001601/0.3734, allocations: 0.5627 MB / 0.57 GB, free: 30.1 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004892/0.3783, allocations: 1.439 MB / 0.5714 GB, free: 29.36 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003406/0.3818, allocations: 1.527 MB / 0.5729 GB, free: 29.18 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004593/0.3864, allocations: 3.786 MB / 0.5766 GB, free: 28.33 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001538/0.3879, allocations: 0.9007 MB / 0.5774 GB, free: 28.12 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002275/0.3902, allocations: 1.556 MB / 0.579 GB, free: 27.7 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002329/0.3925, allocations: 2.001 MB / 0.5809 GB, free: 27.11 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000552/0.3931, allocations: 294.3 kB / 0.5812 GB, free: 27.11 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009321/0.394, allocations: 443.1 kB / 0.5816 GB, free: 27.06 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000476/0.3945, allocations: 0.7895 MB / 0.5824 GB, free: 26.54 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001241/0.3958, allocations: 1.653 MB / 0.584 GB, free: 25.41 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003389/0.3992, allocations: 3.998 MB / 0.5879 GB, free: 23.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3992, allocations: 1.25 kB / 0.5879 GB, free: 23.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3992, allocations: 0 / 0.5879 GB, free: 23.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001088/0.3993, allocations: 2.438 kB / 0.5879 GB, free: 23.57 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: 525 * Number of variables: 525 Notification: Performance of Generate backend data structure: time 0.02356/0.4229, allocations: 6.674 MB / 0.5944 GB, free: 20.92 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.423, allocations: 10.47 kB / 0.5944 GB, free: 20.92 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003791/0.4234, allocations: 314.9 kB / 0.5947 GB, free: 20.72 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01505/0.4384, allocations: 2.271 MB / 0.597 GB, free: 20.28 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004563/0.443, allocations: 1.909 MB / 0.5988 GB, free: 19.11 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006606/0.4437, allocations: 0.7238 MB / 0.5995 GB, free: 18.45 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005449/0.4443, allocations: 226.4 kB / 0.5997 GB, free: 18.38 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006465/0.4507, allocations: 3.051 MB / 0.6027 GB, free: 17.22 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.144e-05/0.4508, allocations: 7.875 kB / 0.6027 GB, free: 17.21 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00024/0.4511, allocations: 86.84 kB / 0.6028 GB, free: 17.14 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.353e-05/0.4511, allocations: 49.09 kB / 0.6029 GB, free: 17.14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006162/0.4573, allocations: 2.797 MB / 0.6056 GB, free: 16.2 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.0199/0.4772, allocations: 9.961 MB / 0.6153 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01087/0.4881, allocations: 4.221 MB / 0.6194 GB, free: 8.414 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004427/0.4926, allocations: 1.988 MB / 0.6214 GB, free: 7.391 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002596/0.4928, allocations: 44.08 kB / 0.6214 GB, free: 7.375 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004287/0.4971, allocations: 2.249 MB / 0.6236 GB, free: 5.746 MB / 430.1 MB Notification: Performance of pre-optimization done (n=250): time 4.248e-06/0.4972, allocations: 0 / 0.6236 GB, free: 5.746 MB / 430.1 MB Notification: Performance of matching and sorting (n=250): time 0.1237/0.6208, allocations: 28.82 MB / 0.6518 GB, free: 8.805 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/0.621, allocations: 184.2 kB / 0.6519 GB, free: 8.586 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004486/0.6255, allocations: 2.337 MB / 0.6542 GB, free: 6.23 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007824/0.6263, allocations: 73.7 kB / 0.6543 GB, free: 6.152 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/0.6274, allocations: 1.176 MB / 0.6554 GB, free: 4.965 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001491/0.6289, allocations: 0.8858 MB / 0.6563 GB, free: 4.066 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002418/0.6313, allocations: 0.566 MB / 0.6569 GB, free: 3.492 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.317e-05/0.6314, allocations: 306.3 kB / 0.6572 GB, free: 3.191 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004939/0.6364, allocations: 1.99 MB / 0.6591 GB, free: 1.199 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005119/0.6415, allocations: 2.362 MB / 0.6614 GB, free: 14.74 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05828/0.6998, allocations: 14.43 MB / 0.6755 GB, free: 108 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.972e-05/0.6999, allocations: 0.8125 kB / 0.6755 GB, free: 108 kB / 478.1 MB Notification: Performance of matching and sorting (n=425) (initialization): time 0.04608/0.746, allocations: 12.6 MB / 0.6878 GB, free: 3.434 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001289/0.7462, allocations: 120 kB / 0.6879 GB, free: 3.293 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.271e-05/0.7462, allocations: 4 kB / 0.6879 GB, free: 3.289 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02/0.7662, allocations: 5.442 MB / 0.6932 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003334/0.7696, allocations: 0.5773 MB / 0.6938 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06595/0.8356, allocations: 23.68 MB / 0.7169 GB, free: 5.438 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005285/0.8409, allocations: 0.493 MB / 0.7174 GB, free: 4.941 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008332/0.8418, allocations: 120 kB / 0.7175 GB, free: 4.824 MB / 0.5137 GB Warning: Assuming fixed start value for the following 6 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.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 (336): * Single equations (assignments): 331 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(63,27)} Notification: Performance of prepare postOptimizeDAE: time 0.002197/0.844, allocations: 0.5311 MB / 0.718 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001347/0.8454, allocations: 300.2 kB / 0.7183 GB, free: 3.98 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04198/0.8874, allocations: 11.95 MB / 0.73 GB, free: 7.926 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.614e-05/0.8874, allocations: 24 kB / 0.73 GB, free: 7.902 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.689e-05/0.8875, allocations: 20 kB / 0.73 GB, free: 7.883 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.779e-05/0.8876, allocations: 15.89 kB / 0.7301 GB, free: 7.867 MB / 0.5294 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.04971/0.9373, allocations: 15.59 MB / 0.7453 GB, free: 8.066 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.218e-05/0.9374, allocations: 0.9375 kB / 0.7453 GB, free: 8.066 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0018/0.9392, allocations: 251.6 kB / 0.7455 GB, free: 7.82 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01858/0.9578, allocations: 5.288 MB / 0.7507 GB, free: 2.523 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007538/0.9586, allocations: 57.86 kB / 0.7507 GB, free: 2.469 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2947/1.253, allocations: 24.95 MB / 0.7751 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.253, allocations: 2.312 kB / 0.7751 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04361/1.297, allocations: 14.34 MB / 0.7891 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/1.298, allocations: 417.2 kB / 0.7895 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007775/1.299, allocations: 45.31 kB / 0.7895 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003266/1.302, allocations: 301 kB / 0.7898 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001997/1.304, allocations: 0.5762 MB / 0.7904 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002258/1.304, allocations: 69.56 kB / 0.7905 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002322/1.307, allocations: 1.545 MB / 0.792 GB, free: 163 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.5e-07/1.307, allocations: 0 / 0.792 GB, free: 163 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003773/1.311, allocations: 1.192 MB / 0.7931 GB, free: 162.9 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 19 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,Syn2.e1d,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 (159): * Single equations (assignments): 154 * 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 {(66,22,7.7%)} * 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.04686/1.357, allocations: 14.98 MB / 0.8078 GB, free: 160.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02082/1.378, allocations: 6.903 MB / 0.8145 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/1.378, allocations: 3.969 kB / 0.8145 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01326/1.392, allocations: 4.426 MB / 0.8188 GB, free: 156.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004131/1.396, allocations: 273.7 kB / 0.8191 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1125/1.508, allocations: 46.52 MB / 0.8645 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001576/1.51, allocations: 1.822 MB / 0.8663 GB, free: 110.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001515/1.511, allocations: 267.9 kB / 0.8666 GB, free: 110.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001662/1.513, allocations: 1.245 MB / 0.8678 GB, free: 109 MB / 0.5606 GB Notification: Performance of SimCode: time 1.292e-06/1.513, allocations: 0 / 0.8678 GB, free: 109 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1191/1.632, allocations: 89.98 MB / 0.9556 GB, free: 19.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.77/15.4, allocations: 3.625 kB / 0.9556 GB, free: 19.5 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe 2>&1)