Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSSE.ES.SCRX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) 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 3.2.3+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 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Controls.PSSE.ES.SCRX,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Controls_PSSE_ES_SCRX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Controls.PSSE.ES.SCRX,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Controls_PSSE_ES_SCRX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08283/0.08283, allocations: 12.6 MB / 28.1 MB, free: 268 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009853/0.0009853, allocations: 107.5 kB / 31.7 MB, free: 3.516 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.26/1.26, allocations: 205.1 MB / 240.3 MB, free: 12.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 196.4 kB / 290.5 MB, free: 13.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4079/0.4079, allocations: 78.51 MB / 419.2 MB, free: 11.34 MB / 302.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002649/0.00265, allocations: 139.8 kB / 499.9 MB, free: 10.73 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2448, allocations: 68.11 MB / 0.5547 GB, free: 32.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Controls.PSSE.ES.SCRX): time 0.007259/0.2521, allocations: 8.299 MB / 0.5628 GB, free: 26.53 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004724/0.2569, allocations: 2.524 MB / 0.5653 GB, free: 24.44 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001139/0.258, allocations: 20.72 kB / 0.5653 GB, free: 24.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000791/0.2588, allocations: 313.2 kB / 0.5656 GB, free: 24.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002769/0.2616, allocations: 1.204 MB / 0.5668 GB, free: 23.21 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/NonElectrical/Logical/NegCurLogic.mo:14:3-14:60:writable] Warning: In relation sCRX.negCurLogic.RC_rfd == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001305/0.263, allocations: 0.692 MB / 0.5674 GB, free: 22.69 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002292/0.2653, allocations: 2.323 MB / 0.5697 GB, free: 21.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006039/0.2659, allocations: 422.4 kB / 0.5701 GB, free: 21.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001407/0.2673, allocations: 0.8755 MB / 0.571 GB, free: 20.54 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001484/0.2688, allocations: 1.135 MB / 0.5721 GB, free: 19.74 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003303/0.2691, allocations: 181.7 kB / 0.5722 GB, free: 19.74 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007864/0.2699, allocations: 412.4 kB / 0.5726 GB, free: 19.62 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002879/0.2702, allocations: 473.2 kB / 0.5731 GB, free: 19.22 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007443/0.271, allocations: 0.9042 MB / 0.574 GB, free: 18.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002143/0.2731, allocations: 2.264 MB / 0.5762 GB, free: 16.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2732, allocations: 0 / 0.5762 GB, free: 16.8 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2732, allocations: 1.062 kB / 0.5762 GB, free: 16.8 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.918e-05/0.2732, allocations: 0 / 0.5762 GB, free: 16.8 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.0131/0.2863, allocations: 3.763 MB / 0.5799 GB, free: 13.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.2864, allocations: 15.98 kB / 0.5799 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001597/0.2865, allocations: 156.1 kB / 0.58 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004434/0.291, allocations: 0.751 MB / 0.5808 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001551/0.2925, allocations: 1.112 MB / 0.5818 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003158/0.2929, allocations: 428.7 kB / 0.5822 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001691/0.293, allocations: 112 kB / 0.5824 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002375/0.2954, allocations: 1.424 MB / 0.5837 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.2955, allocations: 3.938 kB / 0.5837 GB, free: 9.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/0.2956, allocations: 40 kB / 0.5838 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.2956, allocations: 24 kB / 0.5838 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002564/0.2982, allocations: 1.339 MB / 0.5851 GB, free: 8.102 MB / 398.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.006808/0.305, allocations: 4.938 MB / 0.5899 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007634/0.3126, allocations: 2.894 MB / 0.5928 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001875/0.3145, allocations: 0.9229 MB / 0.5937 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001206/0.3147, allocations: 20.98 kB / 0.5937 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00215/0.3168, allocations: 1.061 MB / 0.5947 GB, free: 13.88 MB / 414.1 MB Notification: Performance of pre-optimization done (n=126): time 3.086e-06/0.3168, allocations: 0 / 0.5947 GB, free: 13.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=126): time 0.04256/0.3594, allocations: 9.789 MB / 0.6043 GB, free: 4.047 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.092e-05/0.3595, allocations: 115.8 kB / 0.6044 GB, free: 3.906 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002329/0.3618, allocations: 1.411 MB / 0.6058 GB, free: 2.484 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003685/0.3622, allocations: 49.77 kB / 0.6058 GB, free: 2.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005087/0.3628, allocations: 0.6002 MB / 0.6064 GB, free: 1.824 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005993/0.3634, allocations: 465.4 kB / 0.6068 GB, free: 1.363 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006557/0.364, allocations: 339.4 kB / 0.6072 GB, free: 1.027 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.64e-05/0.3641, allocations: 305.1 kB / 0.6075 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002242/0.3664, allocations: 0.9682 MB / 0.6084 GB, free: 15.76 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002436/0.3688, allocations: 1.17 MB / 0.6096 GB, free: 14.54 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004502/0.3734, allocations: 2.085 MB / 0.6116 GB, free: 12.41 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.3734, allocations: 0 / 0.6116 GB, free: 12.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.009804/0.3832, allocations: 3.707 MB / 0.6152 GB, free: 8.695 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.3832, allocations: 4 kB / 0.6152 GB, free: 8.691 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.3833, allocations: 4 kB / 0.6152 GB, free: 8.688 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01013/0.3934, allocations: 2.985 MB / 0.6181 GB, free: 5.695 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.3947, allocations: 271.6 kB / 0.6184 GB, free: 5.43 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007118/0.4018, allocations: 2.988 MB / 0.6213 GB, free: 2.418 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002219/0.4041, allocations: 254.2 kB / 0.6216 GB, free: 2.168 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001455/0.4042, allocations: 67.92 kB / 0.6216 GB, free: 2.102 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (161): * Single equations (assignments): 160 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(34,42)} Notification: Performance of prepare postOptimizeDAE: time 0.000554/0.4048, allocations: 309.5 kB / 0.6219 GB, free: 1.789 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002807/0.4051, allocations: 154 kB / 0.6221 GB, free: 1.637 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01668/0.4218, allocations: 4.811 MB / 0.6268 GB, free: 12.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-05/0.4218, allocations: 16 kB / 0.6268 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.4219, allocations: 0 / 0.6268 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.689e-05/0.4219, allocations: 7.922 kB / 0.6268 GB, free: 12.78 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.01926/0.4411, allocations: 6.891 MB / 0.6335 GB, free: 5.754 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/0.4412, allocations: 8.031 kB / 0.6335 GB, free: 5.746 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008662/0.4421, allocations: 143.8 kB / 0.6337 GB, free: 5.605 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007652/0.4497, allocations: 2.149 MB / 0.6358 GB, free: 3.449 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001837/0.4499, allocations: 28 kB / 0.6358 GB, free: 3.422 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02612/0.4761, allocations: 10.08 MB / 0.6456 GB, free: 9.195 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4761, allocations: 0 / 0.6456 GB, free: 9.195 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01894/0.495, allocations: 5.939 MB / 0.6514 GB, free: 3.223 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005605/0.4956, allocations: 282.6 kB / 0.6517 GB, free: 2.926 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002521/0.4959, allocations: 27.94 kB / 0.6517 GB, free: 2.898 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001634/0.4975, allocations: 139.8 kB / 0.6519 GB, free: 2.762 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007673/0.4983, allocations: 261.3 kB / 0.6521 GB, free: 2.508 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.725e-05/0.4984, allocations: 35.98 kB / 0.6521 GB, free: 2.473 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001402/0.4998, allocations: 0.9503 MB / 0.6531 GB, free: 1.523 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4998, allocations: 0 / 0.6531 GB, free: 1.523 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001312/0.5012, allocations: 0.5269 MB / 0.6536 GB, free: 0.9961 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 11 (gENCLS.omega,gENCLS.delta,gENCLS.eq,gENROU.w,gENROU.delta,gENROU.Epd,gENROU.Epq,gENROU.PSIkd,gENROU.PSIkq,sCRX.imLeadLag.TF.x_scaled[1],sCRX.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 (83): * Single equations (assignments): 82 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(26,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01932/0.5205, allocations: 6.556 MB / 0.66 GB, free: 10.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00975/0.5303, allocations: 2.934 MB / 0.6628 GB, free: 7.469 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.301e-06/0.5303, allocations: 0 / 0.6628 GB, free: 7.469 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006376/0.5367, allocations: 1.943 MB / 0.6647 GB, free: 5.516 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.5379, allocations: 135 kB / 0.6649 GB, free: 5.383 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04516/0.5831, allocations: 20.21 MB / 0.6846 GB, free: 316 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009941/0.5841, allocations: 1.227 MB / 0.6858 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0007125/0.5848, allocations: 138 kB / 0.6859 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009347/0.5858, allocations: 0.6086 MB / 0.6865 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of SimCode: time 6.21e-07/0.5858, allocations: 0 / 0.6865 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2626/0.8484, allocations: 43.6 MB / 0.7291 GB, free: 148.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.48, allocations: 9.266 kB / 0.7291 GB, free: 148.1 MB / 0.5137 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSSE.ES.SCRX.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSSE.ES.SCRX.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSSE.ES.SCRX.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSSE.ES.SCRX.sim & python3 -m fmpy simulate --output-file OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSSE.ES.SCRX_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 OpenIPSL_2_0_0_OpenIPSL_Tests_Controls_PSSE_ES_SCRX.fmu > OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSSE.ES.SCRX.pipe 2>&1)