Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",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.001287/0.001287, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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 / 238.8 MB, free: 4.754 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.001555/0.001555, allocations: 192.5 kB / 289.1 MB, free: 2.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4928/0.4928, allocations: 78.53 MB / 417.8 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 75.89 kB / 496.9 MB, free: 6.676 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1518, allocations: 68.18 MB / 0.5518 GB, free: 2.457 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.2761/0.4279, allocations: 6.865 MB / 0.5585 GB, free: 35.91 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004129/0.4321, allocations: 2.003 MB / 0.5604 GB, free: 35.36 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008877/0.433, allocations: 10.5 kB / 0.5605 GB, free: 35.36 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007656/0.4339, allocations: 196.3 kB / 0.5606 GB, free: 35.34 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001851/0.4357, allocations: 0.7012 MB / 0.5613 GB, free: 35.2 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.001252/0.437, allocations: 0.595 MB / 0.5619 GB, free: 35.12 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001485/0.4385, allocations: 1.496 MB / 0.5634 GB, free: 35.04 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004136/0.4389, allocations: 286.9 kB / 0.5636 GB, free: 35 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007732/0.4397, allocations: 0.6014 MB / 0.5642 GB, free: 34.85 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007153/0.4404, allocations: 0.7751 MB / 0.565 GB, free: 34.66 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001484/0.4406, allocations: 69.81 kB / 0.5651 GB, free: 34.66 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004831/0.4411, allocations: 200.5 kB / 0.5652 GB, free: 34.65 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002392/0.4413, allocations: 295.1 kB / 0.5655 GB, free: 34.56 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004491/0.4418, allocations: 0.6142 MB / 0.5661 GB, free: 34.32 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001426/0.4432, allocations: 1.6 MB / 0.5677 GB, free: 33.93 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.4432, allocations: 0 / 0.5677 GB, free: 33.93 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4432, allocations: 0 / 0.5677 GB, free: 33.93 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.4432, allocations: 3.125 kB / 0.5677 GB, free: 33.93 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008756/0.452, allocations: 2.685 MB / 0.5703 GB, free: 32.96 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.4521, allocations: 8.625 kB / 0.5703 GB, free: 32.96 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001455/0.4522, allocations: 126.6 kB / 0.5704 GB, free: 32.92 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004841/0.4571, allocations: 0.7784 MB / 0.5712 GB, free: 32.83 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001503/0.4586, allocations: 0.8773 MB / 0.5721 GB, free: 32.42 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002401/0.4589, allocations: 260.4 kB / 0.5723 GB, free: 32.23 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/0.459, allocations: 87.03 kB / 0.5724 GB, free: 32.23 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001967/0.461, allocations: 1.087 MB / 0.5735 GB, free: 32.14 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.461, allocations: 1.5 kB / 0.5735 GB, free: 32.14 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.979e-05/0.4611, allocations: 29.31 kB / 0.5735 GB, free: 32.14 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.4611, allocations: 18.94 kB / 0.5735 GB, free: 32.14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001823/0.463, allocations: 0.9941 MB / 0.5745 GB, free: 32.12 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.005916/0.4689, allocations: 3.82 MB / 0.5782 GB, free: 30.62 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00673/0.4756, allocations: 2.379 MB / 0.5805 GB, free: 29.8 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001554/0.4772, allocations: 0.6747 MB / 0.5812 GB, free: 29.53 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001106/0.4774, allocations: 21.67 kB / 0.5812 GB, free: 29.52 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001629/0.479, allocations: 0.8195 MB / 0.582 GB, free: 29.2 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.936e-06/0.479, allocations: 0 / 0.582 GB, free: 29.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02832/0.5073, allocations: 7.078 MB / 0.5889 GB, free: 27.82 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.808e-05/0.5075, allocations: 121.8 kB / 0.589 GB, free: 27.69 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001998/0.5095, allocations: 1.086 MB / 0.5901 GB, free: 27.24 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002604/0.5097, allocations: 42.83 kB / 0.5901 GB, free: 27.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003489/0.5101, allocations: 495.2 kB / 0.5906 GB, free: 26.81 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003741/0.5105, allocations: 360.5 kB / 0.591 GB, free: 26.53 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005584/0.511, allocations: 286.2 kB / 0.5912 GB, free: 26.4 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.055e-05/0.5111, allocations: 301.8 kB / 0.5915 GB, free: 26.1 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/0.5127, allocations: 0.7707 MB / 0.5923 GB, free: 25.81 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001723/0.5145, allocations: 0.9344 MB / 0.5932 GB, free: 25.38 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02379/0.5383, allocations: 5.576 MB / 0.5986 GB, free: 23.64 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.679e-05/0.5383, allocations: 0.875 kB / 0.5986 GB, free: 23.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01517/0.5535, allocations: 4.332 MB / 0.6029 GB, free: 22.47 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.7e-05/0.5536, allocations: 64.12 kB / 0.6029 GB, free: 22.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.047e-05/0.5537, allocations: 4.156 kB / 0.6029 GB, free: 22.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00565/0.5593, allocations: 1.511 MB / 0.6044 GB, free: 22.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001689/0.561, allocations: 296.5 kB / 0.6047 GB, free: 22.09 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01765/0.5787, allocations: 7.614 MB / 0.6121 GB, free: 17.24 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002089/0.5808, allocations: 206.8 kB / 0.6123 GB, free: 17.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003158/0.5812, allocations: 59.97 kB / 0.6124 GB, free: 16.98 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: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 2 * 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.0008811/0.5821, allocations: 305 kB / 0.6127 GB, free: 16.67 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000405/0.5825, allocations: 122.5 kB / 0.6128 GB, free: 16.55 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01151/0.594, allocations: 3.873 MB / 0.6166 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-05/0.5941, allocations: 12 kB / 0.6166 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.675e-05/0.5941, allocations: 11.94 kB / 0.6166 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.185e-05/0.5942, allocations: 3.984 kB / 0.6166 GB, free: 12.62 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.01425/0.6084, allocations: 5.453 MB / 0.6219 GB, free: 7.059 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/0.6085, allocations: 0.6875 kB / 0.6219 GB, free: 7.059 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006519/0.6091, allocations: 107.8 kB / 0.622 GB, free: 6.953 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004989/0.6142, allocations: 1.612 MB / 0.6236 GB, free: 5.336 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001982/0.6144, allocations: 24 kB / 0.6236 GB, free: 5.312 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01789/0.6323, allocations: 8.752 MB / 0.6322 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.6323, allocations: 0 / 0.6322 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01465/0.647, allocations: 4.738 MB / 0.6368 GB, free: 7.512 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000587/0.6476, allocations: 223.2 kB / 0.637 GB, free: 7.273 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005165/0.6482, allocations: 24 kB / 0.637 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00148/0.6497, allocations: 107.9 kB / 0.6371 GB, free: 7.145 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007363/0.6504, allocations: 188.7 kB / 0.6373 GB, free: 6.957 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001623/0.6506, allocations: 27.98 kB / 0.6373 GB, free: 6.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001398/0.652, allocations: 0.7235 MB / 0.638 GB, free: 6.199 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.652, allocations: 0 / 0.638 GB, free: 6.199 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002014/0.654, allocations: 479.4 kB / 0.6385 GB, free: 5.73 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * 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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01485/0.6689, allocations: 5.323 MB / 0.6437 GB, free: 372 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006619/0.6756, allocations: 2.507 MB / 0.6461 GB, free: 13.82 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.6756, allocations: 0 / 0.6461 GB, free: 13.82 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004449/0.68, allocations: 1.601 MB / 0.6477 GB, free: 12.18 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001601/0.6817, allocations: 115.4 kB / 0.6478 GB, free: 12.07 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04321/0.7249, allocations: 17.16 MB / 0.6646 GB, free: 10.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009808/0.7259, allocations: 1.128 MB / 0.6657 GB, free: 9.34 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006963/0.7267, allocations: 116.3 kB / 0.6658 GB, free: 9.227 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008404/0.7275, allocations: 467.3 kB / 0.6662 GB, free: 8.77 MB / 478.1 MB Notification: Performance of SimCode: time 6.92e-07/0.7275, allocations: 0 / 0.6662 GB, free: 8.77 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05966/0.7872, allocations: 31.69 MB / 0.6972 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002508/0.7875, allocations: 260.7 kB / 0.6974 GB, free: 9.262 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.71/3.498, allocations: 1.422 kB / 0.6974 GB, free: 9.262 MB / 0.4981 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)