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.001276/0.001276, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.288/1.288, allocations: 222.9 MB / 239 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.001355/0.001355, allocations: 188.2 kB / 289.2 MB, free: 2.492 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4404/0.4404, allocations: 78.52 MB / 417.9 MB, free: 3.352 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 79.88 kB / 497 MB, free: 6.652 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1352, allocations: 68.18 MB / 0.552 GB, free: 2.434 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.2442/0.3794, allocations: 6.869 MB / 0.5587 GB, free: 35.78 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004297/0.3837, allocations: 1.98 MB / 0.5606 GB, free: 35.24 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001293/0.385, allocations: 14.38 kB / 0.5606 GB, free: 35.24 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008398/0.3859, allocations: 187.8 kB / 0.5608 GB, free: 35.23 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002298/0.3883, allocations: 0.7039 MB / 0.5615 GB, free: 35.07 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.001306/0.3896, allocations: 0.5855 MB / 0.5621 GB, free: 35 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001907/0.3915, allocations: 1.579 MB / 0.5636 GB, free: 34.91 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004628/0.392, allocations: 321.3 kB / 0.5639 GB, free: 34.87 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009419/0.3929, allocations: 0.6667 MB / 0.5646 GB, free: 34.72 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000766/0.3937, allocations: 0.8186 MB / 0.5654 GB, free: 34.52 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001815/0.3939, allocations: 122.1 kB / 0.5655 GB, free: 34.52 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005121/0.3944, allocations: 261.3 kB / 0.5657 GB, free: 34.51 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002301/0.3946, allocations: 325.2 kB / 0.566 GB, free: 34.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005016/0.3951, allocations: 0.6751 MB / 0.5667 GB, free: 34.19 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001386/0.3965, allocations: 1.642 MB / 0.5683 GB, free: 33.8 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.3966, allocations: 0 / 0.5683 GB, free: 33.8 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3966, allocations: 1.875 kB / 0.5683 GB, free: 33.8 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.003e-05/0.3966, allocations: 0 / 0.5683 GB, free: 33.8 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.008515/0.4051, allocations: 2.682 MB / 0.5709 GB, free: 32.82 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.4052, allocations: 10.2 kB / 0.5709 GB, free: 32.82 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001436/0.4053, allocations: 131.6 kB / 0.5711 GB, free: 32.79 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00503/0.4104, allocations: 0.7765 MB / 0.5718 GB, free: 32.69 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001569/0.412, allocations: 0.8823 MB / 0.5727 GB, free: 32.28 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002426/0.4122, allocations: 258.5 kB / 0.5729 GB, free: 32.09 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001605/0.4124, allocations: 87.86 kB / 0.573 GB, free: 32.09 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001954/0.4144, allocations: 1.086 MB / 0.5741 GB, free: 32 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.4144, allocations: 1.734 kB / 0.5741 GB, free: 32 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.91e-05/0.4145, allocations: 33.59 kB / 0.5741 GB, free: 32 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.4145, allocations: 23.91 kB / 0.5741 GB, free: 32 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/0.4163, allocations: 0.9858 MB / 0.5751 GB, free: 31.99 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.00611/0.4224, allocations: 3.822 MB / 0.5788 GB, free: 30.22 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006802/0.4292, allocations: 2.375 MB / 0.5811 GB, free: 29.4 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.4308, allocations: 0.6754 MB / 0.5818 GB, free: 29.13 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000121/0.431, allocations: 18.38 kB / 0.5818 GB, free: 29.13 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001629/0.4326, allocations: 0.8203 MB / 0.5826 GB, free: 28.81 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.567e-06/0.4326, allocations: 4 kB / 0.5826 GB, free: 28.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.0281/0.4607, allocations: 7.079 MB / 0.5895 GB, free: 27.42 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/0.4608, allocations: 122 kB / 0.5896 GB, free: 27.29 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001806/0.4626, allocations: 1.081 MB / 0.5907 GB, free: 26.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002806/0.4629, allocations: 46.78 kB / 0.5907 GB, free: 26.8 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003265/0.4633, allocations: 494.1 kB / 0.5912 GB, free: 26.41 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003643/0.4636, allocations: 360.7 kB / 0.5916 GB, free: 26.13 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005225/0.4642, allocations: 288.7 kB / 0.5918 GB, free: 26 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.684e-05/0.4642, allocations: 305.2 kB / 0.5921 GB, free: 25.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001607/0.4659, allocations: 0.766 MB / 0.5929 GB, free: 25.41 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00166/0.4675, allocations: 0.9327 MB / 0.5938 GB, free: 24.99 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02359/0.4911, allocations: 5.595 MB / 0.5993 GB, free: 23.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.647e-05/0.4912, allocations: 1.875 kB / 0.5993 GB, free: 23.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01494/0.5061, allocations: 4.335 MB / 0.6035 GB, free: 22.05 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8e-05/0.5063, allocations: 61.25 kB / 0.6035 GB, free: 21.99 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/0.5063, allocations: 2.781 kB / 0.6036 GB, free: 21.99 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0056/0.5119, allocations: 1.513 MB / 0.605 GB, free: 21.71 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001647/0.5136, allocations: 297.6 kB / 0.6053 GB, free: 21.69 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0186/0.5322, allocations: 8.275 MB / 0.6134 GB, free: 16.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002069/0.5343, allocations: 198.8 kB / 0.6136 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002979/0.5346, allocations: 56.59 kB / 0.6136 GB, free: 15.82 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.000839/0.5355, allocations: 300.7 kB / 0.6139 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004057/0.5359, allocations: 135.2 kB / 0.6141 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01187/0.5478, allocations: 3.873 MB / 0.6178 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.166e-05/0.5479, allocations: 12 kB / 0.6178 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.533e-05/0.5479, allocations: 4 kB / 0.6178 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.639e-05/0.5479, allocations: 9.578 kB / 0.6179 GB, free: 11.46 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.01422/0.5622, allocations: 5.45 MB / 0.6232 GB, free: 5.898 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/0.5622, allocations: 3.984 kB / 0.6232 GB, free: 5.895 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006189/0.5628, allocations: 109.4 kB / 0.6233 GB, free: 5.789 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004866/0.5677, allocations: 1.606 MB / 0.6249 GB, free: 4.176 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001978/0.568, allocations: 20 kB / 0.6249 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01926/0.5872, allocations: 9.617 MB / 0.6343 GB, free: 10.24 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.5873, allocations: 0 / 0.6343 GB, free: 10.24 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01451/0.6018, allocations: 4.737 MB / 0.6389 GB, free: 5.469 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006015/0.6024, allocations: 223.2 kB / 0.6391 GB, free: 5.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004462/0.6029, allocations: 24 kB / 0.6391 GB, free: 5.207 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/0.6044, allocations: 107.9 kB / 0.6392 GB, free: 5.102 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006818/0.6051, allocations: 192.7 kB / 0.6394 GB, free: 4.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/0.6052, allocations: 32.86 kB / 0.6394 GB, free: 4.879 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001246/0.6065, allocations: 0.7283 MB / 0.6402 GB, free: 4.145 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6065, allocations: 0 / 0.6402 GB, free: 4.145 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001761/0.6082, allocations: 467.5 kB / 0.6406 GB, free: 3.688 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.01489/0.6232, allocations: 5.328 MB / 0.6458 GB, free: 14.32 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007009/0.6302, allocations: 2.543 MB / 0.6483 GB, free: 11.75 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.361e-06/0.6302, allocations: 0 / 0.6483 GB, free: 11.75 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00457/0.6348, allocations: 1.606 MB / 0.6499 GB, free: 10.11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001488/0.6363, allocations: 121.4 kB / 0.65 GB, free: 9.988 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04109/0.6775, allocations: 17.16 MB / 0.6667 GB, free: 8.402 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008688/0.6784, allocations: 1.124 MB / 0.6678 GB, free: 7.25 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006631/0.6791, allocations: 117.7 kB / 0.6679 GB, free: 7.137 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007355/0.6798, allocations: 475.9 kB / 0.6684 GB, free: 6.672 MB / 478.1 MB Notification: Performance of SimCode: time 5.91e-07/0.6798, allocations: 0 / 0.6684 GB, free: 6.672 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06061/0.7404, allocations: 32.99 MB / 0.7006 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/0.7407, allocations: 264.2 kB / 0.7009 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.646/3.386, allocations: 0 / 0.7009 GB, free: 5.898 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)