Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.Tests.Machines.PSAT.Order4test2_perturbation,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Machines_PSAT_Order4test2_perturbation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Machines_PSAT_Order4test2_perturbation",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.005613/0.005613, allocations: 97.62 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.447/1.447, 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.001507/0.001507, allocations: 187.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.0.1/package.mo): time 0.4959/0.4959, allocations: 78.55 MB / 418.4 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002251/0.002251, allocations: 91.81 kB / 0.5532 GB, free: 1.492 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3662, allocations: 68.16 MB / 0.6197 GB, free: 9.438 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation): time 0.00554/0.3718, allocations: 6.488 MB / 0.6261 GB, free: 3.676 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003891/0.3757, allocations: 1.861 MB / 0.6279 GB, free: 1.812 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007976/0.3765, allocations: 12 kB / 0.6279 GB, free: 1.801 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005502/0.3771, allocations: 222 kB / 0.6281 GB, free: 1.582 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001544/0.3787, allocations: 0.7189 MB / 0.6288 GB, free: 0.8594 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation Generator.xq <> Generator.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001133/0.3798, allocations: 0.6123 MB / 0.6294 GB, free: 260 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001801/0.3816, allocations: 1.433 MB / 0.6308 GB, free: 14.82 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005877/0.3822, allocations: 324.4 kB / 0.6311 GB, free: 14.49 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009933/0.3832, allocations: 0.5913 MB / 0.6317 GB, free: 13.89 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009275/0.3842, allocations: 0.731 MB / 0.6324 GB, free: 13.16 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001678/0.3844, allocations: 100 kB / 0.6325 GB, free: 13.06 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005615/0.3849, allocations: 235.9 kB / 0.6327 GB, free: 12.83 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000266/0.3852, allocations: 286.7 kB / 0.633 GB, free: 12.55 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006199/0.3858, allocations: 0.629 MB / 0.6336 GB, free: 11.92 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001989/0.3878, allocations: 1.533 MB / 0.6351 GB, free: 10.39 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.3879, allocations: 0 / 0.6351 GB, free: 10.39 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3879, allocations: 0 / 0.6351 GB, free: 10.39 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.714e-05/0.3879, allocations: 0 / 0.6351 GB, free: 10.39 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.008537/0.3964, allocations: 2.601 MB / 0.6377 GB, free: 7.723 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.3965, allocations: 8.031 kB / 0.6377 GB, free: 7.715 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001811/0.3967, allocations: 130.7 kB / 0.6378 GB, free: 7.578 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005016/0.4017, allocations: 0.7874 MB / 0.6386 GB, free: 6.789 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/0.4032, allocations: 0.7851 MB / 0.6393 GB, free: 5.949 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003404/0.4036, allocations: 260.2 kB / 0.6396 GB, free: 5.66 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000155/0.4038, allocations: 79.95 kB / 0.6397 GB, free: 5.582 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002484/0.4063, allocations: 1.085 MB / 0.6407 GB, free: 4.492 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.4063, allocations: 4 kB / 0.6407 GB, free: 4.488 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.587e-05/0.4064, allocations: 28 kB / 0.6407 GB, free: 4.461 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.015e-05/0.4064, allocations: 20 kB / 0.6408 GB, free: 4.441 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00269/0.4091, allocations: 1.124 MB / 0.6419 GB, free: 3.312 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 preOpt removeSimpleEquations (simulation): time 0.006266/0.4154, allocations: 3.449 MB / 0.6452 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002706/0.4181, allocations: 1.427 MB / 0.6466 GB, free: 14.17 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001891/0.42, allocations: 0.7852 MB / 0.6474 GB, free: 13.38 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001342/0.4202, allocations: 24.91 kB / 0.6474 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.636e-05/0.4202, allocations: 35.56 kB / 0.6474 GB, free: 13.31 MB / 462.1 MB Notification: Performance of pre-optimization done (n=98): time 4.127e-06/0.4203, allocations: 4 kB / 0.6474 GB, free: 13.31 MB / 462.1 MB Notification: Performance of matching and sorting (n=98): time 0.02716/0.4474, allocations: 6.614 MB / 0.6539 GB, free: 6.66 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.765e-05/0.4475, allocations: 64.39 kB / 0.654 GB, free: 6.582 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001316/0.4489, allocations: 0.8923 MB / 0.6548 GB, free: 5.672 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001964/0.4491, allocations: 41.7 kB / 0.6549 GB, free: 5.625 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004272/0.4495, allocations: 497.5 kB / 0.6554 GB, free: 5.133 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004086/0.4499, allocations: 368.8 kB / 0.6557 GB, free: 4.77 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004333/0.4504, allocations: 206.8 kB / 0.6559 GB, free: 4.559 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.4505, allocations: 361.9 kB / 0.6562 GB, free: 4.199 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001768/0.4523, allocations: 0.7326 MB / 0.657 GB, free: 3.469 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001878/0.4542, allocations: 0.8579 MB / 0.6578 GB, free: 2.578 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01988/0.4741, allocations: 4.85 MB / 0.6625 GB, free: 13.7 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.4742, allocations: 0 / 0.6625 GB, free: 13.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.01562/0.4898, allocations: 4.293 MB / 0.6667 GB, free: 9.387 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.255e-05/0.4899, allocations: 8 kB / 0.6667 GB, free: 9.379 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.4899, allocations: 0 / 0.6667 GB, free: 9.379 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006373/0.4963, allocations: 1.726 MB / 0.6684 GB, free: 7.648 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.4975, allocations: 223.7 kB / 0.6686 GB, free: 7.43 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02292/0.5204, allocations: 9.074 MB / 0.6775 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001586/0.522, allocations: 175.2 kB / 0.6777 GB, free: 14.03 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.5222, allocations: 47.98 kB / 0.6777 GB, free: 13.98 MB / 494.1 MB Warning: Assuming fixed start value for the following 1 variables: Generator.e1q:VARIABLE(start = Generator.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: 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 (117): * Single equations (assignments): 116 * 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 {(24,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0005017/0.5227, allocations: 247.4 kB / 0.6779 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002302/0.5229, allocations: 127.1 kB / 0.6781 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01417/0.5371, allocations: 4.002 MB / 0.682 GB, free: 9.598 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.033e-05/0.5372, allocations: 12 kB / 0.682 GB, free: 9.586 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.5372, allocations: 7.984 kB / 0.682 GB, free: 9.578 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.093e-05/0.5372, allocations: 3.984 kB / 0.682 GB, free: 9.574 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01692/0.5542, allocations: 5.61 MB / 0.6875 GB, free: 3.828 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-05/0.5542, allocations: 0 / 0.6875 GB, free: 3.828 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008258/0.5551, allocations: 135.8 kB / 0.6876 GB, free: 3.695 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006363/0.5614, allocations: 1.737 MB / 0.6893 GB, free: 1.953 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001866/0.5616, allocations: 16 kB / 0.6893 GB, free: 1.938 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02036/0.582, allocations: 8.069 MB / 0.6972 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.5821, allocations: 0 / 0.6972 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01662/0.5987, allocations: 4.965 MB / 0.702 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00046/0.5992, allocations: 208.1 kB / 0.7022 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000177/0.5994, allocations: 19.94 kB / 0.7023 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.6005, allocations: 107.9 kB / 0.7024 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008128/0.6013, allocations: 220.7 kB / 0.7026 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.252e-05/0.6014, allocations: 27.92 kB / 0.7026 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008724/0.6023, allocations: 0.5969 MB / 0.7032 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6023, allocations: 0 / 0.7032 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001363/0.6037, allocations: 443.6 kB / 0.7036 GB, free: 3.105 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Generator.delta,Generator.w,Generator.e1q,Generator.e1d) * 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 (65): * Single equations (assignments): 64 * 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.0166/0.6203, allocations: 5.538 MB / 0.709 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007562/0.6279, allocations: 2.503 MB / 0.7115 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.6279, allocations: 0 / 0.7115 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005367/0.6333, allocations: 1.601 MB / 0.713 GB, free: 9.395 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009006/0.6342, allocations: 88.36 kB / 0.7131 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04206/0.6763, allocations: 15.42 MB / 0.7282 GB, free: 9.68 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008127/0.6772, allocations: 1.095 MB / 0.7292 GB, free: 8.559 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.000505/0.6777, allocations: 90.75 kB / 0.7293 GB, free: 8.465 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006455/0.6784, allocations: 447.3 kB / 0.7297 GB, free: 8.027 MB / 0.5294 GB Notification: Performance of SimCode: time 6.01e-07/0.6784, allocations: 0 / 0.7297 GB, free: 8.027 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07887/0.7572, allocations: 33.57 MB / 0.7625 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.96/17.72, allocations: 0 / 0.7625 GB, free: 6.574 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe ; mkfifo OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe >> ../files/OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order4test2_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_OpenIPSL_Tests_Machines_PSAT_Order4test2_perturbation.fmu > OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe 2>&1)