Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.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.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_dev_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.001444/0.001444, allocations: 108 kB / 15.6 MB, free: 132 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.379/1.379, allocations: 222.9 MB / 239.3 MB, free: 4.586 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.001579/0.001579, allocations: 196.5 kB / 289.6 MB, free: 2.316 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5378/0.5378, allocations: 91.91 MB / 431.6 MB, free: 9.242 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002084/0.002084, allocations: 83.88 kB / 0.502 GB, free: 7.605 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.389/0.3911, allocations: 71.26 MB / 0.5716 GB, free: 36.79 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005555/0.3967, allocations: 6.214 MB / 0.5776 GB, free: 33.23 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003293/0.4001, allocations: 1.873 MB / 0.5795 GB, free: 31.98 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000456/0.4005, allocations: 14.38 kB / 0.5795 GB, free: 31.98 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004695/0.4011, allocations: 212.9 kB / 0.5797 GB, free: 31.86 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001752/0.4028, allocations: 0.7587 MB / 0.5804 GB, free: 31.37 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001118/0.4039, allocations: 0.5869 MB / 0.581 GB, free: 31.08 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001095/0.405, allocations: 1.369 MB / 0.5823 GB, free: 30.4 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003687/0.4054, allocations: 282.6 kB / 0.5826 GB, free: 30.29 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000552/0.406, allocations: 0.5794 MB / 0.5832 GB, free: 30 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006231/0.4066, allocations: 0.758 MB / 0.5839 GB, free: 29.64 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001415/0.4068, allocations: 105.2 kB / 0.584 GB, free: 29.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004082/0.4072, allocations: 242.2 kB / 0.5842 GB, free: 29.6 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001838/0.4074, allocations: 286.3 kB / 0.5845 GB, free: 29.41 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003953/0.4078, allocations: 0.6176 MB / 0.5851 GB, free: 29 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.4089, allocations: 1.467 MB / 0.5865 GB, free: 28.33 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4089, allocations: 3 kB / 0.5866 GB, free: 28.33 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4089, allocations: 4.656 kB / 0.5866 GB, free: 28.33 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.4089, allocations: 0 / 0.5866 GB, free: 28.33 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.007922/0.4168, allocations: 2.479 MB / 0.589 GB, free: 27.19 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.4169, allocations: 10.12 kB / 0.589 GB, free: 27.19 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001318/0.417, allocations: 118.2 kB / 0.5891 GB, free: 27.1 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00481/0.4219, allocations: 0.766 MB / 0.5898 GB, free: 26.95 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.423, allocations: 0.7975 MB / 0.5906 GB, free: 26.39 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002545/0.4233, allocations: 256.7 kB / 0.5909 GB, free: 26.17 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/0.4235, allocations: 81.61 kB / 0.5909 GB, free: 26.14 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002233/0.4257, allocations: 1.177 MB / 0.5921 GB, free: 25.66 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.4257, allocations: 0 / 0.5921 GB, free: 25.66 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-05/0.4258, allocations: 30.72 kB / 0.5921 GB, free: 25.64 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.4258, allocations: 16.62 kB / 0.5921 GB, free: 25.64 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001899/0.4278, allocations: 0.9512 MB / 0.5931 GB, free: 25.33 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.005949/0.4337, allocations: 3.579 MB / 0.5966 GB, free: 23.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007625/0.4414, allocations: 2.302 MB / 0.5988 GB, free: 22.38 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001518/0.4429, allocations: 0.6584 MB / 0.5995 GB, free: 22.12 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.504e-05/0.443, allocations: 20.05 kB / 0.5995 GB, free: 22.12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.443, allocations: 44.69 kB / 0.5995 GB, free: 22.07 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 2.996e-06/0.443, allocations: 0 / 0.5995 GB, free: 22.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02961/0.4727, allocations: 6.869 MB / 0.6062 GB, free: 20.76 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.883e-05/0.4728, allocations: 94.17 kB / 0.6063 GB, free: 20.66 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00202/0.4749, allocations: 0.9686 MB / 0.6073 GB, free: 20.25 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001631/0.475, allocations: 45.27 kB / 0.6073 GB, free: 20.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003919/0.4754, allocations: 456.1 kB / 0.6077 GB, free: 19.84 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000381/0.4758, allocations: 314.6 kB / 0.608 GB, free: 19.6 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006943/0.4765, allocations: 260.2 kB / 0.6083 GB, free: 19.48 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.697e-05/0.4766, allocations: 301.1 kB / 0.6086 GB, free: 19.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00165/0.4783, allocations: 0.6951 MB / 0.6093 GB, free: 18.93 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001781/0.48, allocations: 0.9246 MB / 0.6102 GB, free: 18.43 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02243/0.5025, allocations: 5.076 MB / 0.6151 GB, free: 16.32 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.835e-05/0.5025, allocations: 1.438 kB / 0.6151 GB, free: 16.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01353/0.5161, allocations: 4.138 MB / 0.6192 GB, free: 13.29 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.635e-05/0.5162, allocations: 4 kB / 0.6192 GB, free: 13.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.5162, allocations: 8 kB / 0.6192 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005242/0.5214, allocations: 1.516 MB / 0.6206 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.5227, allocations: 255.6 kB / 0.6209 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01779/0.5405, allocations: 8.276 MB / 0.629 GB, free: 3.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00186/0.5424, allocations: 174.9 kB / 0.6291 GB, free: 2.898 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002418/0.5427, allocations: 51.98 kB / 0.6292 GB, free: 2.848 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.0007823/0.5435, allocations: 277 kB / 0.6295 GB, free: 2.57 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001133/0.5446, allocations: 336.8 kB / 0.6298 GB, free: 2.23 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01167/0.5563, allocations: 3.588 MB / 0.6333 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.191e-05/0.5564, allocations: 11.94 kB / 0.6333 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.318e-05/0.5564, allocations: 8 kB / 0.6333 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-05/0.5564, allocations: 3.984 kB / 0.6333 GB, free: 14.6 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 postOpt removeSimpleEquations (simulation): time 0.01602/0.5725, allocations: 5.137 MB / 0.6383 GB, free: 9.363 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.465e-05/0.5725, allocations: 0 / 0.6383 GB, free: 9.363 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006789/0.5732, allocations: 111.9 kB / 0.6384 GB, free: 9.254 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005912/0.5791, allocations: 1.575 MB / 0.64 GB, free: 7.672 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001693/0.5793, allocations: 27.98 kB / 0.64 GB, free: 7.645 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02151/0.6009, allocations: 10.76 MB / 0.6505 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.6009, allocations: 3.938 kB / 0.6505 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01563/0.6166, allocations: 4.601 MB / 0.655 GB, free: 7.898 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005323/0.6171, allocations: 211.5 kB / 0.6552 GB, free: 7.672 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003793/0.6175, allocations: 20 kB / 0.6552 GB, free: 7.652 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001255/0.6188, allocations: 91.83 kB / 0.6553 GB, free: 7.562 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006072/0.6194, allocations: 176.8 kB / 0.6555 GB, free: 7.391 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/0.6196, allocations: 20 kB / 0.6555 GB, free: 7.371 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001071/0.6206, allocations: 0.6434 MB / 0.6561 GB, free: 6.719 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6207, allocations: 3.938 kB / 0.6561 GB, free: 6.715 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001771/0.6224, allocations: 435.6 kB / 0.6565 GB, free: 6.289 MB / 462.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.01552/0.638, allocations: 5.196 MB / 0.6616 GB, free: 1.047 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007132/0.6451, allocations: 2.315 MB / 0.6639 GB, free: 14.72 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.6452, allocations: 0 / 0.6639 GB, free: 14.72 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00435/0.6495, allocations: 1.326 MB / 0.6652 GB, free: 13.38 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002039/0.6516, allocations: 348.4 kB / 0.6655 GB, free: 13.03 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04077/0.6924, allocations: 15.64 MB / 0.6808 GB, free: 12.91 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008808/0.6933, allocations: 1.084 MB / 0.6818 GB, free: 11.79 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005458/0.6939, allocations: 103.3 kB / 0.6819 GB, free: 11.69 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007943/0.6947, allocations: 439.3 kB / 0.6824 GB, free: 11.26 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6947, allocations: 0 / 0.6824 GB, free: 11.26 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07052/0.7653, allocations: 30.98 MB / 0.7126 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/13.31, allocations: 14.73 kB / 0.7126 GB, free: 12.47 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_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_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)