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.00565/0.00565, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.248/1.248, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001193/0.001193, allocations: 188.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4808/0.4808, allocations: 91.91 MB / 431.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 81.47 kB / 0.5723 GB, free: 33.76 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1057, allocations: 71.28 MB / 0.6419 GB, free: 4.102 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.006318/0.1121, allocations: 6.581 MB / 0.6483 GB, free: 13.49 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003656/0.1158, allocations: 1.966 MB / 0.6502 GB, free: 11.52 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006739/0.1165, allocations: 16 kB / 0.6502 GB, free: 11.5 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006445/0.1171, allocations: 234 kB / 0.6505 GB, free: 11.27 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00194/0.1191, allocations: 0.8508 MB / 0.6513 GB, free: 10.42 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.1204, allocations: 0.6328 MB / 0.6519 GB, free: 9.793 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001553/0.1219, allocations: 1.592 MB / 0.6535 GB, free: 8.195 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004346/0.1224, allocations: 329.2 kB / 0.6538 GB, free: 7.867 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007294/0.1231, allocations: 0.6535 MB / 0.6544 GB, free: 7.211 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007902/0.1239, allocations: 0.8245 MB / 0.6552 GB, free: 6.383 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001631/0.1241, allocations: 120 kB / 0.6553 GB, free: 6.266 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004101/0.1245, allocations: 259.9 kB / 0.6556 GB, free: 6.012 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000252/0.1248, allocations: 330.6 kB / 0.6559 GB, free: 5.688 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004997/0.1253, allocations: 0.6719 MB / 0.6566 GB, free: 5.012 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001457/0.1267, allocations: 1.663 MB / 0.6582 GB, free: 3.344 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.81e-06/0.1267, allocations: 0 / 0.6582 GB, free: 3.344 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1268, allocations: 0 / 0.6582 GB, free: 3.344 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.681e-05/0.1268, allocations: 0 / 0.6582 GB, free: 3.344 MB / 462.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.007875/0.1347, allocations: 2.682 MB / 0.6608 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.1347, allocations: 12.03 kB / 0.6608 GB, free: 0.582 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001348/0.1348, allocations: 126.6 kB / 0.6609 GB, free: 460 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004763/0.1396, allocations: 0.767 MB / 0.6617 GB, free: 15.68 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001347/0.141, allocations: 0.8941 MB / 0.6625 GB, free: 14.73 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002451/0.1412, allocations: 260.2 kB / 0.6628 GB, free: 14.44 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001546/0.1414, allocations: 80 kB / 0.6629 GB, free: 14.36 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001892/0.1433, allocations: 1.083 MB / 0.6639 GB, free: 13.27 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.1433, allocations: 7.969 kB / 0.6639 GB, free: 13.26 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.416e-05/0.1434, allocations: 32 kB / 0.664 GB, free: 13.23 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.1435, allocations: 20 kB / 0.664 GB, free: 13.21 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001859/0.1453, allocations: 0.9916 MB / 0.665 GB, free: 12.21 MB / 478.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.006124/0.1515, allocations: 3.832 MB / 0.6687 GB, free: 8.199 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006614/0.1581, allocations: 2.365 MB / 0.671 GB, free: 5.738 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001268/0.1594, allocations: 0.6801 MB / 0.6717 GB, free: 5.055 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001093/0.1595, allocations: 16.98 kB / 0.6717 GB, free: 5.039 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001451/0.161, allocations: 0.8176 MB / 0.6725 GB, free: 4.203 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 2.675e-06/0.161, allocations: 0 / 0.6725 GB, free: 4.203 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.02569/0.1867, allocations: 7.077 MB / 0.6794 GB, free: 13.06 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/0.1868, allocations: 123.8 kB / 0.6795 GB, free: 12.92 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001466/0.1882, allocations: 1.079 MB / 0.6806 GB, free: 11.82 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001792/0.1884, allocations: 45.7 kB / 0.6806 GB, free: 11.77 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003246/0.1888, allocations: 488.8 kB / 0.6811 GB, free: 11.29 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003427/0.1891, allocations: 359 kB / 0.6814 GB, free: 10.93 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004738/0.1896, allocations: 287.4 kB / 0.6817 GB, free: 10.65 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.713e-05/0.1897, allocations: 309.1 kB / 0.682 GB, free: 10.34 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/0.1912, allocations: 0.7613 MB / 0.6827 GB, free: 9.582 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/0.1927, allocations: 0.9304 MB / 0.6836 GB, free: 8.613 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0213/0.214, allocations: 5.583 MB / 0.6891 GB, free: 2.945 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.136e-06/0.2141, allocations: 0 / 0.6891 GB, free: 2.945 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01205/0.2261, allocations: 4.339 MB / 0.6933 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.689e-05/0.2262, allocations: 63.39 kB / 0.6934 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.2263, allocations: 4 kB / 0.6934 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004866/0.2311, allocations: 1.509 MB / 0.6949 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001364/0.2325, allocations: 303.5 kB / 0.6952 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01753/0.2501, allocations: 8.26 MB / 0.7032 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001742/0.2518, allocations: 202.8 kB / 0.7034 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001617/0.252, allocations: 59.97 kB / 0.7035 GB, free: 4.016 MB / 0.4981 GB 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.0005789/0.2526, allocations: 296.3 kB / 0.7038 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/0.2528, allocations: 134.3 kB / 0.7039 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01158/0.2644, allocations: 3.865 MB / 0.7077 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.2645, allocations: 12 kB / 0.7077 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.2645, allocations: 8 kB / 0.7077 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.2645, allocations: 7.969 kB / 0.7077 GB, free: 15.66 MB / 0.5137 GB 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.01362/0.2781, allocations: 5.459 MB / 0.713 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/0.2782, allocations: 0 / 0.713 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005901/0.2788, allocations: 103.8 kB / 0.7131 GB, free: 9.984 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005134/0.2839, allocations: 1.594 MB / 0.7147 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/0.2841, allocations: 24 kB / 0.7147 GB, free: 8.359 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0186/0.3027, allocations: 9.622 MB / 0.7241 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3027, allocations: 0 / 0.7241 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01312/0.3159, allocations: 4.742 MB / 0.7287 GB, free: 9.672 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003806/0.3163, allocations: 219.3 kB / 0.7289 GB, free: 9.438 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/0.3165, allocations: 24 kB / 0.729 GB, free: 9.414 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.3175, allocations: 107.9 kB / 0.7291 GB, free: 9.309 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005652/0.3181, allocations: 192.7 kB / 0.7292 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.277e-05/0.3182, allocations: 28 kB / 0.7293 GB, free: 9.09 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001001/0.3192, allocations: 0.7273 MB / 0.73 GB, free: 8.355 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/0.3192, allocations: 4 kB / 0.73 GB, free: 8.352 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001285/0.3205, allocations: 471.5 kB / 0.7304 GB, free: 7.891 MB / 0.5294 GB 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.01341/0.3339, allocations: 5.324 MB / 0.7356 GB, free: 2.52 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005623/0.3396, allocations: 2.497 MB / 0.7381 GB, free: 15.98 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3396, allocations: 0 / 0.7381 GB, free: 15.98 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003773/0.3434, allocations: 1.579 MB / 0.7396 GB, free: 14.36 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009124/0.3443, allocations: 128.4 kB / 0.7397 GB, free: 14.23 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03473/0.3791, allocations: 16 MB / 0.7554 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006016/0.3797, allocations: 1.116 MB / 0.7565 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0004669/0.3802, allocations: 120 kB / 0.7566 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005728/0.3808, allocations: 471.3 kB / 0.757 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of SimCode: time 7.71e-07/0.3808, allocations: 0 / 0.757 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2935/0.6743, allocations: 34.23 MB / 0.7904 GB, free: 112.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.79, allocations: 10.16 kB / 0.7905 GB, free: 112.1 MB / 0.5606 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)