Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",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.001244/0.001245, 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.549/1.549, allocations: 223.3 MB / 239.4 MB, free: 5.504 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.001485/0.001485, allocations: 172.6 kB / 290.6 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.6048/0.6048, allocations: 91.93 MB / 433.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004026/0.0004028, allocations: 8 kB / 0.5049 GB, free: 7.195 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4668/0.4673, allocations: 72.47 MB / 0.5756 GB, free: 36.68 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005065/0.4724, allocations: 6.073 MB / 0.5816 GB, free: 32.62 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003744/0.4762, allocations: 1.894 MB / 0.5834 GB, free: 31.28 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005606/0.4767, allocations: 10.47 kB / 0.5834 GB, free: 31.28 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004364/0.4772, allocations: 164.1 kB / 0.5836 GB, free: 31.21 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001574/0.4788, allocations: 0.6732 MB / 0.5842 GB, free: 30.77 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.4799, allocations: 0.5437 MB / 0.5848 GB, free: 30.5 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.4811, allocations: 1.312 MB / 0.5861 GB, free: 29.86 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003409/0.4815, allocations: 249 kB / 0.5863 GB, free: 29.76 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005267/0.482, allocations: 0.5117 MB / 0.5868 GB, free: 29.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005678/0.4826, allocations: 0.6898 MB / 0.5875 GB, free: 29.22 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.4827, allocations: 55.31 kB / 0.5875 GB, free: 29.22 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003756/0.4831, allocations: 184.9 kB / 0.5877 GB, free: 29.18 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001584/0.4833, allocations: 240.2 kB / 0.5879 GB, free: 29.04 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003543/0.4836, allocations: 0.5747 MB / 0.5885 GB, free: 28.65 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009798/0.4846, allocations: 1.406 MB / 0.5899 GB, free: 28.11 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.4846, allocations: 0 / 0.5899 GB, free: 28.11 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4846, allocations: 0 / 0.5899 GB, free: 28.11 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.4846, allocations: 4 kB / 0.5899 GB, free: 28.11 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.008353/0.493, allocations: 2.299 MB / 0.5921 GB, free: 27.1 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.281e-05/0.4931, allocations: 13.56 kB / 0.5921 GB, free: 27.09 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006138/0.4937, allocations: 119.4 kB / 0.5922 GB, free: 27.01 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006037/0.4998, allocations: 0.7711 MB / 0.593 GB, free: 26.86 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002814/0.5027, allocations: 0.7973 MB / 0.5938 GB, free: 26.29 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004931/0.5032, allocations: 269.8 kB / 0.594 GB, free: 26.07 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002821/0.5035, allocations: 74.22 kB / 0.5941 GB, free: 26.05 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003659/0.5072, allocations: 1.245 MB / 0.5953 GB, free: 25.58 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.2e-05/0.5072, allocations: 5.047 kB / 0.5953 GB, free: 25.57 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001005/0.5073, allocations: 29.59 kB / 0.5953 GB, free: 25.55 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.705e-05/0.5074, allocations: 18.44 kB / 0.5954 GB, free: 25.55 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002878/0.5103, allocations: 1.022 MB / 0.5964 GB, free: 25.23 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.01003/0.5203, allocations: 3.66 MB / 0.5999 GB, free: 23.05 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01063/0.531, allocations: 2.857 MB / 0.6027 GB, free: 22.2 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002615/0.5337, allocations: 0.7205 MB / 0.6034 GB, free: 21.94 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000181/0.5339, allocations: 18.2 kB / 0.6034 GB, free: 21.93 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.684e-05/0.534, allocations: 46.75 kB / 0.6035 GB, free: 21.88 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 5.44e-06/0.534, allocations: 0 / 0.6035 GB, free: 21.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.04099/0.575, allocations: 8.436 MB / 0.6117 GB, free: 20.39 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000182/0.5752, allocations: 102.5 kB / 0.6118 GB, free: 20.29 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00269/0.5779, allocations: 0.9637 MB / 0.6128 GB, free: 19.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004909/0.5784, allocations: 41.11 kB / 0.6128 GB, free: 19.83 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005366/0.579, allocations: 464.5 kB / 0.6132 GB, free: 19.46 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005835/0.5796, allocations: 306.5 kB / 0.6135 GB, free: 19.23 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003196/0.5799, allocations: 132.5 kB / 0.6137 GB, free: 19.16 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.58, allocations: 303.2 kB / 0.614 GB, free: 18.87 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002275/0.5823, allocations: 0.7593 MB / 0.6147 GB, free: 18.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002358/0.5847, allocations: 0.9799 MB / 0.6157 GB, free: 18.11 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02549/0.6102, allocations: 5.492 MB / 0.621 GB, free: 14.64 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.209e-05/0.6103, allocations: 0 / 0.621 GB, free: 14.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.0144/0.6247, allocations: 4.969 MB / 0.6259 GB, free: 9.652 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.6248, allocations: 12 kB / 0.6259 GB, free: 9.641 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/0.6248, allocations: 7.984 kB / 0.6259 GB, free: 9.633 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005572/0.6304, allocations: 1.802 MB / 0.6276 GB, free: 7.828 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.6317, allocations: 255.6 kB / 0.6279 GB, free: 7.578 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01848/0.6502, allocations: 8.609 MB / 0.6363 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002003/0.6522, allocations: 206.9 kB / 0.6365 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001311/0.6524, allocations: 55.98 kB / 0.6366 GB, free: 14.56 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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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.0006485/0.653, allocations: 266.5 kB / 0.6368 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001026/0.6541, allocations: 356.8 kB / 0.6371 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01355/0.6676, allocations: 4.424 MB / 0.6415 GB, free: 9.488 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.789e-05/0.6677, allocations: 15.94 kB / 0.6415 GB, free: 9.473 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/0.6677, allocations: 8 kB / 0.6415 GB, free: 9.465 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.8e-05/0.6677, allocations: 3.984 kB / 0.6415 GB, free: 9.461 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.01625/0.684, allocations: 5.985 MB / 0.6473 GB, free: 3.371 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/0.684, allocations: 7.938 kB / 0.6473 GB, free: 3.363 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006616/0.6847, allocations: 107.9 kB / 0.6474 GB, free: 3.258 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006035/0.6908, allocations: 1.868 MB / 0.6493 GB, free: 1.383 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001492/0.6909, allocations: 23.92 kB / 0.6493 GB, free: 1.359 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01997/0.7109, allocations: 10.8 MB / 0.6598 GB, free: 6.223 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.7109, allocations: 0 / 0.6598 GB, free: 6.223 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01597/0.7269, allocations: 5.527 MB / 0.6652 GB, free: 0.668 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005003/0.7274, allocations: 211.5 kB / 0.6654 GB, free: 452 kB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.7276, allocations: 23.98 kB / 0.6655 GB, free: 428 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.7286, allocations: 119.9 kB / 0.6656 GB, free: 308 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005264/0.7292, allocations: 172.6 kB / 0.6657 GB, free: 136 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.747e-05/0.7293, allocations: 27.98 kB / 0.6658 GB, free: 108 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008415/0.7301, allocations: 0.6395 MB / 0.6664 GB, free: 15.46 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7301, allocations: 0 / 0.6664 GB, free: 15.46 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001305/0.7314, allocations: 439.6 kB / 0.6668 GB, free: 15.03 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01647/0.7479, allocations: 6.114 MB / 0.6728 GB, free: 8.867 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00643/0.7544, allocations: 2.577 MB / 0.6753 GB, free: 6.273 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.7544, allocations: 1.375 kB / 0.6753 GB, free: 6.273 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004256/0.7587, allocations: 1.532 MB / 0.6768 GB, free: 4.723 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001593/0.7603, allocations: 361.9 kB / 0.6771 GB, free: 4.359 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03937/0.7996, allocations: 17.83 MB / 0.6946 GB, free: 2.043 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005879/0.8003, allocations: 1.084 MB / 0.6956 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000399/0.8007, allocations: 95.34 kB / 0.6957 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005512/0.8012, allocations: 435.3 kB / 0.6961 GB, free: 412 kB / 494.1 MB Notification: Performance of SimCode: time 4.71e-07/0.8012, allocations: 0 / 0.6961 GB, free: 412 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.267/3.068, allocations: 28.5 MB / 0.7239 GB, free: 4.16 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004331/3.069, allocations: 265.4 kB / 0.7242 GB, free: 3.863 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.78/5.849, allocations: 0 / 0.7242 GB, free: 3.863 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)