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.001871/0.001871, allocations: 106.3 kB / 17.06 MB, free: 6.023 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.00203/0.00203, allocations: 195 kB / 18 MB, free: 5.105 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.354/1.354, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1734/0.1734, allocations: 38.03 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.91 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3187, allocations: 58.05 MB / 0.5036 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.005155/0.3239, allocations: 4.08 MB / 0.5076 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.3254, allocations: 0.8519 MB / 0.5084 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002316/0.3257, allocations: 10.59 kB / 0.5085 GB, free: 4.078 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002231/0.3259, allocations: 47.3 kB / 0.5085 GB, free: 4.047 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005797/0.3266, allocations: 172.1 kB / 0.5087 GB, free: 3.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000279/0.3269, allocations: 84.5 kB / 0.5087 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005335/0.3274, allocations: 398.9 kB / 0.5091 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002421/0.3277, allocations: 107.6 kB / 0.5092 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003195/0.328, allocations: 183.8 kB / 0.5094 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000364/0.3284, allocations: 178.3 kB / 0.5096 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.49e-05/0.3284, allocations: 25.09 kB / 0.5096 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.001e-05/0.3285, allocations: 20.84 kB / 0.5096 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.3287, allocations: 87.62 kB / 0.5097 GB, free: 3.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000236/0.3289, allocations: 147.5 kB / 0.5098 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005546/0.3295, allocations: 281.2 kB / 0.5101 GB, free: 3.277 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.828e-06/0.3295, allocations: 1.859 kB / 0.5101 GB, free: 3.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3295, allocations: 0 / 0.5101 GB, free: 3.277 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.3295, allocations: 0 / 0.5101 GB, free: 3.277 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.001409/0.3309, allocations: 0.5994 MB / 0.5107 GB, free: 2.777 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.331, allocations: 12.77 kB / 0.5107 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.029e-05/0.3311, allocations: 59.72 kB / 0.5108 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.686e-05/0.3312, allocations: 36.12 kB / 0.5108 GB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006233/0.3318, allocations: 339.2 kB / 0.5111 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.3319, allocations: 18.12 kB / 0.5111 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.332, allocations: 35.67 kB / 0.5112 GB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004364/0.3325, allocations: 289.5 kB / 0.5114 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.3325, allocations: 0 / 0.5114 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.478e-05/0.3325, allocations: 12.05 kB / 0.5115 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.3325, allocations: 6.25 kB / 0.5115 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003141/0.3328, allocations: 191 kB / 0.5116 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001391/0.3342, allocations: 1.269 MB / 0.5129 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002557/0.3345, allocations: 124.8 kB / 0.513 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.554e-05/0.3346, allocations: 41.97 kB / 0.513 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.3346, allocations: 7.609 kB / 0.5131 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.3347, allocations: 36.52 kB / 0.5131 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.745e-06/0.3347, allocations: 4 kB / 0.5131 GB, free: 0.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.00101/0.3357, allocations: 0.5303 MB / 0.5136 GB, free: 500 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.3357, allocations: 104.5 kB / 0.5137 GB, free: 372 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.336, allocations: 244.5 kB / 0.5139 GB, free: 224 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.336, allocations: 30.95 kB / 0.514 GB, free: 188 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.3361, allocations: 194 kB / 0.5142 GB, free: 20 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.785e-05/0.3362, allocations: 44.52 kB / 0.5142 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.278e-05/0.3363, allocations: 49.39 kB / 0.5142 GB, free: 15.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3364, allocations: 334.8 kB / 0.5146 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.407e-05/0.3365, allocations: 38.88 kB / 0.5146 GB, free: 15.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.3367, allocations: 131 kB / 0.5147 GB, free: 15.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002584/0.337, allocations: 194.5 kB / 0.5149 GB, free: 15.3 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.337, allocations: 5.734 kB / 0.5149 GB, free: 15.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004146/0.3374, allocations: 225.3 kB / 0.5151 GB, free: 15.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.3374, allocations: 6.062 kB / 0.5151 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.3374, allocations: 4.078 kB / 0.5151 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001348/0.3376, allocations: 34.98 kB / 0.5152 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003473/0.3379, allocations: 63.61 kB / 0.5152 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.64e-05/0.338, allocations: 5.75 kB / 0.5152 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001303/0.3381, allocations: 12.62 kB / 0.5153 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.3381, allocations: 12.44 kB / 0.5153 GB, free: 15.14 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.0001699/0.3383, allocations: 143.2 kB / 0.5154 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.337e-05/0.3384, allocations: 27.12 kB / 0.5154 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003339/0.3387, allocations: 145.7 kB / 0.5156 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.3388, allocations: 7.328 kB / 0.5156 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.3388, allocations: 1.375 kB / 0.5156 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.3388, allocations: 2.125 kB / 0.5156 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00051/0.3393, allocations: 287.1 kB / 0.5159 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3393, allocations: 1.188 kB / 0.5159 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001799/0.3395, allocations: 29.91 kB / 0.5159 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/0.3395, allocations: 2.344 kB / 0.5159 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.3395, allocations: 5.609 kB / 0.5159 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.3395, allocations: 6.922 kB / 0.5159 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3395, allocations: 5.031 kB / 0.5159 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004269/0.34, allocations: 363.8 kB / 0.5162 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.289e-05/0.3401, allocations: 99.78 kB / 0.5163 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.58e-05/0.3401, allocations: 6.125 kB / 0.5163 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.3403, allocations: 6.812 kB / 0.5164 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.641e-05/0.3403, allocations: 11.3 kB / 0.5164 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.3403, allocations: 12.38 kB / 0.5164 GB, free: 14.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001826/0.3405, allocations: 170.6 kB / 0.5165 GB, free: 14.15 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3405, allocations: 1.25 kB / 0.5165 GB, free: 14.15 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004183/0.3409, allocations: 44.5 kB / 0.5166 GB, free: 14.14 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.0007061/0.3416, allocations: 0.9035 MB / 0.5175 GB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004409/0.3421, allocations: 206 kB / 0.5177 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3421, allocations: 0.875 kB / 0.5177 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.3422, allocations: 54.08 kB / 0.5177 GB, free: 13.17 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005934/0.3428, allocations: 55.69 kB / 0.5178 GB, free: 13.15 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003672/0.3465, allocations: 2.623 MB / 0.5203 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003977/0.3469, allocations: 0.7652 MB / 0.5211 GB, free: 10.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001391/0.3471, allocations: 35.09 kB / 0.5211 GB, free: 10.42 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.3472, allocations: 89.94 kB / 0.5212 GB, free: 10.35 MB / 398.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3472, allocations: 0 / 0.5212 GB, free: 10.35 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02938/0.3766, allocations: 4.957 MB / 0.526 GB, free: 9.711 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.305/9.681, allocations: 9.969 kB / 0.526 GB, free: 9.703 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