Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-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(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_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.001166/0.001166, allocations: 107.6 kB / 17.06 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.001288/0.001288, allocations: 195 kB / 18 MB, free: 5.219 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.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1903/0.1903, allocations: 38.03 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 59.91 kB / 457.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3541/0.3556, allocations: 58.05 MB / 0.5036 GB, free: 7.332 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.004762/0.3605, allocations: 4.08 MB / 0.5076 GB, free: 4.504 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.3617, allocations: 0.8589 MB / 0.5084 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001531/0.3618, allocations: 11.09 kB / 0.5085 GB, free: 3.895 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.3621, allocations: 44.14 kB / 0.5085 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004112/0.3625, allocations: 167.5 kB / 0.5087 GB, free: 3.766 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001955/0.3627, allocations: 88.41 kB / 0.5087 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004033/0.3631, allocations: 394.4 kB / 0.5091 GB, free: 3.543 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.3633, allocations: 111.4 kB / 0.5092 GB, free: 3.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002642/0.3636, allocations: 191.6 kB / 0.5094 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003103/0.3639, allocations: 176.1 kB / 0.5096 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.918e-05/0.364, allocations: 25.06 kB / 0.5096 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.86e-05/0.364, allocations: 24.72 kB / 0.5096 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.3641, allocations: 88.48 kB / 0.5097 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.3643, allocations: 138.5 kB / 0.5098 GB, free: 3.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003154/0.3646, allocations: 286.5 kB / 0.5101 GB, free: 3.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3646, allocations: 1.094 kB / 0.5101 GB, free: 3.094 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3646, allocations: 0 / 0.5101 GB, free: 3.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.3646, allocations: 3.938 kB / 0.5101 GB, free: 3.09 MB / 382.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.0008772/0.3655, allocations: 0.5944 MB / 0.5107 GB, free: 2.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.3655, allocations: 14.42 kB / 0.5107 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.131e-05/0.3656, allocations: 58.7 kB / 0.5108 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.413e-05/0.3657, allocations: 33.31 kB / 0.5108 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005131/0.3662, allocations: 336.4 kB / 0.5111 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.855e-05/0.3662, allocations: 18.34 kB / 0.5111 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.3664, allocations: 40.59 kB / 0.5112 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003918/0.3668, allocations: 285.4 kB / 0.5114 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.3668, allocations: 0 / 0.5114 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.3668, allocations: 14.78 kB / 0.5115 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.3668, allocations: 6.812 kB / 0.5115 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002906/0.3671, allocations: 188.5 kB / 0.5116 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00131/0.3684, allocations: 1.268 MB / 0.5129 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002551/0.3687, allocations: 122 kB / 0.513 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.561e-05/0.3688, allocations: 45.52 kB / 0.513 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.3688, allocations: 1.125 kB / 0.513 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.862e-05/0.3688, allocations: 44.78 kB / 0.5131 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.352e-06/0.3688, allocations: 1.062 kB / 0.5131 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008159/0.3696, allocations: 0.5255 MB / 0.5136 GB, free: 320 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.011e-05/0.3697, allocations: 104.6 kB / 0.5137 GB, free: 192 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.3699, allocations: 245 kB / 0.5139 GB, free: 44 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.3699, allocations: 38.55 kB / 0.514 GB, free: 0 / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.3701, allocations: 194.6 kB / 0.5142 GB, free: 15.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.707e-05/0.3701, allocations: 44.38 kB / 0.5142 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.961e-05/0.3702, allocations: 44.36 kB / 0.5142 GB, free: 15.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.3703, allocations: 331.6 kB / 0.5146 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.052e-05/0.3704, allocations: 38.08 kB / 0.5146 GB, free: 15.44 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/0.3706, allocations: 135.8 kB / 0.5147 GB, free: 15.3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.3708, allocations: 190.9 kB / 0.5149 GB, free: 15.13 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3708, allocations: 5 kB / 0.5149 GB, free: 15.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004248/0.3713, allocations: 233.8 kB / 0.5151 GB, free: 15 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.3713, allocations: 10.53 kB / 0.5151 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3713, allocations: 7.109 kB / 0.5151 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001435/0.3715, allocations: 31.14 kB / 0.5152 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003238/0.3718, allocations: 59.64 kB / 0.5152 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.3718, allocations: 4.922 kB / 0.5152 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.3719, allocations: 9.5 kB / 0.5152 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.372, allocations: 12.66 kB / 0.5153 GB, free: 14.97 MB / 398.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.0001617/0.3721, allocations: 150.9 kB / 0.5154 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.211e-05/0.3722, allocations: 22.27 kB / 0.5154 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002824/0.3725, allocations: 140.5 kB / 0.5156 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3725, allocations: 5.797 kB / 0.5156 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3725, allocations: 0.9688 kB / 0.5156 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3725, allocations: 2.078 kB / 0.5156 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000407/0.3729, allocations: 283.7 kB / 0.5158 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.373, allocations: 5.766 kB / 0.5158 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.3731, allocations: 31.06 kB / 0.5159 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.3731, allocations: 5.406 kB / 0.5159 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.3732, allocations: 6.625 kB / 0.5159 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.3732, allocations: 4.812 kB / 0.5159 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3732, allocations: 1.688 kB / 0.5159 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003884/0.3736, allocations: 370.4 kB / 0.5162 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.605e-05/0.3737, allocations: 96.94 kB / 0.5163 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.187e-05/0.3737, allocations: 6.812 kB / 0.5163 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.3738, allocations: 13.08 kB / 0.5164 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.015e-05/0.3739, allocations: 7.797 kB / 0.5164 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.3739, allocations: 4.906 kB / 0.5164 GB, free: 14.08 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001682/0.3741, allocations: 170.9 kB / 0.5165 GB, free: 13.97 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3741, allocations: 1.156 kB / 0.5165 GB, free: 13.97 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003756/0.3745, allocations: 48.78 kB / 0.5166 GB, free: 13.96 MB / 398.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.0006384/0.3751, allocations: 0.8961 MB / 0.5175 GB, free: 13.15 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003495/0.3755, allocations: 210.7 kB / 0.5177 GB, free: 13.01 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3755, allocations: 4.062 kB / 0.5177 GB, free: 13 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.389e-05/0.3756, allocations: 49.58 kB / 0.5177 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005284/0.3761, allocations: 55.45 kB / 0.5178 GB, free: 12.97 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003206/0.3793, allocations: 2.621 MB / 0.5203 GB, free: 10.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.3797, allocations: 0.7728 MB / 0.5211 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.3798, allocations: 34.39 kB / 0.5211 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.38, allocations: 85.59 kB / 0.5212 GB, free: 10.17 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.38, allocations: 0 / 0.5212 GB, free: 10.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02728/0.4073, allocations: 4.956 MB / 0.526 GB, free: 9.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.62/10.03, allocations: 13.28 kB / 0.526 GB, free: 9.523 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches