Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",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.005216/0.005216, allocations: 102 kB / 15.73 MB, free: 6.062 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.351/1.351, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001494/0.001494, allocations: 192.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4872/0.4872, allocations: 78.54 MB / 418.4 MB, free: 3.129 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001767/0.001767, allocations: 79.88 kB / 0.5532 GB, free: 1.406 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.36, allocations: 68.17 MB / 0.6197 GB, free: 9.285 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.006387/0.3665, allocations: 6.57 MB / 0.6262 GB, free: 3.535 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003632/0.3701, allocations: 1.958 MB / 0.6281 GB, free: 1.57 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004678/0.3706, allocations: 11.94 kB / 0.6281 GB, free: 1.559 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006456/0.3713, allocations: 246 kB / 0.6283 GB, free: 1.316 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001672/0.373, allocations: 0.8423 MB / 0.6291 GB, free: 484 kB / 430.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.001139/0.3741, allocations: 0.6361 MB / 0.6298 GB, free: 15.84 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001595/0.3758, allocations: 1.585 MB / 0.6313 GB, free: 14.25 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000441/0.3762, allocations: 326.4 kB / 0.6316 GB, free: 13.92 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008073/0.377, allocations: 0.6613 MB / 0.6323 GB, free: 13.26 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008553/0.3779, allocations: 0.8206 MB / 0.6331 GB, free: 12.43 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000185/0.3781, allocations: 120 kB / 0.6332 GB, free: 12.32 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004798/0.3786, allocations: 255.9 kB / 0.6334 GB, free: 12.07 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002852/0.3789, allocations: 334.6 kB / 0.6337 GB, free: 11.74 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005447/0.3794, allocations: 0.6719 MB / 0.6344 GB, free: 11.06 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001605/0.381, allocations: 1.669 MB / 0.636 GB, free: 9.391 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.381, allocations: 3.984 kB / 0.636 GB, free: 9.387 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3811, allocations: 4 kB / 0.636 GB, free: 9.383 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.737e-05/0.3811, allocations: 0 / 0.636 GB, free: 9.383 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008672/0.3898, allocations: 2.722 MB / 0.6387 GB, free: 6.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.3898, allocations: 16.02 kB / 0.6387 GB, free: 6.574 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001622/0.39, allocations: 130.6 kB / 0.6388 GB, free: 6.438 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005039/0.395, allocations: 0.7757 MB / 0.6396 GB, free: 5.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001444/0.3965, allocations: 0.8874 MB / 0.6405 GB, free: 4.719 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002813/0.3968, allocations: 264.2 kB / 0.6407 GB, free: 4.422 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001727/0.397, allocations: 87.95 kB / 0.6408 GB, free: 4.336 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002112/0.3991, allocations: 1.094 MB / 0.6419 GB, free: 3.23 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.3991, allocations: 0 / 0.6419 GB, free: 3.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.34e-05/0.3992, allocations: 28 kB / 0.6419 GB, free: 3.203 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.3992, allocations: 16 kB / 0.6419 GB, free: 3.188 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001988/0.4012, allocations: 0.9877 MB / 0.6429 GB, free: 2.199 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.006501/0.4078, allocations: 3.809 MB / 0.6466 GB, free: 14.21 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00752/0.4153, allocations: 2.379 MB / 0.6489 GB, free: 11.74 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001549/0.4169, allocations: 0.68 MB / 0.6496 GB, free: 11.06 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001049/0.417, allocations: 24.98 kB / 0.6496 GB, free: 11.04 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001774/0.4188, allocations: 0.8152 MB / 0.6504 GB, free: 10.2 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 2.875e-06/0.4188, allocations: 0 / 0.6504 GB, free: 10.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.02895/0.4477, allocations: 7.09 MB / 0.6573 GB, free: 3.047 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.6e-05/0.4479, allocations: 119.8 kB / 0.6574 GB, free: 2.906 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001982/0.4499, allocations: 1.091 MB / 0.6585 GB, free: 1.801 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002569/0.4501, allocations: 45.7 kB / 0.6585 GB, free: 1.75 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004723/0.4506, allocations: 497.5 kB / 0.659 GB, free: 1.258 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006005/0.4512, allocations: 372.9 kB / 0.6594 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007746/0.452, allocations: 291.5 kB / 0.6596 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.847e-05/0.4521, allocations: 301.1 kB / 0.6599 GB, free: 312 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001761/0.4539, allocations: 0.7574 MB / 0.6607 GB, free: 15.55 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001926/0.4558, allocations: 0.942 MB / 0.6616 GB, free: 14.56 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02455/0.4804, allocations: 5.579 MB / 0.667 GB, free: 8.898 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.184e-05/0.4805, allocations: 0 / 0.667 GB, free: 8.898 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.0149/0.4954, allocations: 4.34 MB / 0.6713 GB, free: 4.531 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.069e-05/0.4955, allocations: 59.41 kB / 0.6713 GB, free: 4.461 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/0.4955, allocations: 4 kB / 0.6713 GB, free: 4.457 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005662/0.5012, allocations: 1.52 MB / 0.6728 GB, free: 2.934 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001571/0.5028, allocations: 295.6 kB / 0.6731 GB, free: 2.645 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02111/0.5239, allocations: 8.277 MB / 0.6812 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002275/0.5262, allocations: 207 kB / 0.6814 GB, free: 10.01 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003643/0.5266, allocations: 55.97 kB / 0.6814 GB, free: 9.953 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.001096/0.5278, allocations: 296.3 kB / 0.6817 GB, free: 9.648 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005672/0.5283, allocations: 135.1 kB / 0.6818 GB, free: 9.516 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01344/0.5418, allocations: 3.873 MB / 0.6856 GB, free: 5.605 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.197e-05/0.5418, allocations: 12 kB / 0.6856 GB, free: 5.594 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.329e-05/0.5419, allocations: 8 kB / 0.6857 GB, free: 5.586 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-05/0.5419, allocations: 3.984 kB / 0.6857 GB, free: 5.582 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.01662/0.5585, allocations: 5.464 MB / 0.691 GB, free: 12 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.22e-05/0.5586, allocations: 4 kB / 0.691 GB, free: 8 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007717/0.5594, allocations: 95.89 kB / 0.6911 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005861/0.5653, allocations: 1.614 MB / 0.6927 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002374/0.5656, allocations: 16 kB / 0.6927 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02237/0.5879, allocations: 9.612 MB / 0.7021 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.588, allocations: 3.938 kB / 0.7021 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0154/0.6034, allocations: 4.743 MB / 0.7067 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005328/0.604, allocations: 239.9 kB / 0.7069 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003857/0.6044, allocations: 16 kB / 0.7069 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001363/0.6057, allocations: 107.9 kB / 0.707 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006478/0.6064, allocations: 200.8 kB / 0.7072 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.6065, allocations: 24 kB / 0.7073 GB, free: 15 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001348/0.6079, allocations: 0.7312 MB / 0.708 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.4e-07/0.6079, allocations: 0 / 0.708 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001754/0.6097, allocations: 479.6 kB / 0.7084 GB, free: 13.8 MB / 0.5137 GB 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.01603/0.6257, allocations: 5.333 MB / 0.7136 GB, free: 8.418 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007184/0.6329, allocations: 2.505 MB / 0.7161 GB, free: 5.867 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.633, allocations: 0 / 0.7161 GB, free: 5.867 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005051/0.638, allocations: 1.626 MB / 0.7177 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001475/0.6395, allocations: 112.3 kB / 0.7178 GB, free: 4.102 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04383/0.6834, allocations: 16.05 MB / 0.7335 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009625/0.6844, allocations: 1.12 MB / 0.7345 GB, free: 2.676 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0008466/0.6853, allocations: 120.1 kB / 0.7347 GB, free: 2.555 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001041/0.6863, allocations: 471.3 kB / 0.7351 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of SimCode: time 1.072e-06/0.6864, allocations: 0 / 0.7351 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07374/0.7601, allocations: 34.24 MB / 0.7686 GB, free: 48 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.37/15.13, allocations: 19.52 kB / 0.7686 GB, free: 32 kB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)