Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order3test2_perturbation.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.Machines.PSAT.Order3test2_perturbation,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Machines_PSAT_Order3test2_perturbation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Machines.PSAT.Order3test2_perturbation,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Machines_PSAT_Order3test2_perturbation",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.07948/0.07948, allocations: 12.6 MB / 28.1 MB, free: 184 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.00104/0.00104, allocations: 107.5 kB / 31.7 MB, free: 3.492 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.384/1.384, 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.001336/0.001336, allocations: 188.5 kB / 290.5 MB, free: 11.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4447/0.4447, allocations: 78.5 MB / 419.2 MB, free: 10.83 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.002863/0.002863, allocations: 143.8 kB / 499.9 MB, free: 10.04 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3092, allocations: 68.11 MB / 0.5547 GB, free: 21.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Machines.PSAT.Order3test2_perturbation): time 0.005353/0.3146, allocations: 6.474 MB / 0.561 GB, free: 14.79 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002959/0.3176, allocations: 1.842 MB / 0.5628 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005399/0.3181, allocations: 11.94 kB / 0.5628 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005771/0.3187, allocations: 222.1 kB / 0.563 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001741/0.3205, allocations: 0.7173 MB / 0.5637 GB, free: 12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.3218, allocations: 0.6075 MB / 0.5643 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00116/0.323, allocations: 1.409 MB / 0.5657 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004106/0.3234, allocations: 328.3 kB / 0.566 GB, free: 9.652 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005226/0.3239, allocations: 0.5873 MB / 0.5666 GB, free: 9.062 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005649/0.3245, allocations: 0.7388 MB / 0.5673 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001345/0.3246, allocations: 104 kB / 0.5674 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004134/0.3251, allocations: 227.9 kB / 0.5676 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001699/0.3252, allocations: 278.8 kB / 0.5679 GB, free: 7.723 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003741/0.3256, allocations: 0.6329 MB / 0.5685 GB, free: 7.086 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.3267, allocations: 1.495 MB / 0.57 GB, free: 5.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3268, allocations: 0 / 0.57 GB, free: 5.586 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3268, allocations: 7.938 kB / 0.57 GB, free: 5.578 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.562e-05/0.3268, allocations: 0 / 0.57 GB, free: 5.578 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 195 * Number of variables: 195 Notification: Performance of Generate backend data structure: time 0.007335/0.3341, allocations: 2.564 MB / 0.5725 GB, free: 2.961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.3342, allocations: 11.98 kB / 0.5725 GB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001366/0.3343, allocations: 130.8 kB / 0.5726 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004662/0.339, allocations: 0.7826 MB / 0.5734 GB, free: 2.027 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001013/0.34, allocations: 0.7724 MB / 0.5741 GB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000224/0.3403, allocations: 256.2 kB / 0.5744 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.3404, allocations: 80 kB / 0.5744 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002079/0.3425, allocations: 1.081 MB / 0.5755 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.3425, allocations: 3.938 kB / 0.5755 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-05/0.3426, allocations: 32 kB / 0.5755 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.3427, allocations: 16 kB / 0.5756 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002556/0.3452, allocations: 1.124 MB / 0.5767 GB, free: 14.57 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.006098/0.3513, allocations: 3.468 MB / 0.58 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002238/0.3536, allocations: 1.424 MB / 0.5814 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00165/0.3552, allocations: 0.7774 MB / 0.5822 GB, free: 8.629 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.982e-05/0.3554, allocations: 24.98 kB / 0.5822 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.3554, allocations: 39.56 kB / 0.5822 GB, free: 8.555 MB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 3.847e-06/0.3554, allocations: 0 / 0.5822 GB, free: 8.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=97): time 0.02639/0.3818, allocations: 6.609 MB / 0.5887 GB, free: 1.914 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/0.3819, allocations: 60.41 kB / 0.5888 GB, free: 1.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.3832, allocations: 0.9002 MB / 0.5896 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002146/0.3835, allocations: 45.7 kB / 0.5897 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003926/0.3839, allocations: 0.4929 MB / 0.5902 GB, free: 380 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003838/0.3843, allocations: 343 kB / 0.5905 GB, free: 32 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004213/0.3847, allocations: 202.9 kB / 0.5907 GB, free: 15.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.3849, allocations: 349.9 kB / 0.591 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001657/0.3865, allocations: 0.7248 MB / 0.5917 GB, free: 14.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001775/0.3883, allocations: 0.8462 MB / 0.5926 GB, free: 13.87 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01916/0.4075, allocations: 4.845 MB / 0.5973 GB, free: 9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.4075, allocations: 0 / 0.5973 GB, free: 9 MB / 414.1 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.01464/0.4222, allocations: 4.269 MB / 0.6015 GB, free: 4.715 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.292e-05/0.4223, allocations: 10.75 kB / 0.6015 GB, free: 4.707 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/0.4223, allocations: 7.938 kB / 0.6015 GB, free: 4.699 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006612/0.429, allocations: 1.815 MB / 0.6032 GB, free: 2.879 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/0.4301, allocations: 211.7 kB / 0.6034 GB, free: 2.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02204/0.4522, allocations: 9.327 MB / 0.6126 GB, free: 9.203 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/0.4537, allocations: 175 kB / 0.6127 GB, free: 9.031 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001808/0.4539, allocations: 43.98 kB / 0.6128 GB, free: 8.988 MB / 430.1 MB Warning: Assuming fixed start value for the following 2 variables: order3_Inputs_Outputs1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_Inputs_Outputs1.delta:VARIABLE(flow=false start = order3_Inputs_Outputs1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 110 * 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 {(25,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0005149/0.4544, allocations: 245.3 kB / 0.613 GB, free: 8.738 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000247/0.4547, allocations: 118.5 kB / 0.6131 GB, free: 8.621 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0135/0.4682, allocations: 4.018 MB / 0.617 GB, free: 4.578 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.559e-05/0.4683, allocations: 8 kB / 0.617 GB, free: 4.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.4683, allocations: 4 kB / 0.617 GB, free: 4.566 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.84e-05/0.4683, allocations: 7.984 kB / 0.6171 GB, free: 4.559 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01578/0.4841, allocations: 5.614 MB / 0.6225 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.648e-05/0.4842, allocations: 4 kB / 0.6225 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008178/0.485, allocations: 131.8 kB / 0.6227 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006281/0.4913, allocations: 1.749 MB / 0.6244 GB, free: 12.92 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002439/0.4916, allocations: 23.94 kB / 0.6244 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01999/0.5116, allocations: 8.076 MB / 0.6323 GB, free: 4.672 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.5116, allocations: 0 / 0.6323 GB, free: 4.672 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01618/0.5278, allocations: 4.962 MB / 0.6371 GB, free: 15.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004131/0.5283, allocations: 207.4 kB / 0.6373 GB, free: 15.46 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000303/0.5286, allocations: 19.94 kB / 0.6373 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001203/0.5298, allocations: 115.8 kB / 0.6375 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007416/0.5306, allocations: 208.7 kB / 0.6377 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.5307, allocations: 31.98 kB / 0.6377 GB, free: 15.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0009072/0.5316, allocations: 0.6008 MB / 0.6383 GB, free: 14.48 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5316, allocations: 0 / 0.6383 GB, free: 14.48 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001474/0.5331, allocations: 443.5 kB / 0.6387 GB, free: 14.05 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (order3_Inputs_Outputs1.delta,order3_Inputs_Outputs1.w,order3_Inputs_Outputs1.e1q) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 63 * 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01613/0.5492, allocations: 5.542 MB / 0.6441 GB, free: 8.477 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007913/0.5572, allocations: 2.546 MB / 0.6466 GB, free: 5.918 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.5572, allocations: 0 / 0.6466 GB, free: 5.918 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005148/0.5624, allocations: 1.593 MB / 0.6481 GB, free: 4.305 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.5635, allocations: 88.42 kB / 0.6482 GB, free: 4.219 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04197/0.6055, allocations: 15.94 MB / 0.6638 GB, free: 3.879 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007389/0.6063, allocations: 1.095 MB / 0.6649 GB, free: 2.758 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004326/0.6067, allocations: 94.75 kB / 0.665 GB, free: 2.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006357/0.6074, allocations: 443.3 kB / 0.6654 GB, free: 2.23 MB / 478.1 MB Notification: Performance of SimCode: time 8.61e-07/0.6074, allocations: 4 kB / 0.6654 GB, free: 2.227 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2866/0.894, allocations: 33.34 MB / 0.6979 GB, free: 116.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.64, allocations: 7.469 kB / 0.698 GB, free: 116.8 MB / 494.1 MB (rm -f OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order3test2_perturbation.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order3test2_perturbation.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order3test2_perturbation.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order3test2_perturbation.sim & python3 -m fmpy simulate --output-file OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order3test2_perturbation_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_2_0_0_OpenIPSL_Tests_Machines_PSAT_Order3test2_perturbation.fmu > OpenIPSL_2.0.0_OpenIPSL.Tests.Machines.PSAT.Order3test2_perturbation.pipe 2>&1)