Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order2test2_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.Order2test2_perturbation,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Tests_Machines_PSAT_Order2test2_perturbation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Tests_Machines_PSAT_Order2test2_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.005003/0.005003, allocations: 95.92 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.283/1.283, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.00187/0.00187, allocations: 188.2 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4982/0.4982, allocations: 91.9 MB / 431.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 84.64 kB / 0.5723 GB, free: 33.51 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1133, allocations: 71.28 MB / 0.6419 GB, free: 4.055 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation): time 0.007322/0.1207, allocations: 6.396 MB / 0.6481 GB, free: 13.62 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003729/0.1244, allocations: 1.849 MB / 0.6499 GB, free: 11.77 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008765/0.1253, allocations: 12 kB / 0.6499 GB, free: 11.76 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007158/0.126, allocations: 222 kB / 0.6502 GB, free: 11.54 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002112/0.1282, allocations: 0.7558 MB / 0.6509 GB, free: 10.79 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001373/0.1296, allocations: 0.6114 MB / 0.6515 GB, free: 10.18 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001747/0.1314, allocations: 1.405 MB / 0.6529 GB, free: 8.77 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005413/0.1319, allocations: 324.5 kB / 0.6532 GB, free: 8.438 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008342/0.1327, allocations: 0.5912 MB / 0.6538 GB, free: 7.844 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009477/0.1337, allocations: 0.7194 MB / 0.6545 GB, free: 7.121 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002902/0.134, allocations: 100 kB / 0.6545 GB, free: 7.023 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000574/0.1346, allocations: 231.9 kB / 0.6548 GB, free: 6.797 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003096/0.1349, allocations: 286.7 kB / 0.655 GB, free: 6.516 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006524/0.1356, allocations: 0.6174 MB / 0.6556 GB, free: 5.895 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001518/0.1371, allocations: 1.509 MB / 0.6571 GB, free: 4.379 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1371, allocations: 4 kB / 0.6571 GB, free: 4.375 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1371, allocations: 0 / 0.6571 GB, free: 4.375 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.1371, allocations: 0 / 0.6571 GB, free: 4.375 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.007321/0.1445, allocations: 2.586 MB / 0.6596 GB, free: 1.734 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.1445, allocations: 12.03 kB / 0.6597 GB, free: 1.723 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001545/0.1447, allocations: 122.8 kB / 0.6598 GB, free: 1.594 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004634/0.1493, allocations: 0.7796 MB / 0.6605 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.1505, allocations: 0.7771 MB / 0.6613 GB, free: 15.98 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002651/0.1508, allocations: 260.2 kB / 0.6615 GB, free: 15.69 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.1509, allocations: 72 kB / 0.6616 GB, free: 15.62 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002143/0.1531, allocations: 1.077 MB / 0.6627 GB, free: 14.53 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.1531, allocations: 0 / 0.6627 GB, free: 14.53 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.407e-05/0.1532, allocations: 35.98 kB / 0.6627 GB, free: 14.5 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.1532, allocations: 20 kB / 0.6627 GB, free: 14.48 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002392/0.1556, allocations: 1.124 MB / 0.6638 GB, free: 13.36 MB / 478.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.005304/0.1609, allocations: 3.421 MB / 0.6672 GB, free: 9.781 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002052/0.163, allocations: 1.41 MB / 0.6685 GB, free: 8.25 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/0.1645, allocations: 0.7811 MB / 0.6693 GB, free: 7.465 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001114/0.1646, allocations: 16.98 kB / 0.6693 GB, free: 7.449 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.1647, allocations: 47.56 kB / 0.6694 GB, free: 7.395 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 4.278e-06/0.1647, allocations: 0 / 0.6694 GB, free: 7.395 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.02607/0.1908, allocations: 6.754 MB / 0.676 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/0.1908, allocations: 64.41 kB / 0.676 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.1919, allocations: 0.88 MB / 0.6769 GB, free: 15.63 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001482/0.1921, allocations: 45.7 kB / 0.6769 GB, free: 15.58 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003435/0.1925, allocations: 0.4934 MB / 0.6774 GB, free: 15.08 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003228/0.1928, allocations: 356.9 kB / 0.6777 GB, free: 14.73 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003747/0.1932, allocations: 194.9 kB / 0.6779 GB, free: 14.53 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1933, allocations: 353.9 kB / 0.6783 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001645/0.195, allocations: 0.7131 MB / 0.679 GB, free: 13.47 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001706/0.1967, allocations: 0.8345 MB / 0.6798 GB, free: 12.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0179/0.2146, allocations: 4.783 MB / 0.6844 GB, free: 7.785 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/0.2146, allocations: 4 kB / 0.6845 GB, free: 7.781 MB / 494.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.01355/0.2282, allocations: 4.258 MB / 0.6886 GB, free: 3.508 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.2283, allocations: 8 kB / 0.6886 GB, free: 3.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.2283, allocations: 0 / 0.6886 GB, free: 3.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006152/0.2344, allocations: 1.862 MB / 0.6904 GB, free: 1.633 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.2355, allocations: 219.6 kB / 0.6906 GB, free: 1.418 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02093/0.2564, allocations: 9.101 MB / 0.6995 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/0.2579, allocations: 171.2 kB / 0.6997 GB, free: 8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.258, allocations: 35.98 kB / 0.6997 GB, free: 7.965 MB / 0.4981 GB Warning: Assuming fixed start value for the following 2 variables: order2_Inputs_Outputs1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2_Inputs_Outputs1.delta:VARIABLE(flow=false start = order2_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 (108): * Single equations (assignments): 107 * 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 prepare postOptimizeDAE: time 0.0004265/0.2584, allocations: 249.5 kB / 0.7 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/0.2586, allocations: 127.2 kB / 0.7001 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01291/0.2715, allocations: 3.998 MB / 0.704 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.2716, allocations: 8 kB / 0.704 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.2716, allocations: 3.938 kB / 0.704 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.381e-05/0.2716, allocations: 3.984 kB / 0.704 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01497/0.2866, allocations: 5.618 MB / 0.7095 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.296e-06/0.2866, allocations: 0 / 0.7095 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006822/0.2873, allocations: 127.8 kB / 0.7096 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00589/0.2932, allocations: 1.745 MB / 0.7113 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.2933, allocations: 19.98 kB / 0.7113 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01819/0.3115, allocations: 8.077 MB / 0.7192 GB, free: 3.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3116, allocations: 4 kB / 0.7192 GB, free: 3.676 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01501/0.3266, allocations: 4.972 MB / 0.7241 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004264/0.327, allocations: 208.1 kB / 0.7243 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001461/0.3272, allocations: 19.94 kB / 0.7243 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009966/0.3282, allocations: 115.9 kB / 0.7244 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006406/0.3289, allocations: 212.6 kB / 0.7246 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.607e-05/0.3289, allocations: 27.98 kB / 0.7246 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007009/0.3297, allocations: 0.5887 MB / 0.7252 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3297, allocations: 4 kB / 0.7252 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001124/0.3308, allocations: 431.6 kB / 0.7256 GB, free: 13.07 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (order2_Inputs_Outputs1.delta,order2_Inputs_Outputs1.w) * 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 (63): * Single equations (assignments): 62 * 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.01542/0.3462, allocations: 5.554 MB / 0.7311 GB, free: 7.477 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006802/0.353, allocations: 2.468 MB / 0.7335 GB, free: 4.992 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3531, allocations: 0.5625 kB / 0.7335 GB, free: 4.992 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004779/0.3579, allocations: 1.61 MB / 0.735 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007787/0.3587, allocations: 81.67 kB / 0.7351 GB, free: 3.285 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03678/0.3955, allocations: 15.17 MB / 0.7499 GB, free: 3.922 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006366/0.3961, allocations: 1.088 MB / 0.751 GB, free: 2.809 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003895/0.3965, allocations: 90.67 kB / 0.7511 GB, free: 2.715 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005388/0.3971, allocations: 443.3 kB / 0.7515 GB, free: 2.281 MB / 0.545 GB Notification: Performance of SimCode: time 8.02e-07/0.3971, allocations: 4 kB / 0.7515 GB, free: 2.277 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3303/0.7274, allocations: 33.27 MB / 0.784 GB, free: 117.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.45/17.17, allocations: 18.7 kB / 0.784 GB, free: 117.4 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order2test2_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_Order2test2_perturbation.fmu > OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe 2>&1)