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.001102/0.001102, allocations: 105.1 kB / 16.45 MB, free: 6.445 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.001186/0.001186, allocations: 186.4 kB / 17.38 MB, free: 5.688 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.276/1.276, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04664/0.04664, allocations: 8.1 MB / 299.3 MB, free: 6.656 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 67.89 kB / 414 MB, free: 22.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09028/0.09145, allocations: 51.5 MB / 465.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSouceOneLineOneSource): time 0.002416/0.0939, allocations: 1.162 MB / 466.6 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001863/0.09579, allocations: 1.446 MB / 468.1 MB, free: 76 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00011/0.09592, allocations: 7.938 kB / 468.1 MB, free: 68 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003893/0.09634, allocations: 103.6 kB / 468.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002691/0.09663, allocations: 71.53 kB / 468.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001319/0.09796, allocations: 0.7505 MB / 469 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000275/0.09824, allocations: 139.3 kB / 469.2 MB, free: 15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.09838, allocations: 49.08 kB / 469.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.868e-05/0.09847, allocations: 55.78 kB / 469.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.09857, allocations: 79.67 kB / 469.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.309e-05/0.09862, allocations: 15.94 kB / 469.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003189/0.09894, allocations: 151.9 kB / 469.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.947e-05/0.09898, allocations: 27.91 kB / 469.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.663e-05/0.09906, allocations: 71.61 kB / 469.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004174/0.09949, allocations: 259.4 kB / 469.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.0995, allocations: 0 / 469.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.09951, allocations: 0 / 469.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.595e-06/0.09952, allocations: 0 / 469.9 MB, free: 14.31 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.00151/0.101, allocations: 0.5923 MB / 470.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.1011, allocations: 15.89 kB / 470.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.621e-05/0.1011, allocations: 46.75 kB / 470.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.148e-05/0.1012, allocations: 20.83 kB / 470.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/0.1014, allocations: 212.1 kB / 470.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.1014, allocations: 8.609 kB / 470.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.502e-05/0.1015, allocations: 12.38 kB / 470.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.1017, allocations: 176 kB / 470.9 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.1018, allocations: 3.938 kB / 470.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.1018, allocations: 4 kB / 470.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.1018, allocations: 0 / 470.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002296/0.102, allocations: 152.6 kB / 471.1 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008674/0.1029, allocations: 0.5599 MB / 471.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002471/0.1032, allocations: 162.5 kB / 471.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.72e-05/0.1033, allocations: 68.97 kB / 471.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.131e-05/0.1033, allocations: 15.98 kB / 471.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.1033, allocations: 34.56 kB / 471.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.212e-06/0.1034, allocations: 0 / 471.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008964/0.1043, allocations: 395.3 kB / 472.3 MB, free: 11.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.828e-05/0.1043, allocations: 51.41 kB / 472.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.1044, allocations: 168.9 kB / 472.5 MB, free: 11.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.1045, allocations: 29.7 kB / 472.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.257e-05/0.1045, allocations: 120.3 kB / 472.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.195e-05/0.1046, allocations: 43.59 kB / 472.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.877e-05/0.1047, allocations: 49.69 kB / 472.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1048, allocations: 322.8 kB / 473.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.1049, allocations: 91.97 kB / 473.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.1051, allocations: 93.59 kB / 473.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002666/0.1053, allocations: 191.7 kB / 473.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.1053, allocations: 0 / 473.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005143/0.1059, allocations: 302.2 kB / 473.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.1059, allocations: 4 kB / 473.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.1059, allocations: 0 / 473.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002407/0.1061, allocations: 64.69 kB / 473.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.1063, allocations: 35.92 kB / 473.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00135/0.1077, allocations: 1.547 MB / 475.4 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.1078, allocations: 19.88 kB / 475.4 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.1079, allocations: 7.984 kB / 475.4 MB, free: 8.344 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.0001131/0.108, allocations: 125.9 kB / 475.5 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.108, allocations: 11.95 kB / 475.5 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004528/0.1085, allocations: 243.1 kB / 475.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.1085, allocations: 0 / 475.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.1085, allocations: 4 kB / 475.8 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.1085, allocations: 3.984 kB / 475.8 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002481/0.1088, allocations: 261.5 kB / 476 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.1088, allocations: 7.938 kB / 476.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.844e-05/0.1089, allocations: 16 kB / 476.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001939/0.1091, allocations: 52.75 kB / 476.1 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.1091, allocations: 4 kB / 476.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001253/0.1103, allocations: 1.527 MB / 477.7 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1104, allocations: 160 / 477.7 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000422/0.1108, allocations: 312.2 kB / 478 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.867e-05/0.1109, allocations: 89 kB / 478 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.016e-05/0.1109, allocations: 4 kB / 478 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001259/0.111, allocations: 11.92 kB / 478.1 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.656e-05/0.111, allocations: 4 kB / 478.1 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.1111, allocations: 8 kB / 478.1 MB, free: 5.438 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.774e-05/0.1112, allocations: 133.7 kB / 478.2 MB, free: 5.309 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1112, allocations: 0 / 478.2 MB, free: 5.309 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000328/0.1115, allocations: 55.95 kB / 478.3 MB, free: 5.254 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.0007571/0.1123, allocations: 0.8496 MB / 479.1 MB, free: 4.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006011/0.1129, allocations: 330.4 kB / 479.4 MB, free: 4.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1129, allocations: 4 kB / 479.4 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003356/0.1132, allocations: 202.6 kB / 479.6 MB, free: 3.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002348/0.1135, allocations: 8 kB / 479.6 MB, free: 3.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002395/0.1159, allocations: 2.084 MB / 481.7 MB, free: 1.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.1162, allocations: 0.7045 MB / 482.4 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.655e-05/0.1163, allocations: 24.55 kB / 482.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.728e-05/0.1163, allocations: 39.42 kB / 482.5 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1163, allocations: 4 kB / 482.5 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0201/0.1364, allocations: 3.878 MB / 486.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.724/8.86, allocations: 19.34 kB / 486.4 MB, free: 13.04 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)