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.006863/0.006864, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.371/1.371, allocations: 222.9 MB / 239.4 MB, free: 4.504 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.001855/0.001855, allocations: 180.5 kB / 289.7 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4479/0.4479, allocations: 78.53 MB / 418.4 MB, free: 3.137 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 79.89 kB / 0.5532 GB, free: 1.402 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2786, allocations: 68.17 MB / 0.6197 GB, free: 9.312 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005937/0.2845, allocations: 6.195 MB / 0.6258 GB, free: 3.938 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00319/0.2878, allocations: 1.849 MB / 0.6276 GB, free: 2.086 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005521/0.2883, allocations: 12 kB / 0.6276 GB, free: 2.074 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004501/0.2888, allocations: 210.1 kB / 0.6278 GB, free: 1.867 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001505/0.2903, allocations: 0.761 MB / 0.6286 GB, free: 1.109 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.0009678/0.2913, allocations: 0.5785 MB / 0.6291 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00125/0.2926, allocations: 1.378 MB / 0.6305 GB, free: 15.15 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000414/0.293, allocations: 287.9 kB / 0.6307 GB, free: 14.86 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006835/0.2937, allocations: 0.5873 MB / 0.6313 GB, free: 14.27 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008122/0.2945, allocations: 0.7545 MB / 0.6321 GB, free: 13.51 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001544/0.2947, allocations: 104 kB / 0.6322 GB, free: 13.41 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000428/0.2951, allocations: 247.9 kB / 0.6324 GB, free: 13.17 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002246/0.2953, allocations: 286.7 kB / 0.6327 GB, free: 12.89 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004875/0.2958, allocations: 0.6097 MB / 0.6333 GB, free: 12.27 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001386/0.2972, allocations: 1.493 MB / 0.6347 GB, free: 10.78 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2972, allocations: 0 / 0.6347 GB, free: 10.78 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2973, allocations: 7.938 kB / 0.6347 GB, free: 10.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.2973, allocations: 0 / 0.6347 GB, free: 10.77 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.008535/0.3058, allocations: 2.485 MB / 0.6371 GB, free: 8.227 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.3059, allocations: 12.03 kB / 0.6372 GB, free: 8.215 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001668/0.3061, allocations: 118.5 kB / 0.6373 GB, free: 8.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005084/0.3111, allocations: 0.7594 MB / 0.638 GB, free: 7.328 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/0.3125, allocations: 0.7968 MB / 0.6388 GB, free: 6.473 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002965/0.3128, allocations: 260.2 kB / 0.639 GB, free: 6.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001688/0.313, allocations: 80 kB / 0.6391 GB, free: 6.102 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002454/0.3154, allocations: 1.18 MB / 0.6403 GB, free: 4.902 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.3155, allocations: 0 / 0.6403 GB, free: 4.902 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-05/0.3156, allocations: 28 kB / 0.6403 GB, free: 4.875 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.3156, allocations: 20 kB / 0.6403 GB, free: 4.855 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002054/0.3176, allocations: 0.9459 MB / 0.6412 GB, free: 3.906 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.005938/0.3236, allocations: 3.531 MB / 0.6447 GB, free: 192 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00784/0.3314, allocations: 2.318 MB / 0.647 GB, free: 13.78 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001381/0.3328, allocations: 0.6556 MB / 0.6476 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001071/0.333, allocations: 12.64 kB / 0.6476 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.333, allocations: 43.22 kB / 0.6476 GB, free: 13.05 MB / 462.1 MB Notification: Performance of pre-optimization done (n=92): time 5.06e-06/0.333, allocations: 4 kB / 0.6476 GB, free: 13.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=92): time 0.02873/0.3617, allocations: 6.749 MB / 0.6542 GB, free: 6.242 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.3619, allocations: 97.7 kB / 0.6543 GB, free: 6.129 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00149/0.3634, allocations: 0.9695 MB / 0.6553 GB, free: 5.141 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001574/0.3636, allocations: 41.7 kB / 0.6553 GB, free: 5.094 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003571/0.3639, allocations: 456.8 kB / 0.6558 GB, free: 4.641 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003739/0.3643, allocations: 311.6 kB / 0.6561 GB, free: 4.332 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005442/0.3649, allocations: 263.5 kB / 0.6563 GB, free: 4.066 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.365, allocations: 301.1 kB / 0.6566 GB, free: 3.77 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001613/0.3666, allocations: 0.6949 MB / 0.6573 GB, free: 3.074 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001764/0.3684, allocations: 0.9224 MB / 0.6582 GB, free: 2.082 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02319/0.3916, allocations: 5.061 MB / 0.6631 GB, free: 12.95 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.3917, allocations: 0 / 0.6631 GB, free: 12.95 MB / 478.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01431/0.406, allocations: 4.141 MB / 0.6672 GB, free: 8.793 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.4061, allocations: 8 kB / 0.6672 GB, free: 8.785 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/0.4061, allocations: 4 kB / 0.6672 GB, free: 8.781 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006036/0.4121, allocations: 1.524 MB / 0.6687 GB, free: 7.254 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.4134, allocations: 263.6 kB / 0.6689 GB, free: 6.996 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02122/0.4347, allocations: 8.26 MB / 0.677 GB, free: 14.58 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001676/0.4364, allocations: 167 kB / 0.6771 GB, free: 14.42 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001837/0.4366, allocations: 55.98 kB / 0.6772 GB, free: 14.36 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: 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.0006111/0.4372, allocations: 274.3 kB / 0.6774 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/0.4383, allocations: 332.8 kB / 0.6778 GB, free: 13.75 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01279/0.4511, allocations: 3.596 MB / 0.6813 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.4512, allocations: 12 kB / 0.6813 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.507e-05/0.4512, allocations: 8 kB / 0.6813 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.99e-05/0.4512, allocations: 3.984 kB / 0.6813 GB, free: 10.11 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.0154/0.4666, allocations: 5.12 MB / 0.6863 GB, free: 4.887 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.298e-06/0.4666, allocations: 0 / 0.6863 GB, free: 4.887 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000635/0.4673, allocations: 111.8 kB / 0.6864 GB, free: 4.777 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006003/0.4733, allocations: 1.582 MB / 0.688 GB, free: 3.188 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001374/0.4735, allocations: 19.98 kB / 0.688 GB, free: 3.168 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02156/0.495, allocations: 10.76 MB / 0.6985 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.4951, allocations: 3.938 kB / 0.6985 GB, free: 8.051 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01551/0.5106, allocations: 4.614 MB / 0.703 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004458/0.5111, allocations: 215.5 kB / 0.7032 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000293/0.5114, allocations: 20 kB / 0.7032 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/0.5126, allocations: 87.89 kB / 0.7033 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006567/0.5133, allocations: 172.8 kB / 0.7035 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.5134, allocations: 24 kB / 0.7035 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00125/0.5146, allocations: 0.6434 MB / 0.7041 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.71e-07/0.5147, allocations: 0 / 0.7041 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001757/0.5164, allocations: 443.6 kB / 0.7045 GB, free: 1.793 MB / 0.4981 GB 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.01595/0.5324, allocations: 5.196 MB / 0.7096 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006585/0.539, allocations: 2.288 MB / 0.7118 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.539, allocations: 0 / 0.7118 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004287/0.5433, allocations: 1.317 MB / 0.7131 GB, free: 8.91 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001523/0.5449, allocations: 347 kB / 0.7135 GB, free: 8.559 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0386/0.5835, allocations: 15.02 MB / 0.7281 GB, free: 9.254 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007148/0.5842, allocations: 1.077 MB / 0.7292 GB, free: 8.145 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003627/0.5846, allocations: 95.33 kB / 0.7293 GB, free: 8.047 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000621/0.5852, allocations: 439.3 kB / 0.7297 GB, free: 7.621 MB / 0.5294 GB Notification: Performance of SimCode: time 9.32e-07/0.5853, allocations: 4 kB / 0.7297 GB, free: 7.617 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06426/0.6495, allocations: 32.63 MB / 0.7616 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.41/17.06, allocations: 17.28 kB / 0.7616 GB, free: 7.164 MB / 0.5606 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)