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.001766/0.001766, 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.365/1.365, allocations: 222.9 MB / 239.2 MB, free: 4.516 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.001535/0.001535, allocations: 196.1 kB / 289.6 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4935/0.4935, allocations: 91.9 MB / 431.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 79.88 kB / 0.502 GB, free: 7.555 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3747/0.3764, allocations: 71.26 MB / 0.5716 GB, free: 36.55 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005431/0.3819, allocations: 6.202 MB / 0.5776 GB, free: 33 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002977/0.3849, allocations: 1.87 MB / 0.5795 GB, free: 31.73 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004438/0.3854, allocations: 12.06 kB / 0.5795 GB, free: 31.73 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004553/0.3859, allocations: 218.8 kB / 0.5797 GB, free: 31.61 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001647/0.3875, allocations: 0.7521 MB / 0.5804 GB, free: 31.12 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001149/0.3887, allocations: 0.5925 MB / 0.581 GB, free: 30.83 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001148/0.3898, allocations: 1.372 MB / 0.5823 GB, free: 30.14 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004109/0.3903, allocations: 284 kB / 0.5826 GB, free: 30.03 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005742/0.3908, allocations: 0.5815 MB / 0.5832 GB, free: 29.74 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000654/0.3915, allocations: 0.7553 MB / 0.5839 GB, free: 29.38 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001475/0.3917, allocations: 104.7 kB / 0.584 GB, free: 29.38 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004088/0.3921, allocations: 244 kB / 0.5842 GB, free: 29.33 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000211/0.3923, allocations: 285.5 kB / 0.5845 GB, free: 29.15 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003788/0.3927, allocations: 0.6149 MB / 0.5851 GB, free: 28.73 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001094/0.3938, allocations: 1.471 MB / 0.5865 GB, free: 28.07 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3938, allocations: 0 / 0.5865 GB, free: 28.07 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.3938, allocations: 1.531 kB / 0.5865 GB, free: 28.07 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.3938, allocations: 3.938 kB / 0.5866 GB, free: 28.06 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.007641/0.4015, allocations: 2.484 MB / 0.589 GB, free: 26.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.4015, allocations: 10.84 kB / 0.589 GB, free: 26.91 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001274/0.4017, allocations: 116.8 kB / 0.5891 GB, free: 26.83 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004791/0.4065, allocations: 0.7686 MB / 0.5899 GB, free: 26.67 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.4075, allocations: 0.7855 MB / 0.5906 GB, free: 26.12 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002394/0.4078, allocations: 260.8 kB / 0.5909 GB, free: 25.9 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.4079, allocations: 77.78 kB / 0.5909 GB, free: 25.88 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002214/0.4102, allocations: 1.182 MB / 0.5921 GB, free: 25.39 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.4102, allocations: 0 / 0.5921 GB, free: 25.39 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.311e-05/0.4103, allocations: 26.91 kB / 0.5921 GB, free: 25.38 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.4103, allocations: 16.78 kB / 0.5921 GB, free: 25.38 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001973/0.4123, allocations: 0.9509 MB / 0.5931 GB, free: 25.07 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.005831/0.4181, allocations: 3.573 MB / 0.5966 GB, free: 22.9 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007581/0.4257, allocations: 2.308 MB / 0.5988 GB, free: 22.11 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001442/0.4272, allocations: 0.6549 MB / 0.5994 GB, free: 21.86 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001056/0.4273, allocations: 28.62 kB / 0.5995 GB, free: 21.84 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.4273, allocations: 38.84 kB / 0.5995 GB, free: 21.8 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 2.916e-06/0.4273, allocations: 5.125 kB / 0.5995 GB, free: 21.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02872/0.4561, allocations: 6.865 MB / 0.6062 GB, free: 20.49 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.186e-05/0.4562, allocations: 95.03 kB / 0.6063 GB, free: 20.39 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001427/0.4576, allocations: 0.9636 MB / 0.6073 GB, free: 19.98 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001723/0.4578, allocations: 45.52 kB / 0.6073 GB, free: 19.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000285/0.4581, allocations: 456 kB / 0.6077 GB, free: 19.57 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002924/0.4584, allocations: 314.3 kB / 0.608 GB, free: 19.33 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004409/0.4588, allocations: 261 kB / 0.6083 GB, free: 19.21 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.024e-05/0.4589, allocations: 309.8 kB / 0.6086 GB, free: 18.91 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001471/0.4604, allocations: 0.6977 MB / 0.6093 GB, free: 18.65 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001598/0.462, allocations: 0.9131 MB / 0.6101 GB, free: 18.17 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02168/0.4837, allocations: 5.07 MB / 0.6151 GB, free: 16.06 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-05/0.4838, allocations: 2.031 kB / 0.6151 GB, free: 16.06 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01364/0.4974, allocations: 4.139 MB / 0.6191 GB, free: 13.24 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/0.4975, allocations: 9.875 kB / 0.6192 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.4975, allocations: 4 kB / 0.6192 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005152/0.5027, allocations: 1.524 MB / 0.6206 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.5039, allocations: 259.6 kB / 0.6209 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01779/0.5217, allocations: 8.272 MB / 0.629 GB, free: 3.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001967/0.5237, allocations: 175 kB / 0.6291 GB, free: 2.848 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002897/0.524, allocations: 51.97 kB / 0.6292 GB, free: 2.797 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.0007886/0.5248, allocations: 277.8 kB / 0.6295 GB, free: 2.523 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/0.5259, allocations: 336.8 kB / 0.6298 GB, free: 2.184 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01155/0.5375, allocations: 3.588 MB / 0.6333 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.5376, allocations: 8 kB / 0.6333 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.262e-05/0.5376, allocations: 11.94 kB / 0.6333 GB, free: 14.56 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-05/0.5376, allocations: 3.984 kB / 0.6333 GB, free: 14.55 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.01544/0.5531, allocations: 5.137 MB / 0.6383 GB, free: 9.316 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.5531, allocations: 0 / 0.6383 GB, free: 9.316 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006641/0.5538, allocations: 107.9 kB / 0.6384 GB, free: 9.211 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00582/0.5596, allocations: 1.586 MB / 0.64 GB, free: 7.613 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001702/0.5598, allocations: 16 kB / 0.64 GB, free: 7.598 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02133/0.5812, allocations: 10.77 MB / 0.6505 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.5812, allocations: 7.875 kB / 0.6505 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01564/0.5969, allocations: 4.609 MB / 0.655 GB, free: 7.84 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007322/0.5977, allocations: 211.5 kB / 0.6552 GB, free: 7.613 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005495/0.5982, allocations: 20 kB / 0.6552 GB, free: 7.594 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/0.5996, allocations: 83.91 kB / 0.6553 GB, free: 7.512 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006658/0.6003, allocations: 176.7 kB / 0.6555 GB, free: 7.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001488/0.6005, allocations: 31.98 kB / 0.6555 GB, free: 7.309 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001135/0.6016, allocations: 0.6395 MB / 0.6561 GB, free: 6.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.6016, allocations: 4 kB / 0.6561 GB, free: 6.656 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001996/0.6036, allocations: 435.6 kB / 0.6566 GB, free: 6.23 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.01592/0.6196, allocations: 5.192 MB / 0.6616 GB, free: 0.9922 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007307/0.6269, allocations: 2.316 MB / 0.6639 GB, free: 14.66 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.627, allocations: 4.062 kB / 0.6639 GB, free: 14.66 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004429/0.6314, allocations: 1.321 MB / 0.6652 GB, free: 13.32 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002007/0.6335, allocations: 339 kB / 0.6655 GB, free: 12.97 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04033/0.6738, allocations: 15.66 MB / 0.6808 GB, free: 12.84 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001013/0.6749, allocations: 1.073 MB / 0.6818 GB, free: 11.73 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005209/0.6754, allocations: 103.3 kB / 0.6819 GB, free: 11.63 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007559/0.6762, allocations: 435.3 kB / 0.6823 GB, free: 11.2 MB / 494.1 MB Notification: Performance of SimCode: time 7.52e-07/0.6762, allocations: 0 / 0.6823 GB, free: 11.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06644/0.7427, allocations: 30.98 MB / 0.7126 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/13.22, allocations: 13.11 kB / 0.7126 GB, free: 12.41 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)