Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.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.OneSourceThreeLinesOneSource,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesOneSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceThreeLinesOneSource,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceThreeLinesOneSource",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.001256/0.001256, allocations: 105.4 kB / 16.45 MB, free: 6.504 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.001202/0.001202, allocations: 189.5 kB / 17.39 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.36/1.36, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05383/0.05383, allocations: 8.096 MB / 299.3 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 67.89 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08933/0.0911, allocations: 51.5 MB / 465.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceThreeLinesOneSource): time 0.002984/0.09413, allocations: 1.839 MB / 467.3 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.09629, allocations: 1.563 MB / 468.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.09641, allocations: 4 kB / 468.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003994/0.09682, allocations: 135.2 kB / 469 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003122/0.09716, allocations: 139.1 kB / 469.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001427/0.09859, allocations: 0.8011 MB / 470 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003971/0.099, allocations: 306.5 kB / 470.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002204/0.09923, allocations: 117.9 kB / 470.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.09936, allocations: 119.6 kB / 470.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001956/0.09956, allocations: 163.3 kB / 470.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.034e-05/0.09961, allocations: 28 kB / 470.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003303/0.09995, allocations: 171.9 kB / 470.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.809e-05/0.1, allocations: 59.77 kB / 470.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.1002, allocations: 139.3 kB / 471 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00054/0.1007, allocations: 434.4 kB / 471.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1007, allocations: 0 / 471.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1007, allocations: 0 / 471.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.547e-06/0.1007, allocations: 0 / 471.5 MB, free: 12.66 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002991/0.1037, allocations: 0.9703 MB / 472.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.1038, allocations: 11.89 kB / 472.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.529e-05/0.1039, allocations: 58.73 kB / 472.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.14e-05/0.1039, allocations: 32.75 kB / 472.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003082/0.1042, allocations: 284.2 kB / 472.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.1043, allocations: 20.75 kB / 472.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.141e-05/0.1043, allocations: 24.38 kB / 472.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005587/0.1049, allocations: 343.8 kB / 473.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1049, allocations: 3.938 kB / 473.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.295e-05/0.105, allocations: 12 kB / 473.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.105, allocations: 4 kB / 473.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000513/0.1055, allocations: 333.6 kB / 473.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.1072, allocations: 1.017 MB / 474.6 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005938/0.1078, allocations: 398.5 kB / 475 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/0.1081, allocations: 228.3 kB / 475.2 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.294e-05/0.1082, allocations: 11.97 kB / 475.2 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.324e-05/0.1082, allocations: 54.97 kB / 475.2 MB, free: 8.711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.462e-06/0.1082, allocations: 0 / 475.2 MB, free: 8.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002513/0.1108, allocations: 1.05 MB / 476.3 MB, free: 7.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.1108, allocations: 51.41 kB / 476.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/0.1111, allocations: 234.9 kB / 476.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.914e-05/0.1111, allocations: 37.7 kB / 476.6 MB, free: 7.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.1112, allocations: 140.8 kB / 476.7 MB, free: 7.105 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.444e-05/0.1113, allocations: 122.9 kB / 476.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/0.1115, allocations: 94.06 kB / 477 MB, free: 6.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.1116, allocations: 334.8 kB / 477.3 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003535/0.112, allocations: 236.7 kB / 477.5 MB, free: 6.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003716/0.1124, allocations: 243.9 kB / 477.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007534/0.1131, allocations: 0.5015 MB / 478.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1131, allocations: 0 / 478.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001351/0.1145, allocations: 0.7249 MB / 479 MB, free: 4.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.1145, allocations: 6.344 kB / 479 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1145, allocations: 0 / 479 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006737/0.1152, allocations: 166.4 kB / 479.1 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00038/0.1156, allocations: 79.89 kB / 479.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004368/0.12, allocations: 4.618 MB / 483.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002789/0.1203, allocations: 35.69 kB / 483.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.386e-05/0.1203, allocations: 16 kB / 483.9 MB, free: 15.5 MB / 366.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 (50): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000181/0.1205, allocations: 145.7 kB / 484 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.377e-05/0.1206, allocations: 27.95 kB / 484.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001262/0.1219, allocations: 0.5961 MB / 484.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.1219, allocations: 0 / 484.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1219, allocations: 4 kB / 484.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.1219, allocations: 3.984 kB / 484.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005056/0.1224, allocations: 465.1 kB / 485.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1224, allocations: 0 / 485.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002359/0.1227, allocations: 55.91 kB / 485.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005802/0.1233, allocations: 150.5 kB / 485.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.1233, allocations: 4 kB / 485.3 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004325/0.1276, allocations: 4.599 MB / 489.9 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1276, allocations: 0 / 489.9 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.1288, allocations: 0.6274 MB / 490.6 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.495e-05/0.1289, allocations: 120.8 kB / 490.7 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.418e-05/0.129, allocations: 12 kB / 490.7 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.1292, allocations: 4 kB / 490.7 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.423e-05/0.1293, allocations: 23.97 kB / 490.7 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/0.1293, allocations: 15.98 kB / 490.7 MB, free: 8.113 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001633/0.1295, allocations: 160.1 kB / 490.9 MB, free: 7.957 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1295, allocations: 0 / 490.9 MB, free: 7.957 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004962/0.13, allocations: 123.9 kB / 491 MB, free: 7.836 MB / 366.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 (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (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.001539/0.1316, allocations: 1.195 MB / 492.2 MB, free: 6.605 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.1332, allocations: 0.8811 MB / 493.1 MB, free: 5.684 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.1332, allocations: 0 / 493.1 MB, free: 5.684 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.1342, allocations: 0.5786 MB / 493.7 MB, free: 5.066 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.1346, allocations: 24.67 kB / 493.7 MB, free: 5.039 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005461/0.14, allocations: 3.578 MB / 497.3 MB, free: 1.355 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004625/0.1405, allocations: 0.7494 MB / 498 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001614/0.1407, allocations: 38.25 kB / 498 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.1409, allocations: 79.41 kB / 498.1 MB, free: 468 kB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.1409, allocations: 0 / 498.1 MB, free: 468 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05208/0.193, allocations: 7.45 MB / 0.4937 GB, free: 9.125 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.865/10.06, allocations: 15.73 kB / 0.4937 GB, free: 9.109 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource_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_OneSourceThreeLinesOneSource.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceThreeLinesOneSource.pipe 2>&1)