Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_dev_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.0007994/0.0007993, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.587/1.587, allocations: 223.3 MB / 239.4 MB, free: 5.426 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.00141/0.001411, allocations: 176.5 kB / 290.6 MB, free: 2.09 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.613/0.613, allocations: 91.92 MB / 433.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004434/0.0004435, allocations: 8.375 kB / 0.5049 GB, free: 7.176 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4602/0.4607, allocations: 72.47 MB / 0.5756 GB, free: 36.89 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.005269/0.466, allocations: 6.423 MB / 0.5819 GB, free: 32.58 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004082/0.4701, allocations: 2.004 MB / 0.5839 GB, free: 31.16 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008693/0.471, allocations: 13.19 kB / 0.5839 GB, free: 31.16 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006802/0.4717, allocations: 191.7 kB / 0.5841 GB, free: 31.08 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001946/0.4737, allocations: 0.6997 MB / 0.5847 GB, free: 30.62 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001247/0.4749, allocations: 0.5819 MB / 0.5853 GB, free: 30.32 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001475/0.4764, allocations: 1.501 MB / 0.5868 GB, free: 29.61 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003865/0.4768, allocations: 281 kB / 0.587 GB, free: 29.49 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006236/0.4774, allocations: 0.566 MB / 0.5876 GB, free: 29.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006801/0.4781, allocations: 0.754 MB / 0.5883 GB, free: 28.89 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.4783, allocations: 64.22 kB / 0.5884 GB, free: 28.89 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004374/0.4787, allocations: 188.1 kB / 0.5886 GB, free: 28.84 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002157/0.4789, allocations: 260.9 kB / 0.5888 GB, free: 28.7 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004624/0.4794, allocations: 0.6208 MB / 0.5894 GB, free: 28.28 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001329/0.4807, allocations: 1.551 MB / 0.5909 GB, free: 27.7 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4808, allocations: 0 / 0.5909 GB, free: 27.7 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4808, allocations: 1.156 kB / 0.5909 GB, free: 27.7 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.432e-05/0.4808, allocations: 0 / 0.5909 GB, free: 27.7 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.00845/0.4892, allocations: 2.492 MB / 0.5934 GB, free: 26.58 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.4893, allocations: 9.469 kB / 0.5934 GB, free: 26.58 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003239/0.4896, allocations: 126.1 kB / 0.5935 GB, free: 26.49 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005314/0.495, allocations: 0.782 MB / 0.5943 GB, free: 26.33 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001662/0.4966, allocations: 0.8788 MB / 0.5951 GB, free: 25.74 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003014/0.497, allocations: 270 kB / 0.5954 GB, free: 25.52 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001949/0.4972, allocations: 90.75 kB / 0.5955 GB, free: 25.48 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002591/0.4998, allocations: 1.153 MB / 0.5966 GB, free: 25.06 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/0.4998, allocations: 3.938 kB / 0.5966 GB, free: 25.05 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001046/0.4999, allocations: 31.31 kB / 0.5966 GB, free: 25.03 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.765e-05/0.4999, allocations: 17.66 kB / 0.5967 GB, free: 25.03 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002622/0.5026, allocations: 1.046 MB / 0.5977 GB, free: 24.69 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.01095/0.5135, allocations: 3.938 MB / 0.6015 GB, free: 22.48 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01123/0.5248, allocations: 2.903 MB / 0.6044 GB, free: 21.59 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002795/0.5277, allocations: 0.7413 MB / 0.6051 GB, free: 21.32 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001509/0.5279, allocations: 24.42 kB / 0.6051 GB, free: 21.3 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002769/0.5307, allocations: 0.8795 MB / 0.606 GB, free: 20.98 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 5.67e-06/0.5307, allocations: 0 / 0.606 GB, free: 20.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.04181/0.5725, allocations: 8.661 MB / 0.6144 GB, free: 19.41 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.5727, allocations: 129.4 kB / 0.6145 GB, free: 19.27 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003244/0.576, allocations: 1.082 MB / 0.6156 GB, free: 18.82 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005837/0.5766, allocations: 42.42 kB / 0.6156 GB, free: 18.78 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006161/0.5773, allocations: 498.7 kB / 0.6161 GB, free: 18.39 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000736/0.578, allocations: 360.5 kB / 0.6165 GB, free: 18.11 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003217/0.5783, allocations: 144.2 kB / 0.6166 GB, free: 18.01 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.5785, allocations: 305.1 kB / 0.6169 GB, free: 17.71 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002339/0.5808, allocations: 0.8229 MB / 0.6177 GB, free: 17.32 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002502/0.5833, allocations: 0.9964 MB / 0.6187 GB, free: 16.76 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02546/0.6088, allocations: 6.001 MB / 0.6245 GB, free: 11.02 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-05/0.6089, allocations: 4 kB / 0.6245 GB, free: 11.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01414/0.623, allocations: 5.172 MB / 0.6296 GB, free: 5.82 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001098/0.6232, allocations: 63.33 kB / 0.6296 GB, free: 5.746 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.242e-05/0.6232, allocations: 4 kB / 0.6296 GB, free: 5.742 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005933/0.6292, allocations: 1.798 MB / 0.6314 GB, free: 3.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/0.6311, allocations: 295.6 kB / 0.6317 GB, free: 3.652 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02083/0.6519, allocations: 8.621 MB / 0.6401 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002395/0.6544, allocations: 230.8 kB / 0.6403 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003734/0.6548, allocations: 59.97 kB / 0.6404 GB, free: 10.6 MB / 446.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.001065/0.6559, allocations: 296.3 kB / 0.6407 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004686/0.6563, allocations: 126.4 kB / 0.6408 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0149/0.6713, allocations: 4.721 MB / 0.6454 GB, free: 5.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.127e-05/0.6713, allocations: 8 kB / 0.6454 GB, free: 5.402 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.839e-05/0.6713, allocations: 11.94 kB / 0.6454 GB, free: 5.391 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-05/0.6714, allocations: 3.984 kB / 0.6454 GB, free: 5.387 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 postOpt removeSimpleEquations (simulation): time 0.01799/0.6894, allocations: 6.309 MB / 0.6516 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.59e-05/0.6894, allocations: 4 kB / 0.6516 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006971/0.6902, allocations: 103.8 kB / 0.6517 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006345/0.6965, allocations: 1.883 MB / 0.6535 GB, free: 12.97 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002546/0.6968, allocations: 23.98 kB / 0.6535 GB, free: 12.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02149/0.7183, allocations: 9.685 MB / 0.663 GB, free: 2.98 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.7184, allocations: 0 / 0.663 GB, free: 2.98 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01658/0.7349, allocations: 5.643 MB / 0.6685 GB, free: 13.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005616/0.7355, allocations: 227.3 kB / 0.6687 GB, free: 13.06 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003525/0.7359, allocations: 16 kB / 0.6687 GB, free: 13.05 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001468/0.7374, allocations: 147.8 kB / 0.6689 GB, free: 12.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006339/0.738, allocations: 200.6 kB / 0.6691 GB, free: 12.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/0.7382, allocations: 28 kB / 0.6691 GB, free: 12.68 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001367/0.7395, allocations: 0.7274 MB / 0.6698 GB, free: 11.94 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7395, allocations: 0 / 0.6698 GB, free: 11.94 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001744/0.7413, allocations: 471.5 kB / 0.6703 GB, free: 11.48 MB / 478.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 {(19,13,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0169/0.7582, allocations: 6.238 MB / 0.6764 GB, free: 5.195 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007115/0.7654, allocations: 2.779 MB / 0.6791 GB, free: 2.379 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.7654, allocations: 128 / 0.6791 GB, free: 2.379 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004823/0.7702, allocations: 1.808 MB / 0.6808 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/0.7716, allocations: 109 kB / 0.6809 GB, free: 432 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04386/0.8155, allocations: 18.97 MB / 0.6995 GB, free: 13 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008025/0.8163, allocations: 1.124 MB / 0.7006 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005933/0.817, allocations: 120.1 kB / 0.7007 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007301/0.8177, allocations: 467.3 kB / 0.7011 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of SimCode: time 5.61e-07/0.8177, allocations: 0 / 0.7011 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.238/3.056, allocations: 31.1 MB / 0.7315 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002827/3.056, allocations: 265.4 kB / 0.7317 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.785/5.841, allocations: 0 / 0.7317 GB, free: 12.12 MB / 0.5294 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)