Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Tests.OnePerfectLine.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.Tests.OnePerfectLine,fileNamePrefix="PowerSysPro_PowerSysPro_Tests_OnePerfectLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Tests.OnePerfectLine,fileNamePrefix="PowerSysPro_PowerSysPro_Tests_OnePerfectLine",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.001275/0.001275, allocations: 106.4 kB / 16.45 MB, free: 6.035 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.001239/0.001239, allocations: 191.8 kB / 17.39 MB, free: 5.559 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.242/1.242, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04315/0.04315, allocations: 8.092 MB / 299.3 MB, free: 6.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 67.91 kB / 414 MB, free: 22.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07712/0.0783, allocations: 51.51 MB / 465.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Tests.OnePerfectLine): time 0.00241/0.08074, allocations: 1.282 MB / 466.7 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.08216, allocations: 1.244 MB / 468 MB, free: 176 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.851e-05/0.08226, allocations: 0 / 468 MB, free: 176 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003279/0.08262, allocations: 111.5 kB / 468.1 MB, free: 64 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001978/0.08283, allocations: 51.62 kB / 468.2 MB, free: 12 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.084, allocations: 0.7428 MB / 468.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002207/0.08423, allocations: 135.3 kB / 469 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.08437, allocations: 69.45 kB / 469.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.161e-05/0.08444, allocations: 55.84 kB / 469.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.956e-05/0.08453, allocations: 63.7 kB / 469.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.922e-05/0.08456, allocations: 12 kB / 469.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002535/0.08482, allocations: 147.8 kB / 469.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.851e-05/0.08485, allocations: 31.92 kB / 469.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.86e-05/0.08492, allocations: 63.67 kB / 469.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003398/0.08526, allocations: 271.2 kB / 469.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.08528, allocations: 0 / 469.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.08528, allocations: 0 / 469.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.08529, allocations: 0 / 469.7 MB, free: 14.43 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001135/0.08643, allocations: 0.5636 MB / 470.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.08648, allocations: 15.89 kB / 470.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.067e-05/0.08652, allocations: 46.73 kB / 470.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.61e-05/0.08656, allocations: 8.891 kB / 470.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001679/0.08674, allocations: 212.2 kB / 470.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.08676, allocations: 8.375 kB / 470.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.115e-05/0.08679, allocations: 12.38 kB / 470.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002398/0.08703, allocations: 154.2 kB / 470.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.08705, allocations: 3.938 kB / 470.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.08707, allocations: 8 kB / 470.7 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.08708, allocations: 4 kB / 470.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.08726, allocations: 119.9 kB / 470.9 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006742/0.08794, allocations: 0.5119 MB / 471.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000746/0.0887, allocations: 150.7 kB / 471.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.575e-05/0.08878, allocations: 52.72 kB / 471.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001182/0.08891, allocations: 85.05 kB / 471.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.08894, allocations: 34.56 kB / 471.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.192e-06/0.08895, allocations: 0 / 471.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.001072/0.09003, allocations: 355.3 kB / 472 MB, free: 11.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.09007, allocations: 63.28 kB / 472.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.071e-05/0.09017, allocations: 125.8 kB / 472.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.0902, allocations: 29.7 kB / 472.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.29e-05/0.09027, allocations: 124.2 kB / 472.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.281e-05/0.0903, allocations: 31.73 kB / 472.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.135e-05/0.09035, allocations: 29.72 kB / 472.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.767e-05/0.09045, allocations: 318.8 kB / 472.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.6e-05/0.09053, allocations: 43.98 kB / 472.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.61e-05/0.09062, allocations: 61.45 kB / 472.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001553/0.09078, allocations: 97.7 kB / 472.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.09079, allocations: 0 / 472.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004727/0.09127, allocations: 226.1 kB / 473.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.0913, allocations: 4 kB / 473.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.09131, allocations: 3.984 kB / 473.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003952/0.09171, allocations: 80.75 kB / 473.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.53e-05/0.09178, allocations: 12 kB / 473.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001545/0.09333, allocations: 1.645 MB / 474.9 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.477e-05/0.09342, allocations: 7.969 kB / 474.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.09345, allocations: 8 kB / 474.9 MB, free: 8.793 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (10): * Single equations (assignments): 9 * 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 {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.965e-05/0.09355, allocations: 125.8 kB / 475.1 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.247e-05/0.09359, allocations: 8.016 kB / 475.1 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004914/0.09409, allocations: 214.5 kB / 475.3 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.0941, allocations: 0 / 475.3 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.09411, allocations: 4.141 kB / 475.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.09412, allocations: 7.969 kB / 475.3 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.09433, allocations: 229.5 kB / 475.5 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.09434, allocations: 0 / 475.5 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.386e-05/0.09439, allocations: 12 kB / 475.5 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003267/0.09472, allocations: 76.77 kB / 475.6 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.09475, allocations: 4 kB / 475.6 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001427/0.09618, allocations: 1.629 MB / 477.2 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.09619, allocations: 0 / 477.2 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000443/0.09664, allocations: 280.2 kB / 477.5 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.364e-05/0.09669, allocations: 93.02 kB / 477.6 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.09672, allocations: 8.047 kB / 477.6 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.839e-05/0.09682, allocations: 8 kB / 477.6 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.212e-05/0.09686, allocations: 12.3 kB / 477.6 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.09688, allocations: 8 kB / 477.6 MB, free: 5.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.043e-05/0.09693, allocations: 94.36 kB / 477.7 MB, free: 5.758 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.09694, allocations: 0 / 477.7 MB, free: 5.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002918/0.09724, allocations: 55.81 kB / 477.8 MB, free: 5.703 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 (8): * Single equations (assignments): 7 * 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 {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007209/0.09796, allocations: 0.8264 MB / 478.6 MB, free: 4.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005847/0.09856, allocations: 258.5 kB / 478.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.09858, allocations: 0 / 478.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003634/0.09894, allocations: 207.3 kB / 479.1 MB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.09917, allocations: 12 kB / 479.1 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002022/0.1012, allocations: 1.776 MB / 480.8 MB, free: 2.488 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.1014, allocations: 0.7157 MB / 481.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.666e-05/0.1015, allocations: 4.672 kB / 481.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.331e-05/0.1015, allocations: 43.42 kB / 481.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1015, allocations: 0 / 481.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0229/0.1244, allocations: 3.527 MB / 485.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.347/8.471, allocations: 15.81 kB / 485.1 MB, free: 14.22 MB / 366.1 MB (rm -f PowerSysPro_PowerSysPro.Tests.OnePerfectLine.pipe ; mkfifo PowerSysPro_PowerSysPro.Tests.OnePerfectLine.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Tests.OnePerfectLine.pipe >> ../files/PowerSysPro_PowerSysPro.Tests.OnePerfectLine.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Tests.OnePerfectLine_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_Tests_OnePerfectLine.fmu > PowerSysPro_PowerSysPro.Tests.OnePerfectLine.pipe 2>&1)