Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.KundurSMIB.SMIB.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.KundurSMIB.SMIB,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_KundurSMIB_SMIB",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.KundurSMIB.SMIB,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_KundurSMIB_SMIB",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.001382/0.001382, allocations: 108.6 kB / 15.73 MB, free: 72 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.29/1.29, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001683/0.001683, allocations: 180.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4573/0.4573, allocations: 78.54 MB / 418.4 MB, free: 3.121 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 75.89 kB / 0.5531 GB, free: 1.523 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.3516, allocations: 68.17 MB / 0.6197 GB, free: 9.492 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.KundurSMIB.SMIB): time 0.005507/0.3571, allocations: 4.903 MB / 0.6245 GB, free: 5.387 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002719/0.3599, allocations: 1.603 MB / 0.626 GB, free: 3.781 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004089/0.3603, allocations: 8 kB / 0.6261 GB, free: 3.773 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004013/0.3607, allocations: 150.7 kB / 0.6262 GB, free: 3.625 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Branches/PSAT/TwoWindingTransformer.mo:44:3-44:83:writable] Warning: In relation transformer.m <> 1.0, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeBindings: time 0.001314/0.3621, allocations: 0.6701 MB / 0.6269 GB, free: 2.953 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006904/0.3628, allocations: 440.5 kB / 0.6273 GB, free: 2.527 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008066/0.3636, allocations: 1.086 MB / 0.6283 GB, free: 1.438 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002822/0.3639, allocations: 206 kB / 0.6285 GB, free: 1.223 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004154/0.3643, allocations: 450.2 kB / 0.629 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000455/0.3648, allocations: 0.5524 MB / 0.6295 GB, free: 232 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.621e-05/0.3649, allocations: 100 kB / 0.6296 GB, free: 132 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003896/0.3653, allocations: 231.9 kB / 0.6298 GB, free: 15.9 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001855/0.3655, allocations: 239 kB / 0.63 GB, free: 15.67 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003529/0.3658, allocations: 481.4 kB / 0.6305 GB, free: 15.2 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001201/0.367, allocations: 1.254 MB / 0.6317 GB, free: 13.94 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.367, allocations: 4 kB / 0.6317 GB, free: 13.94 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.367, allocations: 0 / 0.6317 GB, free: 13.94 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.73e-05/0.3671, allocations: 0 / 0.6317 GB, free: 13.94 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.005555/0.3726, allocations: 1.779 MB / 0.6335 GB, free: 12.1 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.242e-05/0.3727, allocations: 15.97 kB / 0.6335 GB, free: 12.09 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000159/0.3729, allocations: 94.7 kB / 0.6336 GB, free: 11.98 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003614/0.3765, allocations: 0.5228 MB / 0.6341 GB, free: 11.46 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.3777, allocations: 0.6515 MB / 0.6347 GB, free: 10.77 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001886/0.3779, allocations: 146.1 kB / 0.6349 GB, free: 10.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.378, allocations: 48 kB / 0.6349 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.3794, allocations: 0.6545 MB / 0.6355 GB, free: 9.898 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.3794, allocations: 0 / 0.6355 GB, free: 9.898 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.703e-05/0.3795, allocations: 24 kB / 0.6356 GB, free: 9.875 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.3795, allocations: 15.94 kB / 0.6356 GB, free: 9.859 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.3808, allocations: 0.6286 MB / 0.6362 GB, free: 9.23 MB / 446.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.004832/0.3856, allocations: 2.624 MB / 0.6388 GB, free: 6.488 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01209/0.3977, allocations: 2.82 MB / 0.6415 GB, free: 3.625 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009953/0.3988, allocations: 442.4 kB / 0.6419 GB, free: 3.188 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.397e-05/0.3989, allocations: 12.56 kB / 0.6419 GB, free: 3.172 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.3989, allocations: 39.12 kB / 0.642 GB, free: 3.125 MB / 446.1 MB Notification: Performance of pre-optimization done (n=57): time 3.085e-06/0.3989, allocations: 0 / 0.642 GB, free: 3.125 MB / 446.1 MB Notification: Performance of matching and sorting (n=57): time 0.01244/0.4114, allocations: 3.532 MB / 0.6454 GB, free: 15.52 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/0.4115, allocations: 55.97 kB / 0.6455 GB, free: 15.46 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/0.4127, allocations: 0.7701 MB / 0.6462 GB, free: 14.68 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/0.4128, allocations: 33.7 kB / 0.6463 GB, free: 14.64 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000273/0.4131, allocations: 357 kB / 0.6466 GB, free: 14.29 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002557/0.4133, allocations: 226.1 kB / 0.6468 GB, free: 14.07 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000383/0.4137, allocations: 174.6 kB / 0.647 GB, free: 13.89 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.4139, allocations: 386.8 kB / 0.6474 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009937/0.4149, allocations: 0.4978 MB / 0.6478 GB, free: 13.01 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.416, allocations: 0.5914 MB / 0.6484 GB, free: 12.39 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01548/0.4315, allocations: 3.564 MB / 0.6519 GB, free: 8.797 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.4315, allocations: 0 / 0.6519 GB, free: 8.797 MB / 462.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.00761/0.4391, allocations: 2.4 MB / 0.6543 GB, free: 6.379 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.4392, allocations: 8 kB / 0.6543 GB, free: 6.371 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.4392, allocations: 0 / 0.6543 GB, free: 6.371 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004268/0.4435, allocations: 1.047 MB / 0.6553 GB, free: 5.316 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000857/0.4444, allocations: 147.8 kB / 0.6554 GB, free: 5.172 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/0.4555, allocations: 5.083 MB / 0.6604 GB, free: 15.93 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.4569, allocations: 107.4 kB / 0.6605 GB, free: 15.83 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001564/0.457, allocations: 31.98 kB / 0.6605 GB, free: 15.8 MB / 478.1 MB Warning: Assuming fixed start value for the following 2 variables: G1.machine.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real G1.machine.delta:VARIABLE(flow=false start = G1.machine.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,13,59.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006311/0.4577, allocations: 226.1 kB / 0.6607 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002739/0.458, allocations: 87.42 kB / 0.6608 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006078/0.464, allocations: 1.941 MB / 0.6627 GB, free: 13.52 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.4641, allocations: 4 kB / 0.6627 GB, free: 13.52 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.568e-05/0.4641, allocations: 4 kB / 0.6627 GB, free: 13.51 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.4641, allocations: 3.984 kB / 0.6627 GB, free: 13.51 MB / 478.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.007661/0.4718, allocations: 3.044 MB / 0.6657 GB, free: 10.38 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.4718, allocations: 0 / 0.6657 GB, free: 10.38 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004763/0.4723, allocations: 63.91 kB / 0.6658 GB, free: 10.31 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003361/0.4757, allocations: 0.9323 MB / 0.6667 GB, free: 9.371 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.403e-05/0.4758, allocations: 15.98 kB / 0.6667 GB, free: 9.355 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008419/0.4842, allocations: 4.11 MB / 0.6707 GB, free: 5.105 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4843, allocations: 7.875 kB / 0.6707 GB, free: 5.098 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00708/0.4913, allocations: 2.519 MB / 0.6732 GB, free: 2.551 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003264/0.4917, allocations: 192.7 kB / 0.6733 GB, free: 2.344 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001967/0.4919, allocations: 12 kB / 0.6734 GB, free: 2.332 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008212/0.4927, allocations: 47.89 kB / 0.6734 GB, free: 2.285 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003254/0.4931, allocations: 128.4 kB / 0.6735 GB, free: 2.16 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.111e-05/0.4931, allocations: 16 kB / 0.6735 GB, free: 2.145 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007462/0.4939, allocations: 0.5186 MB / 0.6741 GB, free: 1.629 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4939, allocations: 0 / 0.6741 GB, free: 1.629 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0009688/0.4949, allocations: 295.8 kB / 0.6743 GB, free: 1.34 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (G1.machine.delta,G1.machine.w,G1.machine.e1q,G1.machine.e1d,G1.machine.e2q,G1.machine.e2d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(9,9,48.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007271/0.5022, allocations: 3.087 MB / 0.6773 GB, free: 14.21 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004599/0.5068, allocations: 1.73 MB / 0.679 GB, free: 12.43 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.778e-06/0.5068, allocations: 4 kB / 0.679 GB, free: 12.43 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002771/0.5096, allocations: 1.087 MB / 0.6801 GB, free: 11.28 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007224/0.5103, allocations: 62.94 kB / 0.6802 GB, free: 11.22 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02204/0.5324, allocations: 9.92 MB / 0.6899 GB, free: 1.117 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005713/0.533, allocations: 0.9382 MB / 0.6908 GB, free: 152 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003265/0.5333, allocations: 69.12 kB / 0.6908 GB, free: 80 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004969/0.5339, allocations: 291.4 kB / 0.6911 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of SimCode: time 9.31e-07/0.5339, allocations: 0 / 0.6911 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04926/0.5831, allocations: 21.52 MB / 0.7121 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.43, allocations: 10.86 kB / 0.7121 GB, free: 10.35 MB / 0.5137 GB (rm -f OpenIPSL_OpenIPSL.Examples.KundurSMIB.SMIB.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.KundurSMIB.SMIB.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.KundurSMIB.SMIB.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.KundurSMIB.SMIB.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.KundurSMIB.SMIB_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 OpenIPSL_OpenIPSL_Examples_KundurSMIB_SMIB.fmu > OpenIPSL_OpenIPSL.Examples.KundurSMIB.SMIB.pipe 2>&1)