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.001292/0.001292, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 222.9 MB / 239.2 MB, free: 4.57 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.002052/0.002052, allocations: 188.5 kB / 289.6 MB, free: 2.293 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5752/0.5752, allocations: 91.91 MB / 431.6 MB, free: 9.211 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001772, allocations: 79.86 kB / 0.502 GB, free: 7.578 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.448/0.4498, allocations: 71.27 MB / 0.5716 GB, free: 36.65 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.006834/0.4567, allocations: 6.58 MB / 0.578 GB, free: 32.85 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004266/0.461, allocations: 1.965 MB / 0.5799 GB, free: 31.46 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007471/0.4617, allocations: 16.56 kB / 0.5799 GB, free: 31.46 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007461/0.4625, allocations: 235.8 kB / 0.5802 GB, free: 31.34 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001591/0.4641, allocations: 0.8059 MB / 0.5809 GB, free: 30.81 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001159/0.4653, allocations: 0.6302 MB / 0.5816 GB, free: 30.5 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001624/0.4669, allocations: 1.579 MB / 0.5831 GB, free: 29.72 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005209/0.4675, allocations: 323.4 kB / 0.5834 GB, free: 29.59 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007209/0.4682, allocations: 0.646 MB / 0.584 GB, free: 29.27 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007437/0.4689, allocations: 0.8245 MB / 0.5848 GB, free: 28.88 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001796/0.4691, allocations: 121.3 kB / 0.585 GB, free: 28.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004618/0.4696, allocations: 262.6 kB / 0.5852 GB, free: 28.83 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002554/0.4699, allocations: 327.6 kB / 0.5855 GB, free: 28.62 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004866/0.4704, allocations: 0.6744 MB / 0.5862 GB, free: 28.16 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001408/0.4718, allocations: 1.625 MB / 0.5878 GB, free: 27.43 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.4718, allocations: 3 kB / 0.5878 GB, free: 27.43 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4718, allocations: 4 kB / 0.5878 GB, free: 27.43 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.976e-05/0.4718, allocations: 0 / 0.5878 GB, free: 27.43 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.008822/0.4807, allocations: 2.686 MB / 0.5904 GB, free: 26.16 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.4807, allocations: 14 kB / 0.5904 GB, free: 26.15 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001527/0.4809, allocations: 125.2 kB / 0.5905 GB, free: 26.06 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00497/0.4859, allocations: 0.774 MB / 0.5913 GB, free: 25.91 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001574/0.4874, allocations: 0.8852 MB / 0.5922 GB, free: 25.31 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002437/0.4877, allocations: 258.4 kB / 0.5924 GB, free: 25.09 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001627/0.4879, allocations: 86.53 kB / 0.5925 GB, free: 25.06 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002083/0.49, allocations: 1.091 MB / 0.5935 GB, free: 24.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.49, allocations: 3.938 kB / 0.5935 GB, free: 24.63 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.59e-05/0.4901, allocations: 30.91 kB / 0.5936 GB, free: 24.61 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.186e-05/0.4901, allocations: 17.5 kB / 0.5936 GB, free: 24.61 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002141/0.4923, allocations: 0.9858 MB / 0.5946 GB, free: 24.28 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.007209/0.4995, allocations: 3.857 MB / 0.5983 GB, free: 22.07 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007671/0.5072, allocations: 2.362 MB / 0.6006 GB, free: 21.24 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001551/0.5088, allocations: 0.682 MB / 0.6013 GB, free: 20.97 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001058/0.5089, allocations: 16.41 kB / 0.6013 GB, free: 20.96 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001928/0.5108, allocations: 0.8216 MB / 0.6021 GB, free: 20.64 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 4.649e-06/0.5108, allocations: 3.984 kB / 0.6021 GB, free: 20.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03133/0.5422, allocations: 7.086 MB / 0.609 GB, free: 19.25 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.428e-05/0.5423, allocations: 117.7 kB / 0.6092 GB, free: 19.12 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002086/0.5444, allocations: 1.081 MB / 0.6102 GB, free: 18.67 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002473/0.5446, allocations: 46.42 kB / 0.6103 GB, free: 18.62 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003661/0.545, allocations: 490.6 kB / 0.6107 GB, free: 18.24 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000425/0.5454, allocations: 360.6 kB / 0.6111 GB, free: 17.96 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004993/0.546, allocations: 286.4 kB / 0.6113 GB, free: 17.83 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.09e-05/0.546, allocations: 306.3 kB / 0.6116 GB, free: 17.53 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001568/0.5476, allocations: 0.7594 MB / 0.6124 GB, free: 17.18 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001717/0.5493, allocations: 0.9458 MB / 0.6133 GB, free: 16.62 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0229/0.5722, allocations: 5.586 MB / 0.6187 GB, free: 13.67 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.375e-05/0.5723, allocations: 4 kB / 0.6188 GB, free: 13.67 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.0123/0.5846, allocations: 4.332 MB / 0.623 GB, free: 9.309 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.186e-05/0.5847, allocations: 59.41 kB / 0.623 GB, free: 9.238 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.5847, allocations: 4 kB / 0.623 GB, free: 9.234 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004968/0.5897, allocations: 1.516 MB / 0.6245 GB, free: 7.715 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.5911, allocations: 299.6 kB / 0.6248 GB, free: 7.422 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01753/0.6087, allocations: 8.268 MB / 0.6329 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002022/0.6107, allocations: 206.8 kB / 0.6331 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.6109, allocations: 51.98 kB / 0.6331 GB, free: 14.74 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.0005969/0.6115, allocations: 308.3 kB / 0.6334 GB, free: 14.42 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002553/0.6117, allocations: 130.3 kB / 0.6335 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01293/0.6247, allocations: 3.861 MB / 0.6373 GB, free: 10.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/0.6247, allocations: 8 kB / 0.6373 GB, free: 10.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.6247, allocations: 11.94 kB / 0.6373 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.182e-05/0.6248, allocations: 7.969 kB / 0.6373 GB, free: 10.38 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.01513/0.6399, allocations: 5.465 MB / 0.6427 GB, free: 4.801 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.6399, allocations: 7.938 kB / 0.6427 GB, free: 4.793 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005652/0.6405, allocations: 95.89 kB / 0.6428 GB, free: 4.699 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005558/0.6461, allocations: 1.602 MB / 0.6443 GB, free: 3.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/0.6463, allocations: 23.94 kB / 0.6444 GB, free: 3.066 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02063/0.6669, allocations: 9.638 MB / 0.6538 GB, free: 9.137 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.6669, allocations: 4 kB / 0.6538 GB, free: 9.133 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01465/0.6816, allocations: 4.733 MB / 0.6584 GB, free: 4.367 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005979/0.6822, allocations: 219.3 kB / 0.6586 GB, free: 4.133 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002051/0.6825, allocations: 20 kB / 0.6586 GB, free: 4.113 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/0.6836, allocations: 111.9 kB / 0.6587 GB, free: 4.004 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006266/0.6843, allocations: 196.8 kB / 0.6589 GB, free: 3.809 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.06e-05/0.6844, allocations: 28 kB / 0.659 GB, free: 3.781 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001172/0.6855, allocations: 0.7312 MB / 0.6597 GB, free: 3.043 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6856, allocations: 0 / 0.6597 GB, free: 3.043 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001565/0.6871, allocations: 471.5 kB / 0.6601 GB, free: 2.582 MB / 462.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.01488/0.702, allocations: 5.324 MB / 0.6653 GB, free: 13.21 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007025/0.7091, allocations: 2.532 MB / 0.6678 GB, free: 10.65 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.7091, allocations: 0 / 0.6678 GB, free: 10.65 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004474/0.7136, allocations: 1.582 MB / 0.6693 GB, free: 9.023 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.7148, allocations: 121.8 kB / 0.6695 GB, free: 8.906 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04034/0.7552, allocations: 16.76 MB / 0.6858 GB, free: 7.684 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008321/0.7561, allocations: 1.12 MB / 0.6869 GB, free: 6.535 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0007327/0.7568, allocations: 128 kB / 0.687 GB, free: 6.406 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006986/0.7575, allocations: 471.3 kB / 0.6875 GB, free: 5.949 MB / 494.1 MB Notification: Performance of SimCode: time 8.72e-07/0.7575, allocations: 0 / 0.6875 GB, free: 5.949 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06903/0.8266, allocations: 33.81 MB / 0.7205 GB, free: 4.367 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/13.17, allocations: 18.23 kB / 0.7205 GB, free: 4.355 MB / 0.5137 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)