Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",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.001123/0.001123, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001332/0.001332, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.334/1.334, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1793/0.1793, allocations: 38.03 MB / 329.7 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 63.91 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1016, allocations: 58.05 MB / 457 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.006301/0.1079, allocations: 4.085 MB / 461 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.1094, allocations: 0.8492 MB / 461.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00024/0.1097, allocations: 11.94 kB / 461.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001873/0.1099, allocations: 47.52 kB / 462 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000545/0.1104, allocations: 163 kB / 462.1 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002187/0.1107, allocations: 87.88 kB / 462.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004696/0.1112, allocations: 394.5 kB / 462.6 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002246/0.1114, allocations: 114.2 kB / 462.7 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002825/0.1117, allocations: 175.3 kB / 462.9 MB, free: 2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003549/0.112, allocations: 183.3 kB / 463 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.727e-05/0.1121, allocations: 20 kB / 463.1 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.655e-05/0.1122, allocations: 20 kB / 463.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.1123, allocations: 87.66 kB / 463.2 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001719/0.1125, allocations: 139.3 kB / 463.3 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003237/0.1128, allocations: 283 kB / 463.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1128, allocations: 3.984 kB / 463.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.1128, allocations: 4 kB / 463.6 MB, free: 1.273 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.1129, allocations: 3.938 kB / 463.6 MB, free: 1.27 MB / 334.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.001153/0.114, allocations: 0.5922 MB / 464.2 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.1141, allocations: 8.031 kB / 464.2 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.023e-05/0.1141, allocations: 62.7 kB / 464.3 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.717e-05/0.1142, allocations: 40.5 kB / 464.3 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005409/0.1148, allocations: 319 kB / 464.6 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.1148, allocations: 16.81 kB / 464.6 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.115, allocations: 35.84 kB / 464.7 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005015/0.1155, allocations: 298 kB / 464.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.1155, allocations: 0 / 464.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.1155, allocations: 12 kB / 465 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.1155, allocations: 8 kB / 465 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000335/0.1159, allocations: 179.8 kB / 465.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001681/0.1176, allocations: 1.28 MB / 466.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.1179, allocations: 119.8 kB / 466.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.428e-05/0.118, allocations: 46.62 kB / 466.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.118, allocations: 4 kB / 466.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.118, allocations: 42.5 kB / 466.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.118, allocations: 0 / 466.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009396/0.119, allocations: 0.5193 MB / 467.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.652e-05/0.1191, allocations: 111.1 kB / 467.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/0.1193, allocations: 242.7 kB / 467.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.1193, allocations: 29.64 kB / 467.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.1195, allocations: 203.5 kB / 467.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.875e-05/0.1195, allocations: 43.39 kB / 467.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.562e-05/0.1196, allocations: 41.7 kB / 467.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1198, allocations: 334.8 kB / 468.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.009e-05/0.1198, allocations: 35.98 kB / 468.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.12, allocations: 134.7 kB / 468.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002436/0.1202, allocations: 187.8 kB / 468.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1203, allocations: 0 / 468.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004273/0.1207, allocations: 234.2 kB / 468.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.1207, allocations: 8 kB / 468.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1207, allocations: 7.938 kB / 468.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001283/0.1209, allocations: 28.78 kB / 468.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003193/0.1212, allocations: 63.88 kB / 468.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.1212, allocations: 8.484 kB / 468.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001351/0.1214, allocations: 12 kB / 468.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.1214, allocations: 8.125 kB / 468.8 MB, free: 11.54 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001894/0.1216, allocations: 154.6 kB / 469 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.548e-05/0.1217, allocations: 19.81 kB / 469 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002819/0.122, allocations: 151.2 kB / 469.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.122, allocations: 3.938 kB / 469.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.122, allocations: 0 / 469.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.122, allocations: 4 kB / 469.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003676/0.1224, allocations: 285.5 kB / 469.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.1224, allocations: 0 / 469.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001613/0.1225, allocations: 27.98 kB / 469.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.1226, allocations: 3.938 kB / 469.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.1226, allocations: 19.91 kB / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.1226, allocations: 3.938 kB / 469.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1226, allocations: 0 / 469.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003874/0.123, allocations: 374 kB / 469.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.253e-05/0.1231, allocations: 92.95 kB / 470 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.044e-05/0.1231, allocations: 0 / 470 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.1233, allocations: 11.94 kB / 470 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.587e-05/0.1233, allocations: 11.92 kB / 470 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.1233, allocations: 4 kB / 470 MB, free: 10.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001502/0.1235, allocations: 174 kB / 470.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1235, allocations: 0 / 470.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003492/0.1238, allocations: 44.06 kB / 470.2 MB, free: 10.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006192/0.1244, allocations: 0.8997 MB / 471.1 MB, free: 9.156 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003299/0.1248, allocations: 214 kB / 471.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1248, allocations: 0 / 471.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.184e-05/0.1249, allocations: 52.3 kB / 471.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005184/0.1254, allocations: 63.48 kB / 471.4 MB, free: 8.816 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003031/0.1285, allocations: 2.637 MB / 474.1 MB, free: 6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.1288, allocations: 0.7675 MB / 474.8 MB, free: 5.203 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.129, allocations: 34.27 kB / 474.9 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.1291, allocations: 87.41 kB / 474.9 MB, free: 5.086 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1291, allocations: 0 / 474.9 MB, free: 5.086 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02472/0.1538, allocations: 4.763 MB / 479.7 MB, free: 432 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.937/9.091, allocations: 11.12 kB / 479.7 MB, free: 424 kB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1)