Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSouceOneLineOneSource.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/Complex 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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(PowerSysPro.Examples.OneSouceOneLineOneSource,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSouceOneLineOneSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSouceOneLineOneSource,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSouceOneLineOneSource",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.001797/0.001797, allocations: 100.6 kB / 16.45 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001928/0.001927, allocations: 188.9 kB / 17.38 MB, free: 5.691 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.445/1.445, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04976/0.04976, allocations: 8.094 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001769/0.001769, allocations: 59.89 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0966/0.09838, allocations: 51.52 MB / 465.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSouceOneLineOneSource): time 0.002374/0.1008, allocations: 1.162 MB / 466.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001798/0.1026, allocations: 1.438 MB / 468.1 MB, free: 40 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.967e-05/0.1027, allocations: 4 kB / 468.1 MB, free: 36 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003297/0.103, allocations: 99.48 kB / 468.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001994/0.1032, allocations: 71.53 kB / 468.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.1046, allocations: 0.7584 MB / 469 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002446/0.1048, allocations: 135.3 kB / 469.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.105, allocations: 53.06 kB / 469.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.539e-05/0.105, allocations: 55.78 kB / 469.3 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001132/0.1051, allocations: 71.69 kB / 469.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.297e-05/0.1052, allocations: 16 kB / 469.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002994/0.1055, allocations: 155.9 kB / 469.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.03e-05/0.1055, allocations: 23.92 kB / 469.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.146e-05/0.1056, allocations: 71.59 kB / 469.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000374/0.106, allocations: 263.4 kB / 469.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.106, allocations: 0 / 469.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.106, allocations: 4 kB / 469.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.106, allocations: 0 / 469.9 MB, free: 14.27 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001463/0.1075, allocations: 0.5884 MB / 470.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.1075, allocations: 15.89 kB / 470.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.681e-05/0.1076, allocations: 46.73 kB / 470.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.215e-05/0.1076, allocations: 12.84 kB / 470.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002093/0.1079, allocations: 216.1 kB / 470.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.1079, allocations: 8.609 kB / 470.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.402e-05/0.1079, allocations: 16.38 kB / 470.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002953/0.1082, allocations: 172 kB / 470.9 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.1082, allocations: 7.875 kB / 470.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.1082, allocations: 3.984 kB / 470.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.1083, allocations: 7.938 kB / 470.9 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002391/0.1085, allocations: 152.6 kB / 471.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008848/0.1094, allocations: 0.5599 MB / 471.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002652/0.1097, allocations: 158.5 kB / 471.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.1098, allocations: 69.09 kB / 471.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.52e-05/0.1098, allocations: 11.98 kB / 471.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.1099, allocations: 30.56 kB / 471.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.263e-06/0.1099, allocations: 4 kB / 471.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009603/0.1108, allocations: 391.2 kB / 472.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.1109, allocations: 51.41 kB / 472.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.1111, allocations: 176.5 kB / 472.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.1111, allocations: 29.7 kB / 472.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.03e-05/0.1112, allocations: 120.3 kB / 472.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.143e-05/0.1112, allocations: 51.58 kB / 472.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.474e-05/0.1113, allocations: 45.69 kB / 472.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.1115, allocations: 318.8 kB / 473.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001415/0.1116, allocations: 91.95 kB / 473.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.1117, allocations: 89.59 kB / 473.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002898/0.112, allocations: 195.7 kB / 473.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.1121, allocations: 0 / 473.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005362/0.1126, allocations: 302.2 kB / 473.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.1126, allocations: 7.984 kB / 473.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1126, allocations: 0 / 473.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002735/0.1129, allocations: 52.77 kB / 473.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.1131, allocations: 43.91 kB / 473.8 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001477/0.1146, allocations: 1.543 MB / 475.4 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/0.1147, allocations: 19.88 kB / 475.4 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.1147, allocations: 4 kB / 475.4 MB, free: 8.316 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (22): * Single equations (assignments): 21 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.1149, allocations: 125.9 kB / 475.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.716e-05/0.1149, allocations: 11.95 kB / 475.5 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004937/0.1154, allocations: 251.1 kB / 475.8 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1154, allocations: 0 / 475.8 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-06/0.1154, allocations: 0 / 475.8 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.1154, allocations: 3.984 kB / 475.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002708/0.1157, allocations: 261.5 kB / 476.1 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.1157, allocations: 3.938 kB / 476.1 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.186e-05/0.1158, allocations: 19.98 kB / 476.1 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001998/0.116, allocations: 52.81 kB / 476.1 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.116, allocations: 7.938 kB / 476.1 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001379/0.1174, allocations: 1.523 MB / 477.7 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.1174, allocations: 3.984 kB / 477.7 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004482/0.1179, allocations: 312.2 kB / 478 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.168e-05/0.118, allocations: 92.98 kB / 478.1 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.103e-05/0.118, allocations: 4 kB / 478.1 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.1181, allocations: 3.938 kB / 478.1 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.836e-05/0.1182, allocations: 7.984 kB / 478.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.1182, allocations: 8 kB / 478.1 MB, free: 5.402 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001137/0.1183, allocations: 137.5 kB / 478.2 MB, free: 5.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1183, allocations: 0 / 478.2 MB, free: 5.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003108/0.1186, allocations: 55.95 kB / 478.3 MB, free: 5.215 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (12): * Single equations (assignments): 11 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008184/0.1194, allocations: 0.8459 MB / 479.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000642/0.1201, allocations: 330.2 kB / 479.4 MB, free: 4.008 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1201, allocations: 4 kB / 479.4 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003592/0.1205, allocations: 202.6 kB / 479.6 MB, free: 3.793 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002434/0.1207, allocations: 8 kB / 479.6 MB, free: 3.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002679/0.1234, allocations: 2.088 MB / 481.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.1237, allocations: 0.7084 MB / 482.4 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.313e-05/0.1238, allocations: 16.62 kB / 482.5 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.7e-05/0.1239, allocations: 39.42 kB / 482.5 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1239, allocations: 0 / 482.5 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02784/0.1518, allocations: 3.877 MB / 486.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.59/9.742, allocations: 19.28 kB / 486.4 MB, free: 13.02 MB / 366.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSouceOneLineOneSource.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSouceOneLineOneSource.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSouceOneLineOneSource.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSouceOneLineOneSource.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSouceOneLineOneSource_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_OneSouceOneLineOneSource.fmu > PowerSysPro_PowerSysPro.Examples.OneSouceOneLineOneSource.pipe 2>&1)