Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.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.Tests.Machines.PSAT.Order4test2_perturbation,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Tests_Machines_PSAT_Order4test2_perturbation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation,fileNamePrefix="OpenIPSL_dev_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.001155/0.001155, allocations: 108 kB / 15.61 MB, free: 148 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.345/1.345, allocations: 222.9 MB / 239.3 MB, free: 4.602 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.0014/0.0014, allocations: 188.5 kB / 289.5 MB, free: 2.332 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5266/0.5266, allocations: 91.9 MB / 431.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003061/0.003061, allocations: 91.84 kB / 0.502 GB, free: 7.672 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.3623, allocations: 71.26 MB / 0.5716 GB, free: 36.78 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation): time 0.005681/0.368, allocations: 6.515 MB / 0.5779 GB, free: 33.02 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003047/0.3711, allocations: 1.892 MB / 0.5798 GB, free: 31.77 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005657/0.3716, allocations: 11.34 kB / 0.5798 GB, free: 31.77 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004825/0.3722, allocations: 222.2 kB / 0.58 GB, free: 31.64 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001517/0.3737, allocations: 0.7232 MB / 0.5807 GB, free: 31.16 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.3748, allocations: 0.6222 MB / 0.5813 GB, free: 30.85 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001072/0.3759, allocations: 1.412 MB / 0.5827 GB, free: 30.14 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004208/0.3763, allocations: 327.5 kB / 0.583 GB, free: 30 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006165/0.377, allocations: 0.5899 MB / 0.5836 GB, free: 29.71 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005859/0.3775, allocations: 0.732 MB / 0.5843 GB, free: 29.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001376/0.3777, allocations: 101 kB / 0.5844 GB, free: 29.34 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000408/0.3781, allocations: 244.6 kB / 0.5846 GB, free: 29.29 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001656/0.3783, allocations: 278.3 kB / 0.5849 GB, free: 29.11 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003864/0.3787, allocations: 0.6274 MB / 0.5855 GB, free: 28.69 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001082/0.3798, allocations: 1.499 MB / 0.587 GB, free: 27.99 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3798, allocations: 0 / 0.587 GB, free: 27.99 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3798, allocations: 0 / 0.587 GB, free: 27.99 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.95e-05/0.3798, allocations: 0 / 0.587 GB, free: 27.99 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.007689/0.3875, allocations: 2.565 MB / 0.5895 GB, free: 26.8 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.3876, allocations: 9.844 kB / 0.5895 GB, free: 26.8 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000134/0.3877, allocations: 125.2 kB / 0.5896 GB, free: 26.71 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004977/0.3927, allocations: 0.7769 MB / 0.5904 GB, free: 26.56 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009497/0.3936, allocations: 0.7778 MB / 0.5911 GB, free: 25.99 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002361/0.3939, allocations: 256.8 kB / 0.5914 GB, free: 25.77 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.3941, allocations: 76.28 kB / 0.5914 GB, free: 25.75 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002157/0.3962, allocations: 1.086 MB / 0.5925 GB, free: 25.36 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.3962, allocations: 0 / 0.5925 GB, free: 25.36 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.183e-05/0.3963, allocations: 31.34 kB / 0.5925 GB, free: 25.33 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.3964, allocations: 18.34 kB / 0.5925 GB, free: 25.33 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002415/0.3988, allocations: 1.127 MB / 0.5936 GB, free: 24.98 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.005491/0.4043, allocations: 3.499 MB / 0.5971 GB, free: 23.01 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002072/0.4064, allocations: 1.421 MB / 0.5985 GB, free: 22.07 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001628/0.408, allocations: 0.7969 MB / 0.5992 GB, free: 21.77 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.566e-05/0.4081, allocations: 15.05 kB / 0.5992 GB, free: 21.76 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/0.4081, allocations: 43.25 kB / 0.5993 GB, free: 21.71 MB / 430.1 MB Notification: Performance of pre-optimization done (n=98): time 2.555e-06/0.4082, allocations: 1.344 kB / 0.5993 GB, free: 21.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=98): time 0.02882/0.437, allocations: 6.873 MB / 0.606 GB, free: 20.45 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.698e-05/0.4371, allocations: 62.78 kB / 0.6061 GB, free: 20.39 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.4384, allocations: 0.8887 MB / 0.6069 GB, free: 20.02 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002449/0.4386, allocations: 46.08 kB / 0.607 GB, free: 19.97 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003278/0.439, allocations: 496.4 kB / 0.6074 GB, free: 19.58 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003496/0.4393, allocations: 352.4 kB / 0.6078 GB, free: 19.3 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004082/0.4398, allocations: 203.8 kB / 0.608 GB, free: 19.2 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.887e-05/0.4399, allocations: 358.8 kB / 0.6083 GB, free: 18.87 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00185/0.4417, allocations: 0.7251 MB / 0.609 GB, free: 18.62 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001898/0.4436, allocations: 0.8608 MB / 0.6099 GB, free: 18.25 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02039/0.464, allocations: 4.86 MB / 0.6146 GB, free: 16.68 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-05/0.4641, allocations: 5.312 kB / 0.6146 GB, free: 16.67 MB / 430.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.01414/0.4782, allocations: 4.273 MB / 0.6188 GB, free: 13.81 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.4783, allocations: 5.875 kB / 0.6188 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.4783, allocations: 8 kB / 0.6188 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005787/0.4841, allocations: 1.726 MB / 0.6205 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.4853, allocations: 235.6 kB / 0.6207 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01947/0.5048, allocations: 9.068 MB / 0.6296 GB, free: 2.625 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/0.5064, allocations: 178.9 kB / 0.6297 GB, free: 2.449 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001591/0.5065, allocations: 43.98 kB / 0.6298 GB, free: 2.406 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.0004922/0.507, allocations: 234.7 kB / 0.63 GB, free: 2.172 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002612/0.5073, allocations: 126.4 kB / 0.6301 GB, free: 2.047 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01323/0.5205, allocations: 4.014 MB / 0.634 GB, free: 14.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.5206, allocations: 8 kB / 0.6341 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.5206, allocations: 0 / 0.6341 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-05/0.5206, allocations: 7.984 kB / 0.6341 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01573/0.5363, allocations: 5.637 MB / 0.6396 GB, free: 8.219 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/0.5364, allocations: 4 kB / 0.6396 GB, free: 8.215 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007557/0.5372, allocations: 127.8 kB / 0.6397 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006161/0.5433, allocations: 1.745 MB / 0.6414 GB, free: 6.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001538/0.5435, allocations: 20 kB / 0.6414 GB, free: 6.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01942/0.5629, allocations: 8.057 MB / 0.6493 GB, free: 14.12 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.563, allocations: 0 / 0.6493 GB, free: 14.12 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01605/0.579, allocations: 4.958 MB / 0.6541 GB, free: 9.137 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003954/0.5795, allocations: 203.5 kB / 0.6543 GB, free: 8.918 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003159/0.5798, allocations: 23.97 kB / 0.6543 GB, free: 8.895 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.5811, allocations: 111.8 kB / 0.6544 GB, free: 8.785 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007594/0.5818, allocations: 220.7 kB / 0.6547 GB, free: 8.566 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.986e-05/0.5819, allocations: 27.94 kB / 0.6547 GB, free: 8.539 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008526/0.5828, allocations: 0.5969 MB / 0.6553 GB, free: 7.934 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5828, allocations: 0 / 0.6553 GB, free: 7.934 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001389/0.5842, allocations: 451.4 kB / 0.6557 GB, free: 7.492 MB / 462.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.01608/0.6003, allocations: 5.541 MB / 0.6611 GB, free: 1.914 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007658/0.608, allocations: 2.498 MB / 0.6636 GB, free: 15.41 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.608, allocations: 4.5 kB / 0.6636 GB, free: 15.41 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005237/0.6133, allocations: 1.601 MB / 0.6651 GB, free: 13.79 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.6144, allocations: 92.36 kB / 0.6652 GB, free: 13.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0413/0.6557, allocations: 15.99 MB / 0.6808 GB, free: 13.31 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006476/0.6564, allocations: 1.099 MB / 0.6819 GB, free: 12.18 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004953/0.6569, allocations: 94.75 kB / 0.682 GB, free: 12.09 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006051/0.6575, allocations: 451.3 kB / 0.6824 GB, free: 11.64 MB / 494.1 MB Notification: Performance of SimCode: time 6.51e-07/0.6575, allocations: 0 / 0.6824 GB, free: 11.64 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06479/0.7223, allocations: 33.15 MB / 0.7148 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/12.27, allocations: 4.938 kB / 0.7148 GB, free: 10.63 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_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_dev_OpenIPSL_Tests_Machines_PSAT_Order4test2_perturbation.fmu > OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation.pipe 2>&1)