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.00129/0.00129, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.359/1.359, allocations: 222.9 MB / 239 MB, free: 4.703 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.001293/0.001293, allocations: 192.4 kB / 289.3 MB, free: 2.445 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.514/0.514, allocations: 91.9 MB / 431.3 MB, free: 9.398 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001436, allocations: 76.22 kB / 0.5015 GB, free: 7.961 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3735, allocations: 71.26 MB / 0.5711 GB, free: 36.04 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.006168/0.3797, allocations: 6.898 MB / 0.5778 GB, free: 32.05 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004148/0.3839, allocations: 1.992 MB / 0.5798 GB, free: 30.98 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009171/0.3848, allocations: 10.34 kB / 0.5798 GB, free: 30.98 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007225/0.3856, allocations: 188.4 kB / 0.58 GB, free: 30.91 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002004/0.3876, allocations: 0.7049 MB / 0.5806 GB, free: 30.46 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.3888, allocations: 0.5941 MB / 0.5812 GB, free: 30.14 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001495/0.3904, allocations: 1.578 MB / 0.5828 GB, free: 29.36 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004279/0.3908, allocations: 326.6 kB / 0.5831 GB, free: 29.23 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000699/0.3915, allocations: 0.649 MB / 0.5837 GB, free: 28.9 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006767/0.3922, allocations: 0.8263 MB / 0.5845 GB, free: 28.51 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001475/0.3923, allocations: 124.8 kB / 0.5846 GB, free: 28.5 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004675/0.3928, allocations: 262.8 kB / 0.5849 GB, free: 28.46 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002215/0.3931, allocations: 332.8 kB / 0.5852 GB, free: 28.24 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004528/0.3935, allocations: 0.6713 MB / 0.5859 GB, free: 27.79 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00135/0.3949, allocations: 1.63 MB / 0.5874 GB, free: 27.06 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3949, allocations: 1.125 kB / 0.5874 GB, free: 27.06 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3949, allocations: 0 / 0.5874 GB, free: 27.06 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.3949, allocations: 0 / 0.5874 GB, free: 27.06 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.008805/0.4037, allocations: 2.685 MB / 0.5901 GB, free: 25.79 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.4038, allocations: 8.844 kB / 0.5901 GB, free: 25.79 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000152/0.404, allocations: 128.9 kB / 0.5902 GB, free: 25.7 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005069/0.409, allocations: 0.776 MB / 0.591 GB, free: 25.54 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001615/0.4107, allocations: 0.8909 MB / 0.5918 GB, free: 24.93 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002535/0.4109, allocations: 253.1 kB / 0.5921 GB, free: 24.72 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001796/0.4111, allocations: 86.03 kB / 0.5922 GB, free: 24.69 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002066/0.4132, allocations: 1.088 MB / 0.5932 GB, free: 24.27 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.4132, allocations: 3.938 kB / 0.5932 GB, free: 24.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.022e-05/0.4133, allocations: 34.62 kB / 0.5933 GB, free: 24.24 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.4134, allocations: 22.69 kB / 0.5933 GB, free: 24.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00193/0.4153, allocations: 0.9852 MB / 0.5942 GB, free: 23.91 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.006865/0.4222, allocations: 3.852 MB / 0.598 GB, free: 21.7 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007586/0.4298, allocations: 2.37 MB / 0.6003 GB, free: 20.87 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001619/0.4314, allocations: 0.68 MB / 0.601 GB, free: 20.6 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001229/0.4316, allocations: 12.88 kB / 0.601 GB, free: 20.6 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00185/0.4334, allocations: 0.8225 MB / 0.6018 GB, free: 20.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 7.955e-06/0.4335, allocations: 0 / 0.6018 GB, free: 20.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03134/0.4648, allocations: 7.082 MB / 0.6087 GB, free: 18.89 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.98e-05/0.4649, allocations: 122.1 kB / 0.6088 GB, free: 18.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002636/0.4676, allocations: 1.086 MB / 0.6099 GB, free: 18.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003152/0.4679, allocations: 45.86 kB / 0.6099 GB, free: 18.26 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000489/0.4684, allocations: 491 kB / 0.6104 GB, free: 17.88 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006449/0.4691, allocations: 357 kB / 0.6107 GB, free: 17.6 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001012/0.4701, allocations: 286 kB / 0.611 GB, free: 17.47 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.68e-05/0.4702, allocations: 305.6 kB / 0.6113 GB, free: 17.17 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001983/0.4722, allocations: 0.7607 MB / 0.612 GB, free: 16.89 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002134/0.4743, allocations: 0.9384 MB / 0.613 GB, free: 16.45 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02478/0.4991, allocations: 5.594 MB / 0.6184 GB, free: 13.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.45e-05/0.4992, allocations: 0 / 0.6184 GB, free: 13.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01282/0.512, allocations: 4.332 MB / 0.6227 GB, free: 9.207 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.766e-05/0.5121, allocations: 63.41 kB / 0.6227 GB, free: 9.133 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.5121, allocations: 11.94 kB / 0.6227 GB, free: 9.121 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004986/0.5171, allocations: 1.509 MB / 0.6242 GB, free: 7.609 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001534/0.5187, allocations: 291.6 kB / 0.6245 GB, free: 7.324 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01756/0.5363, allocations: 8.28 MB / 0.6326 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002157/0.5385, allocations: 202.8 kB / 0.6328 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002987/0.5388, allocations: 51.98 kB / 0.6328 GB, free: 14.63 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.0008737/0.5397, allocations: 308.3 kB / 0.6331 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003995/0.5401, allocations: 130.3 kB / 0.6332 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01266/0.5528, allocations: 3.865 MB / 0.637 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.179e-05/0.5528, allocations: 15.98 kB / 0.637 GB, free: 10.28 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.112e-05/0.5528, allocations: 4 kB / 0.637 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.761e-05/0.5529, allocations: 7.984 kB / 0.637 GB, free: 10.27 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.568, allocations: 5.461 MB / 0.6424 GB, free: 4.691 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.5681, allocations: 3.984 kB / 0.6424 GB, free: 4.688 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005985/0.5687, allocations: 99.84 kB / 0.6425 GB, free: 4.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005394/0.5741, allocations: 1.598 MB / 0.644 GB, free: 2.984 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001604/0.5742, allocations: 16 kB / 0.644 GB, free: 2.969 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02045/0.5947, allocations: 9.642 MB / 0.6535 GB, free: 9.035 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.5948, allocations: 0 / 0.6535 GB, free: 9.035 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01474/0.6095, allocations: 4.736 MB / 0.6581 GB, free: 4.266 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005368/0.6101, allocations: 215.3 kB / 0.6583 GB, free: 4.035 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004385/0.6105, allocations: 23.98 kB / 0.6583 GB, free: 4.012 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/0.612, allocations: 107.9 kB / 0.6584 GB, free: 3.906 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007119/0.6128, allocations: 196.7 kB / 0.6586 GB, free: 3.711 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.6129, allocations: 28 kB / 0.6586 GB, free: 3.684 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001233/0.6141, allocations: 0.7312 MB / 0.6593 GB, free: 2.945 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6142, allocations: 0 / 0.6593 GB, free: 2.945 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001787/0.616, allocations: 475.5 kB / 0.6598 GB, free: 2.48 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.01492/0.6309, allocations: 5.325 MB / 0.665 GB, free: 13.12 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006753/0.6377, allocations: 2.541 MB / 0.6675 GB, free: 10.54 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.6377, allocations: 128 / 0.6675 GB, free: 10.54 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004293/0.642, allocations: 1.593 MB / 0.669 GB, free: 8.902 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001496/0.6436, allocations: 116.5 kB / 0.6691 GB, free: 8.785 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0418/0.6854, allocations: 17.14 MB / 0.6859 GB, free: 7.188 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007516/0.6862, allocations: 1.12 MB / 0.687 GB, free: 6.039 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006497/0.6868, allocations: 120 kB / 0.6871 GB, free: 5.918 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007474/0.6876, allocations: 479.2 kB / 0.6875 GB, free: 5.453 MB / 494.1 MB Notification: Performance of SimCode: time 9.92e-07/0.6876, allocations: 0 / 0.6875 GB, free: 5.453 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06039/0.748, allocations: 32.96 MB / 0.7197 GB, free: 4.758 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002314/0.7483, allocations: 263.3 kB / 0.72 GB, free: 4.414 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.763/3.512, allocations: 3.875 kB / 0.72 GB, free: 4.414 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)