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.001416/0.001416, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 239.3 MB, free: 4.637 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.001526/0.001526, allocations: 192.5 kB / 289.6 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4363/0.4363, allocations: 78.53 MB / 418.2 MB, free: 3.312 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001587, allocations: 75.89 kB / 497.6 MB, free: 6.348 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1154, allocations: 68.17 MB / 0.5525 GB, free: 2.133 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation): time 0.1937/0.3091, allocations: 6.479 MB / 0.5588 GB, free: 36.07 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002834/0.312, allocations: 1.867 MB / 0.5606 GB, free: 35.54 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004309/0.3124, allocations: 11.81 kB / 0.5606 GB, free: 35.54 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004479/0.3129, allocations: 227.6 kB / 0.5608 GB, free: 35.53 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001355/0.3143, allocations: 0.7104 MB / 0.5615 GB, free: 35.38 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.001066/0.3153, allocations: 0.6189 MB / 0.5621 GB, free: 35.3 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001047/0.3164, allocations: 1.419 MB / 0.5635 GB, free: 35.11 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003722/0.3168, allocations: 319 kB / 0.5638 GB, free: 35.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004925/0.3173, allocations: 0.5961 MB / 0.5644 GB, free: 34.91 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005707/0.3179, allocations: 0.7332 MB / 0.5651 GB, free: 34.7 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.318, allocations: 98.84 kB / 0.5652 GB, free: 34.7 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004119/0.3184, allocations: 235.1 kB / 0.5655 GB, free: 34.7 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001735/0.3186, allocations: 281.3 kB / 0.5657 GB, free: 34.62 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004063/0.319, allocations: 0.6317 MB / 0.5663 GB, free: 34.38 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00106/0.3201, allocations: 1.501 MB / 0.5678 GB, free: 34.01 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.3201, allocations: 1.75 kB / 0.5678 GB, free: 34.01 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3201, allocations: 0 / 0.5678 GB, free: 34.01 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.541e-05/0.3201, allocations: 0 / 0.5678 GB, free: 34.01 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.007402/0.3276, allocations: 2.563 MB / 0.5703 GB, free: 33.1 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.3276, allocations: 8.375 kB / 0.5703 GB, free: 33.1 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001326/0.3277, allocations: 129.7 kB / 0.5704 GB, free: 33.06 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00478/0.3325, allocations: 0.7808 MB / 0.5712 GB, free: 32.97 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009157/0.3335, allocations: 0.7628 MB / 0.5719 GB, free: 32.56 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002227/0.3337, allocations: 260.8 kB / 0.5722 GB, free: 32.37 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001315/0.3338, allocations: 79.81 kB / 0.5723 GB, free: 32.37 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002092/0.3359, allocations: 1.085 MB / 0.5733 GB, free: 32.31 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.336, allocations: 3.938 kB / 0.5733 GB, free: 32.31 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.3361, allocations: 35.44 kB / 0.5734 GB, free: 32.31 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.3361, allocations: 22.31 kB / 0.5734 GB, free: 32.3 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002258/0.3384, allocations: 1.122 MB / 0.5745 GB, free: 32.29 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.004807/0.3432, allocations: 3.468 MB / 0.5779 GB, free: 31.1 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.345, allocations: 1.438 MB / 0.5793 GB, free: 30.17 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001434/0.3465, allocations: 0.7837 MB / 0.58 GB, free: 29.88 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.343e-05/0.3466, allocations: 13.38 kB / 0.5801 GB, free: 29.87 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.3466, allocations: 45.27 kB / 0.5801 GB, free: 29.82 MB / 430.1 MB Notification: Performance of pre-optimization done (n=98): time 2.935e-06/0.3466, allocations: 4 kB / 0.5801 GB, free: 29.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=98): time 0.02541/0.372, allocations: 6.603 MB / 0.5865 GB, free: 28.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.518e-05/0.3721, allocations: 63.62 kB / 0.5866 GB, free: 28.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.3732, allocations: 0.8921 MB / 0.5875 GB, free: 28.13 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000166/0.3734, allocations: 41.7 kB / 0.5875 GB, free: 28.09 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002778/0.3737, allocations: 496.2 kB / 0.588 GB, free: 27.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002678/0.374, allocations: 353.2 kB / 0.5883 GB, free: 27.42 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00038/0.3743, allocations: 207.4 kB / 0.5885 GB, free: 27.32 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.317e-05/0.3744, allocations: 353.8 kB / 0.5889 GB, free: 26.99 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001707/0.3761, allocations: 0.7314 MB / 0.5896 GB, free: 26.73 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00177/0.3779, allocations: 0.8617 MB / 0.5904 GB, free: 26.37 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0195/0.3974, allocations: 4.861 MB / 0.5952 GB, free: 25.02 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/0.3975, allocations: 1.469 kB / 0.5952 GB, free: 25.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.01442/0.4119, allocations: 4.276 MB / 0.5993 GB, free: 23.99 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.412, allocations: 6.625 kB / 0.5994 GB, free: 23.99 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.412, allocations: 3.172 kB / 0.5994 GB, free: 23.99 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006375/0.4184, allocations: 1.733 MB / 0.601 GB, free: 23.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/0.4196, allocations: 232.8 kB / 0.6013 GB, free: 23.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02141/0.441, allocations: 9.064 MB / 0.6101 GB, free: 18.87 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/0.4427, allocations: 180.9 kB / 0.6103 GB, free: 18.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.4428, allocations: 49.8 kB / 0.6103 GB, free: 18.75 MB / 430.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.0004532/0.4433, allocations: 231 kB / 0.6106 GB, free: 18.55 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002102/0.4435, allocations: 124.5 kB / 0.6107 GB, free: 18.49 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01283/0.4563, allocations: 4.014 MB / 0.6146 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.4563, allocations: 8 kB / 0.6146 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.4564, allocations: 4 kB / 0.6146 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.4564, allocations: 7.922 kB / 0.6146 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01415/0.4705, allocations: 5.608 MB / 0.6201 GB, free: 9.391 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.4706, allocations: 0 / 0.6201 GB, free: 9.391 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007318/0.4713, allocations: 131.8 kB / 0.6202 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005665/0.477, allocations: 1.747 MB / 0.6219 GB, free: 7.512 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00014/0.4772, allocations: 19.98 kB / 0.6219 GB, free: 7.492 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01718/0.4943, allocations: 8.067 MB / 0.6298 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.4944, allocations: 4 kB / 0.6298 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01579/0.5102, allocations: 4.951 MB / 0.6347 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003303/0.5105, allocations: 203.4 kB / 0.6349 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001774/0.5107, allocations: 16 kB / 0.6349 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.5118, allocations: 113.8 kB / 0.635 GB, free: 9.965 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006605/0.5125, allocations: 224.6 kB / 0.6352 GB, free: 9.742 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.115e-05/0.5126, allocations: 20 kB / 0.6352 GB, free: 9.723 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007016/0.5133, allocations: 0.5969 MB / 0.6358 GB, free: 9.117 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5133, allocations: 0 / 0.6358 GB, free: 9.117 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001159/0.5145, allocations: 443.4 kB / 0.6362 GB, free: 8.684 MB / 446.1 MB 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.01628/0.5307, allocations: 5.543 MB / 0.6416 GB, free: 3.098 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007651/0.5384, allocations: 2.507 MB / 0.6441 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.5385, allocations: 0 / 0.6441 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005137/0.5436, allocations: 1.599 MB / 0.6456 GB, free: 14.97 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008333/0.5445, allocations: 84.98 kB / 0.6457 GB, free: 14.89 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03984/0.5843, allocations: 16.01 MB / 0.6614 GB, free: 14.51 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007525/0.5851, allocations: 1.099 MB / 0.6624 GB, free: 13.39 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004852/0.5856, allocations: 88.2 kB / 0.6625 GB, free: 13.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000634/0.5863, allocations: 447.3 kB / 0.6629 GB, free: 12.86 MB / 478.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5863, allocations: 0 / 0.6629 GB, free: 12.86 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06292/0.6492, allocations: 33.16 MB / 0.6953 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/12.12, allocations: 7.516 kB / 0.6953 GB, free: 12.02 MB / 0.4981 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)