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.001101/0.001101, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.311/1.311, allocations: 222.9 MB / 238.8 MB, free: 4.738 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.001213/0.001213, allocations: 184.5 kB / 289.1 MB, free: 2.488 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4573/0.4573, allocations: 78.52 MB / 417.8 MB, free: 3.324 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 75.88 kB / 496.9 MB, free: 6.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1386, allocations: 68.17 MB / 0.5518 GB, free: 2.531 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.2693/0.4079, allocations: 6.504 MB / 0.5581 GB, free: 36.24 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003814/0.4118, allocations: 1.897 MB / 0.56 GB, free: 35.7 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008069/0.4126, allocations: 10.97 kB / 0.56 GB, free: 35.7 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005546/0.4132, allocations: 158.8 kB / 0.5602 GB, free: 35.7 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001745/0.415, allocations: 0.6795 MB / 0.5608 GB, free: 35.54 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.001186/0.4162, allocations: 0.5443 MB / 0.5614 GB, free: 35.46 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001295/0.4175, allocations: 1.311 MB / 0.5626 GB, free: 35.39 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003938/0.4179, allocations: 254.2 kB / 0.5629 GB, free: 35.35 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006595/0.4185, allocations: 0.532 MB / 0.5634 GB, free: 35.21 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000631/0.4192, allocations: 0.7202 MB / 0.5641 GB, free: 35.04 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001286/0.4193, allocations: 64.09 kB / 0.5642 GB, free: 35.04 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004602/0.4198, allocations: 199.4 kB / 0.5643 GB, free: 35.03 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001926/0.42, allocations: 249.4 kB / 0.5646 GB, free: 34.96 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004441/0.4204, allocations: 0.5739 MB / 0.5651 GB, free: 34.75 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001122/0.4216, allocations: 1.443 MB / 0.5666 GB, free: 34.41 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.4216, allocations: 2.344 kB / 0.5666 GB, free: 34.41 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4216, allocations: 0 / 0.5666 GB, free: 34.41 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.485e-05/0.4216, allocations: 0 / 0.5666 GB, free: 34.41 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.007703/0.4293, allocations: 2.481 MB / 0.569 GB, free: 33.54 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.4294, allocations: 8.281 kB / 0.569 GB, free: 33.54 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.4295, allocations: 122.6 kB / 0.5691 GB, free: 33.5 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004764/0.4343, allocations: 0.7663 MB / 0.5699 GB, free: 33.42 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.4355, allocations: 0.796 MB / 0.5706 GB, free: 33.02 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000247/0.4358, allocations: 256.9 kB / 0.5709 GB, free: 32.83 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.4359, allocations: 77.12 kB / 0.5709 GB, free: 32.83 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002204/0.4381, allocations: 1.176 MB / 0.5721 GB, free: 32.7 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.4382, allocations: 0 / 0.5721 GB, free: 32.7 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.952e-05/0.4383, allocations: 29.42 kB / 0.5721 GB, free: 32.7 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/0.4383, allocations: 22.38 kB / 0.5721 GB, free: 32.7 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001799/0.4401, allocations: 0.9504 MB / 0.5731 GB, free: 32.68 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.005169/0.4453, allocations: 3.553 MB / 0.5765 GB, free: 31.39 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006712/0.452, allocations: 2.305 MB / 0.5788 GB, free: 30.82 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001209/0.4532, allocations: 0.6594 MB / 0.5794 GB, free: 30.57 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001053/0.4534, allocations: 16.58 kB / 0.5795 GB, free: 30.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.265e-05/0.4534, allocations: 45.47 kB / 0.5795 GB, free: 30.52 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.437e-06/0.4534, allocations: 4 kB / 0.5795 GB, free: 30.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02635/0.4798, allocations: 6.747 MB / 0.5861 GB, free: 29.21 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/0.4799, allocations: 90.25 kB / 0.5862 GB, free: 29.12 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001582/0.4815, allocations: 0.9688 MB / 0.5871 GB, free: 28.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001869/0.4817, allocations: 40.45 kB / 0.5872 GB, free: 28.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003166/0.482, allocations: 461.8 kB / 0.5876 GB, free: 28.29 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003206/0.4824, allocations: 314.3 kB / 0.5879 GB, free: 28.05 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004651/0.4828, allocations: 256.6 kB / 0.5881 GB, free: 27.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.88e-05/0.4829, allocations: 305.9 kB / 0.5884 GB, free: 27.63 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001498/0.4844, allocations: 0.6991 MB / 0.5891 GB, free: 27.38 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001611/0.486, allocations: 0.9153 MB / 0.59 GB, free: 26.89 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02261/0.5086, allocations: 5.068 MB / 0.595 GB, free: 25.41 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.915e-05/0.5087, allocations: 2.406 kB / 0.595 GB, free: 25.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01391/0.5226, allocations: 4.135 MB / 0.599 GB, free: 24.37 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.644e-05/0.5227, allocations: 11.53 kB / 0.599 GB, free: 24.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.483e-05/0.5227, allocations: 9.875 kB / 0.599 GB, free: 24.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005808/0.5285, allocations: 1.51 MB / 0.6005 GB, free: 24.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/0.53, allocations: 261 kB / 0.6007 GB, free: 24.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01876/0.5487, allocations: 7.619 MB / 0.6082 GB, free: 20.03 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001847/0.5506, allocations: 172.4 kB / 0.6084 GB, free: 19.92 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000285/0.5509, allocations: 62.62 kB / 0.6084 GB, free: 19.9 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.0008631/0.5518, allocations: 258 kB / 0.6087 GB, free: 19.69 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001271/0.5531, allocations: 339.1 kB / 0.609 GB, free: 19.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01133/0.5644, allocations: 3.593 MB / 0.6125 GB, free: 16.91 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.358e-05/0.5645, allocations: 15.94 kB / 0.6125 GB, free: 16.9 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.303e-05/0.5645, allocations: 4 kB / 0.6125 GB, free: 16.89 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.332e-05/0.5646, allocations: 8.469 kB / 0.6125 GB, free: 16.89 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.01334/0.5779, allocations: 5.125 MB / 0.6175 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.578, allocations: 0 / 0.6175 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005718/0.5786, allocations: 109.6 kB / 0.6176 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004742/0.5833, allocations: 1.578 MB / 0.6192 GB, free: 9.965 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001299/0.5835, allocations: 23.94 kB / 0.6192 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01566/0.5991, allocations: 9.892 MB / 0.6289 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.5992, allocations: 0 / 0.6289 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01389/0.6131, allocations: 4.62 MB / 0.6334 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005764/0.6137, allocations: 203.5 kB / 0.6336 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004081/0.6141, allocations: 24 kB / 0.6336 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.6154, allocations: 83.91 kB / 0.6337 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006674/0.6161, allocations: 172.6 kB / 0.6338 GB, free: 10.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/0.6163, allocations: 27.98 kB / 0.6339 GB, free: 10.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001112/0.6174, allocations: 0.6434 MB / 0.6345 GB, free: 9.902 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6174, allocations: 0 / 0.6345 GB, free: 9.902 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001941/0.6193, allocations: 435.6 kB / 0.6349 GB, free: 9.477 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.01433/0.6337, allocations: 5.197 MB / 0.64 GB, free: 4.234 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006049/0.6398, allocations: 2.287 MB / 0.6422 GB, free: 1.941 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.6398, allocations: 0 / 0.6422 GB, free: 1.941 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003794/0.6436, allocations: 1.323 MB / 0.6435 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001852/0.6455, allocations: 346.3 kB / 0.6438 GB, free: 260 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0389/0.6844, allocations: 16.02 MB / 0.6595 GB, free: 15.79 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007918/0.6852, allocations: 1.077 MB / 0.6605 GB, free: 14.68 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006578/0.6859, allocations: 98.91 kB / 0.6606 GB, free: 14.58 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008043/0.6867, allocations: 435.3 kB / 0.661 GB, free: 14.16 MB / 478.1 MB Notification: Performance of SimCode: time 1.512e-06/0.6868, allocations: 1.312 kB / 0.661 GB, free: 14.16 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04984/0.7366, allocations: 29.04 MB / 0.6894 GB, free: 1.543 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/0.7368, allocations: 259.1 kB / 0.6896 GB, free: 1.285 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.804/3.541, allocations: 3.875 kB / 0.6896 GB, free: 1.285 MB / 494.1 MB (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)