Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",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.001329/0.001329, 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.424/1.424, allocations: 222.9 MB / 239.3 MB, free: 4.648 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.001568/0.001568, allocations: 192.4 kB / 289.5 MB, free: 2.367 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5127/0.5127, allocations: 78.53 MB / 418.2 MB, free: 3.156 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 79.88 kB / 497.6 MB, free: 6.324 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1589/0.1607, allocations: 68.18 MB / 0.5525 GB, free: 2.113 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.3092/0.4699, allocations: 6.202 MB / 0.5585 GB, free: 36.11 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004418/0.4744, allocations: 1.855 MB / 0.5603 GB, free: 35.56 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001216/0.4757, allocations: 9.906 kB / 0.5604 GB, free: 35.56 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006913/0.4764, allocations: 214.2 kB / 0.5606 GB, free: 35.55 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002324/0.4788, allocations: 0.7501 MB / 0.5613 GB, free: 35.41 MB / 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.001445/0.4802, allocations: 0.5883 MB / 0.5619 GB, free: 35.33 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001948/0.4822, allocations: 1.365 MB / 0.5632 GB, free: 35.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005211/0.4827, allocations: 282.8 kB / 0.5635 GB, free: 35.14 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009086/0.4836, allocations: 0.5854 MB / 0.564 GB, free: 34.98 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007989/0.4844, allocations: 0.749 MB / 0.5648 GB, free: 34.78 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001657/0.4846, allocations: 105.2 kB / 0.5649 GB, free: 34.78 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005932/0.4852, allocations: 246.7 kB / 0.5651 GB, free: 34.77 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002732/0.4855, allocations: 288.5 kB / 0.5654 GB, free: 34.7 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005591/0.4861, allocations: 0.6182 MB / 0.566 GB, free: 34.46 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001537/0.4876, allocations: 1.47 MB / 0.5674 GB, free: 34.11 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.4876, allocations: 0.625 kB / 0.5674 GB, free: 34.11 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.4876, allocations: 0 / 0.5674 GB, free: 34.11 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.682e-05/0.4877, allocations: 1.531 kB / 0.5674 GB, free: 34.11 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.008118/0.4958, allocations: 2.485 MB / 0.5698 GB, free: 33.24 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.164e-05/0.4959, allocations: 8.906 kB / 0.5699 GB, free: 33.24 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001555/0.496, allocations: 118.2 kB / 0.57 GB, free: 33.2 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004764/0.5008, allocations: 0.763 MB / 0.5707 GB, free: 33.11 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00147/0.5023, allocations: 0.7967 MB / 0.5715 GB, free: 32.71 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002848/0.5026, allocations: 257 kB / 0.5717 GB, free: 32.53 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/0.5028, allocations: 77.19 kB / 0.5718 GB, free: 32.53 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002386/0.5052, allocations: 1.183 MB / 0.573 GB, free: 32.39 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.5052, allocations: 3.938 kB / 0.573 GB, free: 32.39 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.18e-05/0.5053, allocations: 30.81 kB / 0.573 GB, free: 32.39 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.5053, allocations: 15.75 kB / 0.573 GB, free: 32.39 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/0.5071, allocations: 0.9462 MB / 0.5739 GB, free: 32.38 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.005921/0.5131, allocations: 3.551 MB / 0.5774 GB, free: 31.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007021/0.5201, allocations: 2.306 MB / 0.5797 GB, free: 30.34 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001315/0.5215, allocations: 0.6595 MB / 0.5803 GB, free: 30.08 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.666e-05/0.5216, allocations: 19.75 kB / 0.5803 GB, free: 30.08 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.5216, allocations: 46.16 kB / 0.5804 GB, free: 30.03 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.437e-06/0.5216, allocations: 0 / 0.5804 GB, free: 30.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02849/0.5501, allocations: 6.744 MB / 0.587 GB, free: 28.72 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001366/0.5503, allocations: 95.45 kB / 0.587 GB, free: 28.62 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001986/0.5523, allocations: 0.9716 MB / 0.588 GB, free: 28.2 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002927/0.5526, allocations: 41.48 kB / 0.588 GB, free: 28.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003992/0.553, allocations: 456 kB / 0.5885 GB, free: 27.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00043/0.5535, allocations: 319.3 kB / 0.5888 GB, free: 27.55 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005517/0.554, allocations: 256.4 kB / 0.589 GB, free: 27.44 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.461e-05/0.5541, allocations: 301.6 kB / 0.5893 GB, free: 27.14 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001678/0.5558, allocations: 0.698 MB / 0.59 GB, free: 26.88 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001896/0.5577, allocations: 0.9206 MB / 0.5909 GB, free: 26.39 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02409/0.5818, allocations: 5.082 MB / 0.5958 GB, free: 24.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.307e-05/0.5819, allocations: 2.016 kB / 0.5958 GB, free: 24.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01487/0.5968, allocations: 4.143 MB / 0.5999 GB, free: 23.85 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.473e-05/0.5969, allocations: 7.219 kB / 0.5999 GB, free: 23.85 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.566e-05/0.5969, allocations: 4.906 kB / 0.5999 GB, free: 23.85 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006049/0.6029, allocations: 1.516 MB / 0.6014 GB, free: 23.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.6044, allocations: 255.3 kB / 0.6016 GB, free: 23.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02007/0.6245, allocations: 8.279 MB / 0.6097 GB, free: 18.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001972/0.6266, allocations: 167.6 kB / 0.6099 GB, free: 18.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001789/0.6268, allocations: 58.47 kB / 0.6099 GB, free: 18.83 MB / 430.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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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.0006922/0.6275, allocations: 274.1 kB / 0.6102 GB, free: 18.61 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001106/0.6286, allocations: 333 kB / 0.6105 GB, free: 18.42 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01145/0.64, allocations: 3.584 MB / 0.614 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.687e-05/0.6401, allocations: 12 kB / 0.614 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.892e-05/0.6401, allocations: 8 kB / 0.614 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.785e-05/0.6402, allocations: 3.984 kB / 0.614 GB, free: 15.6 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 postOpt removeSimpleEquations (simulation): time 0.01377/0.654, allocations: 5.131 MB / 0.619 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.118e-05/0.6541, allocations: 2.062 kB / 0.619 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007042/0.6548, allocations: 107.9 kB / 0.6191 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005229/0.66, allocations: 1.58 MB / 0.6207 GB, free: 8.668 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001582/0.6602, allocations: 23.98 kB / 0.6207 GB, free: 8.645 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01786/0.6781, allocations: 10.77 MB / 0.6312 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.6781, allocations: 3.938 kB / 0.6312 GB, free: 13.53 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/0.6933, allocations: 4.613 MB / 0.6357 GB, free: 8.891 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006089/0.694, allocations: 212 kB / 0.6359 GB, free: 8.664 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001869/0.6942, allocations: 16 kB / 0.636 GB, free: 8.648 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.6952, allocations: 92.89 kB / 0.636 GB, free: 8.559 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006095/0.6958, allocations: 172.8 kB / 0.6362 GB, free: 8.391 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.746e-05/0.6959, allocations: 23.94 kB / 0.6362 GB, free: 8.367 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008933/0.6968, allocations: 0.6473 MB / 0.6369 GB, free: 7.711 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6968, allocations: 0 / 0.6369 GB, free: 7.711 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001633/0.6984, allocations: 439.6 kB / 0.6373 GB, free: 7.281 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01507/0.7135, allocations: 5.21 MB / 0.6424 GB, free: 2.031 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006973/0.7206, allocations: 2.308 MB / 0.6446 GB, free: 15.71 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/0.7206, allocations: 5.375 kB / 0.6446 GB, free: 15.71 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004211/0.7248, allocations: 1.318 MB / 0.6459 GB, free: 14.38 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001782/0.7266, allocations: 343.7 kB / 0.6462 GB, free: 14.03 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03846/0.7651, allocations: 15.65 MB / 0.6615 GB, free: 13.93 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00085/0.766, allocations: 1.084 MB / 0.6626 GB, free: 12.81 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006023/0.7667, allocations: 103 kB / 0.6627 GB, free: 12.71 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006431/0.7673, allocations: 444.1 kB / 0.6631 GB, free: 12.28 MB / 478.1 MB Notification: Performance of SimCode: time 2.084e-06/0.7673, allocations: 0 / 0.6631 GB, free: 12.28 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07922/0.8466, allocations: 30.98 MB / 0.6934 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/14.1, allocations: 10.05 kB / 0.6934 GB, free: 13.7 MB / 0.4981 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 0.001 --interface-type ModelExchange --solver CVode --output-interval 0.01 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)