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.007646/0.007646, allocations: 98.94 kB / 15.73 MB, free: 6.039 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.351/1.351, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001353/0.001353, allocations: 188.5 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4501/0.4501, allocations: 78.54 MB / 418.4 MB, free: 3.164 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 76.09 kB / 0.5532 GB, free: 1.453 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3226, allocations: 68.16 MB / 0.6197 GB, free: 9.379 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Machines.PSAT.Order4test2_perturbation): time 0.005708/0.3284, allocations: 6.483 MB / 0.6261 GB, free: 3.66 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003417/0.3318, allocations: 1.872 MB / 0.6279 GB, free: 1.785 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009858/0.3328, allocations: 12 kB / 0.6279 GB, free: 1.773 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007278/0.3336, allocations: 222 kB / 0.6281 GB, free: 1.555 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002216/0.3358, allocations: 0.7737 MB / 0.6289 GB, free: 0.7812 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.001358/0.3372, allocations: 0.6127 MB / 0.6295 GB, free: 180 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0021/0.3393, allocations: 1.429 MB / 0.6309 GB, free: 14.74 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005528/0.3399, allocations: 328.4 kB / 0.6312 GB, free: 14.41 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008557/0.3408, allocations: 0.5952 MB / 0.6318 GB, free: 13.81 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007752/0.3415, allocations: 0.7271 MB / 0.6325 GB, free: 13.08 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001531/0.3417, allocations: 100 kB / 0.6326 GB, free: 12.98 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004952/0.3422, allocations: 243.8 kB / 0.6328 GB, free: 12.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002363/0.3425, allocations: 278.8 kB / 0.6331 GB, free: 12.47 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005078/0.343, allocations: 0.629 MB / 0.6337 GB, free: 11.84 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001602/0.3446, allocations: 1.533 MB / 0.6352 GB, free: 10.31 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3446, allocations: 0 / 0.6352 GB, free: 10.31 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3446, allocations: 4 kB / 0.6352 GB, free: 10.3 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.126e-05/0.3446, allocations: 0 / 0.6352 GB, free: 10.3 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.007868/0.3525, allocations: 2.594 MB / 0.6377 GB, free: 7.648 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.3526, allocations: 15.97 kB / 0.6377 GB, free: 7.633 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001604/0.3527, allocations: 126.8 kB / 0.6378 GB, free: 7.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004885/0.3576, allocations: 0.7912 MB / 0.6386 GB, free: 6.707 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001217/0.3589, allocations: 0.7735 MB / 0.6394 GB, free: 5.879 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002717/0.3591, allocations: 256.2 kB / 0.6396 GB, free: 5.594 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/0.3593, allocations: 83.95 kB / 0.6397 GB, free: 5.512 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002266/0.3616, allocations: 1.085 MB / 0.6408 GB, free: 4.422 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.3616, allocations: 8 kB / 0.6408 GB, free: 4.414 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.291e-05/0.3617, allocations: 28 kB / 0.6408 GB, free: 4.387 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.3617, allocations: 20 kB / 0.6408 GB, free: 4.367 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002433/0.3642, allocations: 1.124 MB / 0.6419 GB, free: 3.238 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.00551/0.3697, allocations: 3.449 MB / 0.6453 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002098/0.3718, allocations: 1.43 MB / 0.6467 GB, free: 14.09 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.3734, allocations: 0.7813 MB / 0.6474 GB, free: 13.31 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.441e-05/0.3735, allocations: 20.98 kB / 0.6475 GB, free: 13.29 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.3735, allocations: 43.56 kB / 0.6475 GB, free: 13.23 MB / 462.1 MB Notification: Performance of pre-optimization done (n=98): time 2.404e-06/0.3735, allocations: 0 / 0.6475 GB, free: 13.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=98): time 0.02495/0.3985, allocations: 6.622 MB / 0.654 GB, free: 6.578 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.3986, allocations: 60.41 kB / 0.654 GB, free: 6.504 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001287/0.3999, allocations: 0.8962 MB / 0.6549 GB, free: 5.59 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000167/0.4001, allocations: 41.7 kB / 0.6549 GB, free: 5.543 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003772/0.4005, allocations: 497.4 kB / 0.6554 GB, free: 5.051 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004296/0.4009, allocations: 372.8 kB / 0.6558 GB, free: 4.684 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000471/0.4014, allocations: 202.9 kB / 0.656 GB, free: 4.477 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.4015, allocations: 361.9 kB / 0.6563 GB, free: 4.117 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00169/0.4032, allocations: 0.7248 MB / 0.657 GB, free: 3.395 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001778/0.405, allocations: 0.8695 MB / 0.6579 GB, free: 2.492 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01881/0.4238, allocations: 4.846 MB / 0.6626 GB, free: 13.61 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.749e-06/0.4239, allocations: 0 / 0.6626 GB, free: 13.61 MB / 478.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.01413/0.438, allocations: 4.285 MB / 0.6668 GB, free: 9.312 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.4381, allocations: 10.28 kB / 0.6668 GB, free: 9.305 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.4381, allocations: 7.984 kB / 0.6668 GB, free: 9.297 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005996/0.4441, allocations: 1.718 MB / 0.6685 GB, free: 7.574 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/0.4452, allocations: 231.7 kB / 0.6687 GB, free: 7.348 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02164/0.4669, allocations: 9.073 MB / 0.6775 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/0.4686, allocations: 171.2 kB / 0.6777 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002219/0.4688, allocations: 47.98 kB / 0.6778 GB, free: 13.91 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.0006063/0.4694, allocations: 238.7 kB / 0.678 GB, free: 13.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003075/0.4697, allocations: 135.1 kB / 0.6781 GB, free: 13.53 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01297/0.4827, allocations: 4.002 MB / 0.682 GB, free: 9.516 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-05/0.4828, allocations: 12 kB / 0.682 GB, free: 9.504 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4828, allocations: 0 / 0.682 GB, free: 9.504 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.819e-05/0.4828, allocations: 3.984 kB / 0.682 GB, free: 9.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01529/0.4981, allocations: 5.614 MB / 0.6875 GB, free: 3.754 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.411e-05/0.4982, allocations: 0 / 0.6875 GB, free: 3.754 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008022/0.499, allocations: 135.8 kB / 0.6877 GB, free: 3.621 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005955/0.505, allocations: 1.737 MB / 0.6893 GB, free: 1.879 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001681/0.5051, allocations: 16 kB / 0.6894 GB, free: 1.863 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01883/0.524, allocations: 8.073 MB / 0.6972 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.524, allocations: 0 / 0.6972 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01544/0.5395, allocations: 4.965 MB / 0.7021 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003897/0.5399, allocations: 208.2 kB / 0.7023 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002796/0.5402, allocations: 23.92 kB / 0.7023 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/0.5414, allocations: 107.9 kB / 0.7024 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006996/0.5421, allocations: 220.7 kB / 0.7026 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/0.5422, allocations: 20 kB / 0.7026 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008497/0.5431, allocations: 0.6008 MB / 0.7032 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.633e-06/0.5431, allocations: 0 / 0.7032 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001394/0.5445, allocations: 447.5 kB / 0.7037 GB, free: 3.023 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.0158/0.5603, allocations: 5.537 MB / 0.7091 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007138/0.5675, allocations: 2.49 MB / 0.7115 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.5675, allocations: 0 / 0.7115 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004939/0.5724, allocations: 1.605 MB / 0.7131 GB, free: 9.324 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000958/0.5734, allocations: 92.34 kB / 0.7132 GB, free: 9.234 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03901/0.6125, allocations: 15.42 MB / 0.7282 GB, free: 9.605 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008005/0.6133, allocations: 1.103 MB / 0.7293 GB, free: 8.477 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005288/0.6139, allocations: 94.75 kB / 0.7294 GB, free: 8.379 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007389/0.6146, allocations: 443.3 kB / 0.7298 GB, free: 7.945 MB / 0.5294 GB Notification: Performance of SimCode: time 9.82e-07/0.6146, allocations: 0 / 0.7298 GB, free: 7.945 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09307/0.7077, allocations: 33.57 MB / 0.7626 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.09/16.79, allocations: 5.547 kB / 0.7626 GB, free: 6.484 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)