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.006354/0.006354, allocations: 102.4 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.4/1.4, 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.001665/0.001665, allocations: 184.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.4776/0.4776, allocations: 78.52 MB / 418.4 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 75.88 kB / 0.5532 GB, free: 1.406 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3786/0.3804, allocations: 68.16 MB / 0.6197 GB, free: 9.348 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005246/0.3857, allocations: 6.197 MB / 0.6258 GB, free: 3.922 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003036/0.3888, allocations: 1.857 MB / 0.6276 GB, free: 2.062 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004249/0.3892, allocations: 12 kB / 0.6276 GB, free: 2.051 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004247/0.3897, allocations: 206.1 kB / 0.6278 GB, free: 1.848 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001487/0.3912, allocations: 0.8166 MB / 0.6286 GB, free: 1.031 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.0009899/0.3922, allocations: 0.5748 MB / 0.6292 GB, free: 472 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001205/0.3934, allocations: 1.386 MB / 0.6305 GB, free: 15.07 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004108/0.3938, allocations: 283.9 kB / 0.6308 GB, free: 14.78 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006461/0.3945, allocations: 0.5795 MB / 0.6314 GB, free: 14.2 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000756/0.3952, allocations: 0.7584 MB / 0.6321 GB, free: 13.44 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001465/0.3954, allocations: 108 kB / 0.6322 GB, free: 13.33 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004144/0.3958, allocations: 243.9 kB / 0.6324 GB, free: 13.09 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002355/0.396, allocations: 286.7 kB / 0.6327 GB, free: 12.81 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004817/0.3965, allocations: 0.6058 MB / 0.6333 GB, free: 12.2 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001381/0.3979, allocations: 1.497 MB / 0.6348 GB, free: 10.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3979, allocations: 0 / 0.6348 GB, free: 10.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3979, allocations: 0 / 0.6348 GB, free: 10.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.89e-05/0.398, allocations: 0 / 0.6348 GB, free: 10.7 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.007589/0.4056, allocations: 2.485 MB / 0.6372 GB, free: 8.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.4056, allocations: 12.03 kB / 0.6372 GB, free: 8.148 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001487/0.4058, allocations: 126.4 kB / 0.6373 GB, free: 8.016 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004777/0.4106, allocations: 0.7555 MB / 0.6381 GB, free: 7.258 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001232/0.4118, allocations: 0.793 MB / 0.6388 GB, free: 6.406 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002792/0.4121, allocations: 256.2 kB / 0.6391 GB, free: 6.117 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.4123, allocations: 76 kB / 0.6392 GB, free: 6.043 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002188/0.4144, allocations: 1.192 MB / 0.6403 GB, free: 4.832 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.4145, allocations: 0 / 0.6403 GB, free: 4.832 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.391e-05/0.4146, allocations: 31.98 kB / 0.6403 GB, free: 4.801 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/0.4146, allocations: 23.94 kB / 0.6404 GB, free: 4.777 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001872/0.4165, allocations: 0.9498 MB / 0.6413 GB, free: 3.824 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.005549/0.422, allocations: 3.515 MB / 0.6447 GB, free: 124 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007038/0.4291, allocations: 2.312 MB / 0.647 GB, free: 13.71 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001308/0.4304, allocations: 0.6595 MB / 0.6476 GB, free: 13.05 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001115/0.4305, allocations: 16.64 kB / 0.6476 GB, free: 13.04 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.4306, allocations: 43.22 kB / 0.6477 GB, free: 12.98 MB / 462.1 MB Notification: Performance of pre-optimization done (n=92): time 2.855e-06/0.4306, allocations: 0 / 0.6477 GB, free: 12.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=92): time 0.0259/0.4565, allocations: 6.761 MB / 0.6543 GB, free: 6.168 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.565e-05/0.4566, allocations: 93.88 kB / 0.6544 GB, free: 6.059 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001773/0.4584, allocations: 0.9656 MB / 0.6553 GB, free: 5.074 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00012/0.4585, allocations: 41.7 kB / 0.6554 GB, free: 5.027 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004791/0.459, allocations: 460.8 kB / 0.6558 GB, free: 4.57 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003974/0.4594, allocations: 315.6 kB / 0.6561 GB, free: 4.258 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000593/0.46, allocations: 259.5 kB / 0.6564 GB, free: 3.996 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.4602, allocations: 301.1 kB / 0.6566 GB, free: 3.699 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001467/0.4616, allocations: 0.691 MB / 0.6573 GB, free: 3.008 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00166/0.4633, allocations: 0.9185 MB / 0.6582 GB, free: 2.02 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02178/0.4851, allocations: 5.069 MB / 0.6632 GB, free: 12.88 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/0.4851, allocations: 0 / 0.6632 GB, free: 12.88 MB / 478.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01261/0.4978, allocations: 4.145 MB / 0.6672 GB, free: 8.719 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.4978, allocations: 8 kB / 0.6672 GB, free: 8.711 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.236e-05/0.4978, allocations: 4 kB / 0.6672 GB, free: 8.707 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0052/0.503, allocations: 1.524 MB / 0.6687 GB, free: 7.18 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/0.5042, allocations: 255.6 kB / 0.6689 GB, free: 6.93 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.019/0.5232, allocations: 8.26 MB / 0.677 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001597/0.5248, allocations: 175 kB / 0.6772 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001958/0.525, allocations: 55.98 kB / 0.6772 GB, free: 14.29 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.0008072/0.5258, allocations: 266.4 kB / 0.6775 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001288/0.5271, allocations: 344.8 kB / 0.6778 GB, free: 13.67 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01148/0.5386, allocations: 3.584 MB / 0.6813 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.558e-05/0.5387, allocations: 11.98 kB / 0.6813 GB, free: 10.06 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.931e-05/0.5387, allocations: 8 kB / 0.6813 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.5387, allocations: 7.922 kB / 0.6813 GB, free: 10.04 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.01385/0.5526, allocations: 5.12 MB / 0.6863 GB, free: 4.816 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-05/0.5526, allocations: 0 / 0.6863 GB, free: 4.816 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006015/0.5532, allocations: 107.9 kB / 0.6864 GB, free: 4.711 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00525/0.5585, allocations: 1.578 MB / 0.688 GB, free: 3.125 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001431/0.5587, allocations: 23.98 kB / 0.688 GB, free: 3.102 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0203/0.579, allocations: 10.78 MB / 0.6985 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.579, allocations: 3.938 kB / 0.6985 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01396/0.593, allocations: 4.609 MB / 0.703 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004926/0.5935, allocations: 211.5 kB / 0.7032 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003491/0.5939, allocations: 16 kB / 0.7033 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.5951, allocations: 91.89 kB / 0.7033 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006139/0.5957, allocations: 176.7 kB / 0.7035 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/0.5958, allocations: 24 kB / 0.7035 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001059/0.5969, allocations: 0.6395 MB / 0.7042 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5969, allocations: 0 / 0.7042 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00171/0.5986, allocations: 439.6 kB / 0.7046 GB, free: 1.727 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.01428/0.6129, allocations: 5.2 MB / 0.7097 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006227/0.6192, allocations: 2.296 MB / 0.7119 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.6192, allocations: 0 / 0.7119 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003897/0.6231, allocations: 1.314 MB / 0.7132 GB, free: 8.836 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/0.6249, allocations: 347 kB / 0.7135 GB, free: 8.484 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03811/0.6631, allocations: 15.01 MB / 0.7282 GB, free: 9.191 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008572/0.664, allocations: 1.084 MB / 0.7292 GB, free: 8.074 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0004618/0.6644, allocations: 99.33 kB / 0.7293 GB, free: 7.973 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007349/0.6652, allocations: 439.3 kB / 0.7297 GB, free: 7.547 MB / 0.5294 GB Notification: Performance of SimCode: time 1.373e-06/0.6652, allocations: 4 kB / 0.7297 GB, free: 7.543 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07193/0.7372, allocations: 31.34 MB / 0.7603 GB, free: 8.395 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.61/17.35, allocations: 13.03 kB / 0.7604 GB, free: 8.387 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)